mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-22 03:00:10 +00:00
README: there's no such module as openapi_core.validators
This commit is contained in:
parent
9e16cc564a
commit
597f6f983f
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ Now you can use it to validate requests
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from openapi_core.validators import RequestValidator
|
from openapi_core.shortcuts import RequestValidator
|
||||||
|
|
||||||
validator = RequestValidator(spec)
|
validator = RequestValidator(spec)
|
||||||
result = validator.validate(request)
|
result = validator.validate(request)
|
||||||
|
@ -140,7 +140,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.shortcuts import ResponseValidator
|
||||||
from openapi_core.wrappers.flask import FlaskOpenAPIResponse
|
from openapi_core.wrappers.flask import FlaskOpenAPIResponse
|
||||||
|
|
||||||
openapi_response = FlaskOpenAPIResponse(flask_response)
|
openapi_response = FlaskOpenAPIResponse(flask_response)
|
||||||
|
|
Loading…
Reference in a new issue