mirror of
https://github.com/correl/openapi-core.git
synced 2025-01-01 11:03:19 +00:00
Merge pull request #45 from erpheus/master
Fixed flask wrapper imports in readme doc
This commit is contained in:
commit
9e16cc564a
1 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ Request object should implement BaseOpenAPIRequest interface. You can use FlaskO
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from openapi_core.validators import RequestValidator
|
from openapi_core.validators import RequestValidator
|
||||||
from openapi_core.wrappers import FlaskOpenAPIRequest
|
from openapi_core.wrappers.flask import FlaskOpenAPIRequest
|
||||||
|
|
||||||
openapi_request = FlaskOpenAPIRequest(flask_request)
|
openapi_request = FlaskOpenAPIRequest(flask_request)
|
||||||
validator = RequestValidator(spec)
|
validator = RequestValidator(spec)
|
||||||
|
@ -141,7 +141,7 @@ Response object should implement BaseOpenAPIResponse interface. You can use Flas
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from openapi_core.validators import ResponseValidator
|
from openapi_core.validators import ResponseValidator
|
||||||
from openapi_core.wrappers import FlaskOpenAPIResponse
|
from openapi_core.wrappers.flask import FlaskOpenAPIResponse
|
||||||
|
|
||||||
openapi_response = FlaskOpenAPIResponse(flask_response)
|
openapi_response = FlaskOpenAPIResponse(flask_response)
|
||||||
validator = ResponseValidator(spec)
|
validator = ResponseValidator(spec)
|
||||||
|
|
Loading…
Reference in a new issue