Skip to content

sphinxcontrib/jsonschema.py: Don't error on boolean deprecated keyword #64

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

duncandewhurst
Copy link

Presently, the directive errors if a schema includes a deprecated keyword with a boolean value, as in JSON Schema 2020-12.

This PR adds support for the approach suggested in Planio-53514#note-2 of pairing a boolean deprecated keyword with a deprecatedDetails object.

@jarofgreen
Copy link

Can we have a change log entry in the same commit?

Also, it would be good to have tests for this. If you aren't sure how pytest works, do you at least have test data you can give us in this PR and someone can put that into a proper test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants