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
@lgersman I see this report have been left unanswered very long, that is on us. I'm however trying to wrok through the lisst of reports and I'm trying to resolve this one.
In reading the JSON Schema specification about defaults and one thing that seems important in this is:
It is RECOMMENDED that a default value be valid against the associated schema.
This is also reflected in code and thus intentional once a default value has been applied no defaults of deeper properties is applied. Some debugging also confirmed nested defaults are not applied by design.
In your schema there is no default for #/definitions/defaultsExample. Setting a valid default (so including properties and values for all properties of the #/definitions/defaultsExample definition on that level would resolve your problem.
Closing as "Not planned" in cause you've any additional information feel free to let us know more and reopen this report.
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: