Merge pull request #50 from domenkozar/patch-1

README: there's no such module as openapi_core.validators
This commit is contained in:
A 2018-07-09 12:15:53 +01:00 committed by GitHub
commit 08aee67c19
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)