title: How to validate an HTTP requests against an OpenAPI3 specification in Python?
body: <p>There seems to be number of python libraries dedicated to validate the correctness of an OpenApi schema. While this might be useful, I can frankly just write my OpenApi schema here it in <a href="https://editor.swagger.io" rel="nofollow noreferrer">https://editor.swagger.io</a> and have it validated / converted / pretty formatted.</p>
  <p>I'm then left with clients potentially sending any kind of dirty data to my OpenApi documented endpoint.</p>
  <p>Currently the problem of validating data against the OpenAPI schema is commonly addressed by extending data validation tools with plugins that can infer the OpenAPI spec from their data validation declaration. However, the reverse is not typically possible, that is to start from the OpenAPI schema and instantiate data validators. Also, the OpenAPI generated from validation declarations tends to be incomplete.</p>
  <p><strong>How can I validate HTTP request data against an OpenAPI3 spec in Python (preferably in a generic and framework-agnostic way)?</strong></p>