Skip to content

Use openapi-schema-validator library #212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -324,4 +324,5 @@ You can use RequestsOpenAPIResponse as a Requests response factory:
Related projects
################
* `openapi-spec-validator <https://github.com/p1c2u/openapi-spec-validator>`__
* `openapi-schema-validator <https://github.com/p1c2u/openapi-schema-validator>`__
* `pyramid_openapi3 <https://github.com/niteoweb/pyramid_openapi3>`__
4 changes: 0 additions & 4 deletions openapi_core/schema_validator/__init__.py

This file was deleted.

135 changes: 0 additions & 135 deletions openapi_core/schema_validator/_format.py

This file was deleted.

21 changes: 0 additions & 21 deletions openapi_core/schema_validator/_types.py

This file was deleted.

87 changes: 0 additions & 87 deletions openapi_core/schema_validator/_validators.py

This file was deleted.

72 changes: 0 additions & 72 deletions openapi_core/schema_validator/validators.py

This file was deleted.

4 changes: 2 additions & 2 deletions openapi_core/unmarshalling/schemas/factories.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from copy import deepcopy
import warnings

from openapi_schema_validator import OAS30Validator, oas30_format_checker

from openapi_core.schema.schemas.enums import SchemaType, SchemaFormat
from openapi_core.schema.schemas.models import Schema
from openapi_core.schema_validator import OAS30Validator
from openapi_core.schema_validator import oas30_format_checker
from openapi_core.unmarshalling.schemas.enums import UnmarshalContext
from openapi_core.unmarshalling.schemas.exceptions import (
FormatterNotFoundError,
Expand Down
10 changes: 5 additions & 5 deletions openapi_core/unmarshalling/schemas/unmarshallers.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
from functools import partial
import logging

from openapi_schema_validator._types import (
is_array, is_bool, is_integer,
is_object, is_number, is_string,
)
from openapi_schema_validator._format import oas30_format_checker
from six import text_type, binary_type
from six import iteritems

from openapi_core.extensions.models.factories import ModelFactory
from openapi_core.schema.schemas.enums import SchemaFormat, SchemaType
from openapi_core.schema.schemas.models import Schema
from openapi_core.schema.schemas.types import NoValue
from openapi_core.schema_validator._types import (
is_array, is_bool, is_integer,
is_object, is_number, is_string,
)
from openapi_core.schema_validator._format import oas30_format_checker
from openapi_core.unmarshalling.schemas.enums import UnmarshalContext
from openapi_core.unmarshalling.schemas.exceptions import (
UnmarshalError, ValidateError, InvalidSchemaValue,
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
openapi-spec-validator
openapi-schema-validator
six
lazy-object-proxy
strict_rfc3339
isodate
attrs
parse==1.14.0
more-itertools>=5.0.0
2 changes: 1 addition & 1 deletion requirements_2.7.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
openapi-spec-validator
openapi-schema-validator
six
lazy-object-proxy
backports.functools-lru-cache
backports.functools-partialmethod
enum34
strict_rfc3339
attrs
more-itertools==5.0.0
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ setup_requires =
setuptools
install_requires =
openapi-spec-validator
openapi-schema-validator
six
lazy-object-proxy
strict_rfc3339
isodate
attrs
werkzeug
parse
Expand Down
Loading