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
When using anyOf, the default value does not get set correctly. This can be seen on the example PG for anyOf
Defaults within anyOf populate the data and preview
Defaults within anyOf do not populate data or preview
I am using the online PG for now. Example of Json Is below:
"type": "object", "properties": { "age": { "type": "integer", "title": "Age" }, "items": { "type": "array", "items": { "type": "object", "anyOf": [ { "properties": { "foo": { "type": "string" } } }, { "properties": { "bar": { "type": "string" } } } ] } } }, "anyOf": [ { "title": "First method of identification", "properties": { "firstName": { "type": "string", "title": "First name", "default": "Chuck" }, "lastName": { "type": "string", "title": "Last name" } } }, { "title": "Second method of identification", "properties": { "idCode": { "type": "string", "title": "ID code" } } } ] }
I know this has apparently been done: #1304
But within the PG it is still not working correctly.
The text was updated successfully, but these errors were encountered:
Duplicate of #1334
Sorry, something went wrong.
No branches or pull requests
Prerequisites
Description
When using anyOf, the default value does not get set correctly. This can be seen on the example PG for anyOf
Steps to Reproduce
Expected behavior
Defaults within anyOf populate the data and preview
Actual behavior
Defaults within anyOf do not populate data or preview
Version
I am using the online PG for now. Example of Json Is below:
I know this has apparently been done:
#1304
But within the PG it is still not working correctly.
The text was updated successfully, but these errors were encountered: