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
If a schema has a valid type then it should apply the defaults.
andy-miracl
changed the title
support supplementary oneOf, anyOf, allOf, noneOf section in schema
support supplementary oneOf, anyOf, allOf, noneOf section in schema with valid 'type'
May 21, 2018
If you have a schem with a valid
type
and alsooneOf
anyOf
,allOf
ornoneOf
, then defaults are not applied.A typical use case is when you have an
object
schema that is required to have one field or another, but not both, (see https://stackoverflow.com/questions/24023536/json-schema-how-do-i-require-one-field-or-another-or-one-of-two-others-but-no). You can do this kind of thing with the following type of schema schema :However, conflate does not apply the object property defaults in the case of json input data such as :
Conflate should output :
The text was updated successfully, but these errors were encountered: