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
According to JSON Schema (draft-07) there are default annotation for the default values. Following JSON Schema do not generate default values in the playground: https://json-schema.org/latest/json-schema-validation.html#rfc.section.10.2.
default
{ "$id": "https://example.com/arrays.schema.json", "$schema": "http://json-schema.org/draft-07/schema#", "description": "A representation of a person, company, organization, or place", "type": "object", "default": {"fruits":["some fruit"]}, "properties": { "fruits": { "type": "array", "items": { "type": "string" } }, "vegetables": { "type": "array", "items": { "$ref": "#/definitions/veggie" } } }, "definitions": { "veggie": { "type": "object", "required": [ "veggieName", "veggieLike" ], "default": {"veggieName": "some veggie"}, "properties": { "veggieName": { "type": "string", "description": "The name of the vegetable." }, "veggieLike": { "type": "boolean", "description": "Do I like this vegetable?" } } } } }
Though the same functionality works ok (defaults are set) in brutusin:json-forms if you try it.
brutusin:json-forms
The text was updated successfully, but these errors were encountered:
Hi @dealancer. True, it doesn't resolve top-level and $refed default values. I'll take a look into that.
$ref
Sorry, something went wrong.
321603e
radekmie
No branches or pull requests
According to JSON Schema (draft-07) there are
default
annotation for the default values. Following JSON Schema do not generate default values in the playground: https://json-schema.org/latest/json-schema-validation.html#rfc.section.10.2.Though the same functionality works ok (defaults are set) in
brutusin:json-forms
if you try it.The text was updated successfully, but these errors were encountered: