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

Use I/O validation for flask-restx #3031

Open
Tracked by #2809
nikromen opened this issue Nov 27, 2023 · 0 comments
Open
Tracked by #2809

Use I/O validation for flask-restx #3031

nikromen opened this issue Nov 27, 2023 · 0 comments

Comments

@nikromen
Copy link
Member

We don't use flask-restx parsers since the documentation says the parsers will be no longer developed and they recommends using packages that handles I/O better - marshmallow or pydantic.

This is basically follow-up for #2807 to prevent it to become huge - the schemas for validation are there in shema/schemas.py and are written using dataclasses which uses basically the same structure that pydantic/marshmallow uses so the transition to it code-wise will be easy - the tricky part may be that we don't do validation right now with the dataclasses so there is a chance that some data will need some tinkering

parser docs - https://flask-restx.readthedocs.io/en/latest/parsing.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In 2 years
Development

No branches or pull requests

1 participant