Merge pull request #45 from erpheus/master

Fixed flask wrapper imports in readme doc
This commit is contained in:
A 2018-06-18 15:27:00 +01:00 committed by GitHub
commit 9e16cc564a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ Request object should implement BaseOpenAPIRequest interface. You can use FlaskO
.. code-block:: python
from openapi_core.validators import RequestValidator
from openapi_core.wrappers import FlaskOpenAPIRequest
from openapi_core.wrappers.flask import FlaskOpenAPIRequest
openapi_request = FlaskOpenAPIRequest(flask_request)
validator = RequestValidator(spec)
@ -141,7 +141,7 @@ Response object should implement BaseOpenAPIResponse interface. You can use Flas
.. code-block:: python
from openapi_core.validators import ResponseValidator
from openapi_core.wrappers import FlaskOpenAPIResponse
from openapi_core.wrappers.flask import FlaskOpenAPIResponse
openapi_response = FlaskOpenAPIResponse(flask_response)
validator = ResponseValidator(spec)