Use openapi-core
library as request/response validator
#34
maticardenas
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package openapi-core seems to be performing already the tasks of unmarshaling and validating request/responses against their OpenAPI specification, which is the main goal of this package now.
It is compliant also with many existing libraries, being Django one of those. It allows to integrate django validation for the entire application but, to keep it more flexible in this package, we could probably make usage and wrap the request validation and response validation features within the
OpenAPIClient
andOpenAPINinjaClient
.This way we could avoid re-working existing functionality, and use a more actively maintained and contributed package for this specific purpose. Any opinions on this matter?
Beta Was this translation helpful? Give feedback.
All reactions