'Falcon - how to validate incoming requests against Swagger specification?
What is the most convenient and comprehensive way of validating incoming requests in Falcon views against Swagger 2.0 specification written in json?
I used to do the same for Pyramid apps with great tool called pyramid_swagger. It was seamlessly pluggable on application level and it attached validated
dict to the request
object. It contained everything, including path parameters, querystring parameters and of course body params.
I tried Flex and falcon-json-io, but couldn't make it do what I need. Also serve_swagger is completely different story, I don't need an autogenerated API.
At this point I am considering writing my own tool or extending Flex or falcon-json-io. Is there something I missed?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|