-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
unexpected draft2019-09 (and up) $ref behavior #378
Comments
Hi! You’re right, this is not yet supported for that draft. Drafts after 7th are incomplete at the moment |
Got it. What are the plans? Is this already covered by the json-schema test suite? |
I am planning to finish rewriting in #373 first and then continue with all the missing features/changes from newer drafts. Though, I'd be happy to review any PRs for them and merge them earlier, as I think such changes won't be hard to integrate with the new structure later. However, at the moment I don't have the bandwidth to work on this :( |
Re: test suite. It should be there, yep, but likely disabled as of now. |
Fixed by #419 |
In draft2019-09,
$ref
was changed to allow other keywords alongside it.I ran into this while trying to validate an openapi spec against the published OAS 3.1 schema. In particular, check out the way, in that schema,
"$ref": "#/$defs/specification-extensions",
is used to factor a commonpatternProperties
out of a bunch of different objects.Unfortunately,
jsonschema
doesn't seem to handle the $ref behavior correctly when it has peer keywords. For example:fails with:
Does that make sense? Have I missed something about the way this is supposed to work?
The text was updated successfully, but these errors were encountered: