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
epoberezkin
changed the title
$merge/$patch pre-processing keywords for schema extensions
$merge/$patch pre-processing keywords for schema extension
Jul 12, 2016
+1, I am also looking forward to this feature. In my case, the additionalProperties doesn't work as my expectation when I use the allOf to merge two-schemas, but merge can.
Proposed by @fge
The reason to implement them is to allow to extend existing schemas (e.g. meta-schemas, but equally important for any large schema).
For non-recursive schemas
allOf
/anyOf
keywords can be used, but for recursive schemas there is no extension mechanism.https://github.com/daveclayton/json-schema-validator/wiki/v5:-merge
https://groups.google.com/forum/#!topic/json-schema/sztyQoNlnDM
@fge, syntax you propose is a bit ambiguous, it would be good to clarify and add to v5 proposals page.
The text was updated successfully, but these errors were encountered: