hathor-core icon indicating copy to clipboard operation
hathor-core copied to clipboard

Parse and validate API parameters from OpenAPI

Open obiyankenobi opened this issue 5 years ago • 1 comments

From this comment. @msbrogli suggested:

"Instead of manually validating each input, isn't it easier to get the basic validation rules from the OpenAPI Specification of each API?

I'd say we would be able to validate 99% of the input errors using it, and it would also return the parsed object. Maybe we should have a ParsedQuery object with the types so mypy can check the types as well."

obiyankenobi avatar Feb 11 '20 19:02 obiyankenobi