-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directive reports incorrect type when type keyword is nested under a oneOf #56
Comments
There seem to be a few things going on here:
Number 3 is easiest to fix, and will behave as you want if you do factor the schema. Does that work for you? |
Yes, we can factor the schema in this case. |
Works for me! |
I've made a commit to do this. Could you give it a try by pip installing from this repo, e.g. I'll write some tests, and get this ready for release. |
This is now released in 0.6.1 |
I'm trying to add a jsonschema directive for the
Record
definition from the OCDS record package schema. However, the schema table incorrectly reports the type of releases as object when it should be array:I think that's because the jsonschema directive defaults to object when there's no
type
keyword at the top-level of a property and thetype
keyword forreleases
is nested (and repeated) under aoneOf
:I tried factoring the schema to move the
type
keyword to the top level of thereleases
property, but that causes thereleases
row to disappear altogether:The text was updated successfully, but these errors were encountered: