Is it possible to create a JSON Schema with allOf (multiple if and then) and $ref?
问题 I am trying to create a complex schema that will check for the value of a property and then validate according to the value of that same property. I am wondering if it's possible to use $ref and allOf in the same schema and if so, how? I am having some trouble getting this to work. It may be important to note that I am using AJV. Please see my code below { "$ref": "#/definitions/Welcome", "definitions": { "Welcome": { "properties": { "auth": { "type": "string", "enum": ["oauth1","oauth2"] },