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

Support exclusive constraints in schema #11

Merged
merged 3 commits into from
Jan 25, 2024
Merged

Conversation

roll
Copy link
Member

@roll roll commented Jan 6, 2024


Rationale

Although in the linked discussion there are valid arguments for using a hack instead of adding new constraints, I think that's just the right thing to do as the range and exclusive range are two standard constraints for numeric types (see JSONSchema - https://json-schema.org/understanding-json-schema/reference/numeric). New constraints are relatively simple to support in implementations

@roll
Copy link
Member Author

roll commented Jan 25, 2024

ACCEPTED by WG (8/9)

Copy link

cloudflare-pages bot commented Jan 25, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9ccd3d2
Status: ✅  Deploy successful!
Preview URL: https://9cbb57b4.datapackage.pages.dev
Branch Preview URL: https://856-exclusive-constraints.datapackage.pages.dev

View logs

@roll roll merged commit ad237e6 into main Jan 25, 2024
1 check passed
@roll roll deleted the 856/exclusive-constraints branch January 25, 2024 08:36
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.

Exclusive minimum and maximum values are not supported as numeric constraints
1 participant