You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stored queries do not currently fill in the default values if they are not supplied as part of the params. Make it so!
ETA: This ticket was originally concerned with populating defaults, but further investigation revealed that the current mechanism for adding defaults (taken from the python-jsonschema repo) does not fetch $refs, so defaults do not get set in some cases.
The text was updated successfully, but these errors were encountered:
I was looking to add default values for array properties, but it doesn't look like the python jsonschema supports it. I have a couple more things to try, but if the json schema doesn't allow it, I'll close this issue.
OK, it looks like this is an issue with the way defaults are set, as the validator just blindly checks the subschema to see if there's a default field without first checking whether the subschema is a reference or not. 😖 I have changed the schemas I'm using to avoid the problem but ideally the code could be changed to fix the problem.
ialarmedalien
changed the title
Ensure defaults are filled in for stored queries
Default validation fails when it encounters a $ref
Sep 10, 2020
Stored queries do not currently fill in the default values if they are not supplied as part of the params. Make it so!
ETA: This ticket was originally concerned with populating defaults, but further investigation revealed that the current mechanism for adding defaults (taken from the python-jsonschema repo) does not fetch
$ref
s, so defaults do not get set in some cases.The text was updated successfully, but these errors were encountered: