pyramid_openapi3 icon indicating copy to clipboard operation
pyramid_openapi3 copied to clipboard

Return @dataclasses objects instead of primitives in request.openapi_validated

Open zupo opened this issue 7 years ago • 3 comments

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

zupo avatar Aug 02 '18 13:08 zupo

Similar idea: https://github.com/graphql-python/graphene/issues/729#issuecomment-393673570

zupo avatar Aug 02 '18 13:08 zupo

https://github.com/p1c2u/openapi-core/issues/88

domenkozar avatar Aug 23 '18 10:08 domenkozar

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

zupo avatar May 22 '19 19:05 zupo