README: there's no such module as openapi_core.validators

This commit is contained in:
Domen Kožar 2018-06-28 15:01:35 +01:00 committed by GitHub
parent 9e16cc564a
commit 597f6f983f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@ Now you can use it to validate requests
.. code-block:: python
from openapi_core.validators import RequestValidator
from openapi_core.shortcuts import RequestValidator
validator = RequestValidator(spec)
result = validator.validate(request)
@ -140,7 +140,7 @@ Response object should implement BaseOpenAPIResponse interface. You can use Flas
.. code-block:: python
from openapi_core.validators import ResponseValidator
from openapi_core.shortcuts import ResponseValidator
from openapi_core.wrappers.flask import FlaskOpenAPIResponse
openapi_response = FlaskOpenAPIResponse(flask_response)