Skip to content
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

Pass key constraints as propertyNames in JSON Schema #604

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

jcrist
Copy link
Owner

@jcrist jcrist commented Dec 7, 2023

This adds support for publicizing constraints on dict keys using the propertyNames field when generating a JSON Schema. For now this is only done for dicts with string keys; constraints on other key types are trickier to specify.

Supersedes #576.

This adds support for publicizing constraints on dict keys using the
`propertyNames` field when generating a JSON Schema. For now this is
only done for dicts with string keys; constraints on other key types are
trickier to specify.
@jcrist jcrist merged commit ad5801d into main Dec 7, 2023
8 checks passed
@jcrist jcrist deleted the json-schema-property-names branch December 7, 2023 18:03
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.

None yet

1 participant