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

COMP-781: Validate input arguments #80

Merged
merged 12 commits into from
Apr 20, 2023

Conversation

rbrazinskas
Copy link
Contributor

Implement circuit validation using custom validators in Pydantic models

<humanize> is used to generate ordinals for user-friendly error messages
<pylint-pydantic> is used to suppress pylint warning from custom pydantic validators (no-self-argument)
The implementation uses custom validators in pydantic models. Also, pydantic models are moved into a separate file as the original module was getting too large according to pylint (>1k LoC)
The validator is for the <implementation> field of the <Instruction>
@rbrazinskas rbrazinskas marked this pull request as ready for review April 14, 2023 07:10
ollityrkko
ollityrkko previously approved these changes Apr 19, 2023
@rbrazinskas
Copy link
Contributor Author

@ollityrkko, could you take one more look? Review is required again after solving the merge conflicts

@rbrazinskas rbrazinskas merged commit 6a2ea08 into main Apr 20, 2023
10 checks passed
@rbrazinskas rbrazinskas deleted the comp-781-validate-input-arguments branch April 20, 2023 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants