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

Validate that schema's fields match __init__ args of related model for Resources with "POST" method. #38

Open
dmitrymishanov opened this issue Jan 14, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@dmitrymishanov
Copy link
Contributor

The purpose of this validation is to "fail early" if developer has made a mistake with fields.
I reverted commit with an attempt to implement such validation, because it didn't consider that validation is needed only for "POST" method (because schema fields will be used as args for model.__init__) and that some fields like serial primary keys should be generated automatically.

@dmitrymishanov dmitrymishanov added the enhancement New feature or request label Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant