validation of json schema having oneOf keyword
问题 I have the following json schema for my web app. { "type":"object", "properties": { "person_identifier":{ "type":"object", "oneOf":[ {"$ref":"#/person_identifier/rememberme_id"}, {"$ref":"#/person_identifier/email"}, {"$ref":"#/person_identifier/account_number"} ], "email":{ "type":"string" }, "rememberme_id":{ "type":"string" }, "account_number":{ "type":"string" } } } } My goal is to accept only one of the three "person_identifier"-email, rememberme_id or account_number in the api request