We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f1e45e commit d4306d2Copy full SHA for d4306d2
README.rst
@@ -66,6 +66,17 @@ Now you can use it to validate and unmarshal requests
66
# get body
67
body = result.body
68
69
+Request object should implement BaseOpenAPIRequest interface. You can use FlaskOpenAPIRequest a Flask/Werkzeug request wrapper implementation:
70
+
71
+.. code-block:: python
72
73
+ from openapi_core.validators import RequestValidator
74
+ from openapi_core.wrappers import FlaskOpenAPIRequest
75
76
+ openapi_request = FlaskOpenAPIRequest(flask_request)
77
+ validator = RequestValidator(spec)
78
+ result = validator.validate(openapi_request)
79
80
Related projects
81
================
82
* `openapi-spec-validator <https://github.com/p1c2u/openapi-spec-validator>`__
0 commit comments