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
each oneOf subschema must have properties keyword with discriminator property. The subschemas should be either inlined or included as direct references (only $ref keyword without any extra keywords is allowed).
Workaround
A workaround is to flatten the inner allOf()s.
Repro
Below is effectively the code that gets executed. You can run this file directly in Node.js.
Background
Ajv does not support
oneOf(allOf(...), allOf(...))
See ajv/lib/vocabularies/discriminator/index.ts
The documented limitation is here: https://ajv.js.org/json-schema.html#discriminator:
Workaround
A workaround is to flatten the inner
allOf()
s.Repro
Below is effectively the code that gets executed. You can run this file directly in Node.js.
The text was updated successfully, but these errors were encountered: