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
If a json schema provides nested defaults like this schema :
{ "title": "Schema default properties", "type": "object", "properties": { "valuesInFormData": { "title": "Values in form data", "$ref": "#/definitions/defaultsExample" }, "noValuesInFormData": { "title": "No values in form data", "$ref": "#/definitions/defaultsExample" } }, "definitions": { "defaultsExample": { "type": "object", "properties": { "scalar": { "title": "Scalar", "type": "string", "default": "scalar default" }, "array": { "title": "Array", "type": "array", "items": { "type": "object", "properties": { "nested": { "title": "Nested array", "type": "string", "default": "nested array default" } } } }, "object": { "title": "Object", "type": "object", "properties": { "nested": { "title": "Nested object", "type": "string", "default": "nested object default" } } } } } } }
json-schema does not apply these defaults using Constraint::CHECK_MODE_APPLY_DEFAULTS flag.
only top level defaults will be applied.
The text was updated successfully, but these errors were encountered:
Hello @lgersman, we are facing the same issue. In fact, it works for nested properties of objects but it doesn't work for array types.
Sorry, something went wrong.
No branches or pull requests
If a json schema provides nested defaults like this schema :
json-schema does not apply these defaults using Constraint::CHECK_MODE_APPLY_DEFAULTS flag.
only top level defaults will be applied.
The text was updated successfully, but these errors were encountered: