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

Return @dataclasses objects instead of primitives in request.openapi_validated #3

Open
zupo opened this issue Aug 2, 2018 · 3 comments

Comments

@zupo
Copy link
Collaborator

zupo commented Aug 2, 2018

Instead of having strings, ints, etc in request.openapi_validated we could have dataclass objects that match the schema and provide type protection.

@zupo
Copy link
Collaborator Author

zupo commented Aug 2, 2018

Similar idea: graphql-python/graphene#729 (comment)

@domenkozar
Copy link
Member

@zupo
Copy link
Collaborator Author

zupo commented May 22, 2019

It seems pyramid-swagger can generate python models on the fly: https://pyramid-swagger.readthedocs.io/en/latest/quickstart.html#accessing-request-data

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

No branches or pull requests

2 participants