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
after more digging around I found that the combining oneOf and additionalProperties is not a good idea. See also python-jsonschema/jsonschema#193 and especially the chapter "Additional properties inside compound keywords anyOf, oneOf, etc." in the Ajv faq
See this playground for a working example for a combination of mutually exclusive oneOf fields without using 'additionalProperties':false
Sorry for the title, best see the examples for what I mean. The form on this playground link not validate, while I think it should.
Removing the
'additionalProperties':false
on line 27 returns aschema that validates as expected, however now the validation is too lax.
I'm trying to create forms to generate valid jsonschema's and it's proving quite challenging
The text was updated successfully, but these errors were encountered: