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 78afae3 commit a40a252Copy full SHA for a40a252
README.rst
@@ -72,6 +72,15 @@ and unmarshal request data from validation result
72
# get body
73
validated_body = result.body
74
75
+or use shortcuts for simple validation
76
+
77
+.. code-block:: python
78
79
+ from openapi_core import validate_parameters, validate_body
80
81
+ validated_params = validate_parameters(spec, request)
82
+ validated_body = validate_body(spec, request)
83
84
Request object should implement BaseOpenAPIRequest interface. You can use FlaskOpenAPIRequest a Flask/Werkzeug request wrapper implementation:
85
86
.. code-block:: python
0 commit comments