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

Allow ordering of constraints #825

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Allow ordering of constraints #825

wants to merge 3 commits into from

Conversation

adriangb
Copy link
Member

This moves constraints out of the parsing validators and into their own thing so that they can be re-ordered and to simplify core schema creation on the pydantic Python side.

@codspeed-hq
Copy link

codspeed-hq bot commented Jul 26, 2023

CodSpeed Performance Report

Merging #825 will not alter performance

Comparing constraints (e2cd996) with main (ce34622)

Summary

✅ 135 untouched benchmarks

min_length: usize,
actual_length: usize,
},
TooLong {
field_type: String,
max_length: usize,
actual_length: usize,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this from the context may be a breaking change? Maybe can use the class name as the error message? This will also be nicer to see list or tuple instead of data.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried that and had some trouble. Happy to revert this part of the change once we've gotten most of this PR into shape.

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

2 participants