We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried the official workaround for re-using schemas with additionalProperties=false in draft 6. In my case, the relevant part is:
{ "$schema": "http://json-schema.org/draft-06/schema", ... "definitions": { ... "Match": { "type": "object", "allOf": [ {"properties": { "matchFunction": { "type": "string", "format": "uri" }, "attributeValue": { "$ref": "common.schema.json#/definitions/AttributeValueType" } }}, { "oneOf": [ { "properties": { "attributeDesignator": { "$ref": "#/definitions/AttributeDesignator"} } , "required": [ "attributeDesignator" ] }, {"properties": { "attributeSelector": { "$ref": "#/definitions/AttributeSelector"} }, "required": [ "attributeSelector" ] }, { "properties": { "variableRef": { "$ref": "#/definitions/VariableReference" } }, "required": [ "variableRef" ] } ] } ], "anyOf": [ { "propertyNames": {"enum": ["matchFunction", "attributeValue"]} }, { "propertyNames": {"oneOf": [ {"enum": ["attributeDesignator"]}, {"enum": ["attributeSelector"]}, {"enum": ["variableRef"]} ]} } ] } ... } }
I get this error:
Caused by: org.everit.json.schema.SchemaException: #/definitions/Match: expected at most 1 of 'allOf', 'anyOf', 'oneOf', 2 found
Is this workaround supposed to work with the json-schema library ?
The text was updated successfully, but these errors were encountered:
Hi, a bugfix is likely to come in the next release for using "allOf"/"anyOf"/"oneOf" in the same schema object, it was also reported in #174 .
"allOf"
"anyOf"
"oneOf"
Sorry, something went wrong.
The fix is available in the latest release: 1.9.0
No branches or pull requests
I tried the official workaround for re-using schemas with additionalProperties=false in draft 6.
In my case, the relevant part is:
I get this error:
Is this workaround supposed to work with the json-schema library ?
The text was updated successfully, but these errors were encountered: