{"additionalProperties": false, "type": "object", "properties": {"index": {"then": {"enum": ["first", "last"]}, "type": ["integer", "string"], "if": {"type": "string"}}, "name": {"type": "string"}, "fields": {"additionalProperties": {"type": "string"}, "type": "object"}}}