├── .github ├── FUNDING.yml ├── dependabot.yml └── workflows │ ├── build-docs.yml │ ├── docker-publish-manual.yml │ ├── docker-publish.yml │ ├── python-publish.yml │ └── python-test.yml ├── .gitignore ├── .pre-commit-config.yaml ├── .pre-commit-hooks.yaml ├── .readthedocs.yaml ├── .travis.yml ├── CONTRIBUTING.rst ├── Dockerfile ├── LICENSE ├── Makefile ├── NOTICE ├── README.rst ├── SECURITY.md ├── docs ├── cli.rst ├── conf.py ├── contributing.rst ├── hook.rst ├── index.rst ├── make.bat └── python.rst ├── openapi_spec_validator ├── __init__.py ├── __main__.py ├── exceptions.py ├── py.typed ├── readers.py ├── resources │ └── schemas │ │ ├── v2.0 │ │ └── schema.json │ │ ├── v3.0.0 │ │ └── schema.json │ │ ├── v3.0 │ │ └── schema.json │ │ └── v3.1 │ │ └── schema.json ├── schemas │ ├── __init__.py │ ├── types.py │ └── utils.py ├── shortcuts.py ├── validation │ ├── __init__.py │ ├── caches.py │ ├── decorators.py │ ├── exceptions.py │ ├── keywords.py │ ├── protocols.py │ ├── proxies.py │ ├── registries.py │ ├── types.py │ └── validators.py └── versions │ ├── __init__.py │ ├── consts.py │ ├── datatypes.py │ ├── exceptions.py │ ├── finders.py │ └── shortcuts.py ├── poetry.lock ├── pyproject.toml ├── tests └── integration │ ├── conftest.py │ ├── data │ ├── empty.yaml │ ├── v2.0 │ │ ├── empty.yaml │ │ ├── missing-reference.yaml │ │ └── petstore.yaml │ ├── v3.0 │ │ ├── empty.yaml │ │ ├── missing-description.yaml │ │ ├── parent-reference │ │ │ ├── common.yaml │ │ │ ├── openapi.yaml │ │ │ ├── recursive.yaml │ │ │ ├── recursive2.yaml │ │ │ └── spec │ │ │ │ └── components.yaml │ │ ├── petstore-separate │ │ │ ├── common │ │ │ │ └── schemas │ │ │ │ │ └── Error.yaml │ │ │ └── spec │ │ │ │ ├── openapi.yaml │ │ │ │ └── schemas │ │ │ │ ├── Pet.yaml │ │ │ │ └── Pets.yaml │ │ ├── petstore.yaml │ │ ├── property-missing-reference.yaml │ │ ├── property-recursive.yaml │ │ └── read-only-write-only.yaml │ └── v3.1 │ │ └── petstore.yaml │ ├── test_main.py │ ├── test_shortcuts.py │ ├── test_versions.py │ └── validation │ ├── test_exceptions.py │ └── test_validators.py └── tox.ini /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [p1c2u] 2 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/build-docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/.github/workflows/build-docs.yml -------------------------------------------------------------------------------- /.github/workflows/docker-publish-manual.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/.github/workflows/docker-publish-manual.yml -------------------------------------------------------------------------------- /.github/workflows/docker-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/.github/workflows/docker-publish.yml -------------------------------------------------------------------------------- /.github/workflows/python-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/.github/workflows/python-publish.yml -------------------------------------------------------------------------------- /.github/workflows/python-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/.github/workflows/python-test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.pre-commit-hooks.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/.pre-commit-hooks.yaml -------------------------------------------------------------------------------- /.readthedocs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/.readthedocs.yaml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/.travis.yml -------------------------------------------------------------------------------- /CONTRIBUTING.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/CONTRIBUTING.rst -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/Makefile -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/NOTICE -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/README.rst -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/SECURITY.md -------------------------------------------------------------------------------- /docs/cli.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/docs/cli.rst -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/docs/conf.py -------------------------------------------------------------------------------- /docs/contributing.rst: -------------------------------------------------------------------------------- 1 | .. include:: ../CONTRIBUTING.rst 2 | -------------------------------------------------------------------------------- /docs/hook.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/docs/hook.rst -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/docs/index.rst -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/docs/make.bat -------------------------------------------------------------------------------- /docs/python.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/docs/python.rst -------------------------------------------------------------------------------- /openapi_spec_validator/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/__init__.py -------------------------------------------------------------------------------- /openapi_spec_validator/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/__main__.py -------------------------------------------------------------------------------- /openapi_spec_validator/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/exceptions.py -------------------------------------------------------------------------------- /openapi_spec_validator/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /openapi_spec_validator/readers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/readers.py -------------------------------------------------------------------------------- /openapi_spec_validator/resources/schemas/v2.0/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/resources/schemas/v2.0/schema.json -------------------------------------------------------------------------------- /openapi_spec_validator/resources/schemas/v3.0.0/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/resources/schemas/v3.0.0/schema.json -------------------------------------------------------------------------------- /openapi_spec_validator/resources/schemas/v3.0/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/resources/schemas/v3.0/schema.json -------------------------------------------------------------------------------- /openapi_spec_validator/resources/schemas/v3.1/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/resources/schemas/v3.1/schema.json -------------------------------------------------------------------------------- /openapi_spec_validator/schemas/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/schemas/__init__.py -------------------------------------------------------------------------------- /openapi_spec_validator/schemas/types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/schemas/types.py -------------------------------------------------------------------------------- /openapi_spec_validator/schemas/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/schemas/utils.py -------------------------------------------------------------------------------- /openapi_spec_validator/shortcuts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/shortcuts.py -------------------------------------------------------------------------------- /openapi_spec_validator/validation/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/validation/__init__.py -------------------------------------------------------------------------------- /openapi_spec_validator/validation/caches.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/validation/caches.py -------------------------------------------------------------------------------- /openapi_spec_validator/validation/decorators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/validation/decorators.py -------------------------------------------------------------------------------- /openapi_spec_validator/validation/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/validation/exceptions.py -------------------------------------------------------------------------------- /openapi_spec_validator/validation/keywords.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/validation/keywords.py -------------------------------------------------------------------------------- /openapi_spec_validator/validation/protocols.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/validation/protocols.py -------------------------------------------------------------------------------- /openapi_spec_validator/validation/proxies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/validation/proxies.py -------------------------------------------------------------------------------- /openapi_spec_validator/validation/registries.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/validation/registries.py -------------------------------------------------------------------------------- /openapi_spec_validator/validation/types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/validation/types.py -------------------------------------------------------------------------------- /openapi_spec_validator/validation/validators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/validation/validators.py -------------------------------------------------------------------------------- /openapi_spec_validator/versions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/versions/__init__.py -------------------------------------------------------------------------------- /openapi_spec_validator/versions/consts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/versions/consts.py -------------------------------------------------------------------------------- /openapi_spec_validator/versions/datatypes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/versions/datatypes.py -------------------------------------------------------------------------------- /openapi_spec_validator/versions/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/versions/exceptions.py -------------------------------------------------------------------------------- /openapi_spec_validator/versions/finders.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/versions/finders.py -------------------------------------------------------------------------------- /openapi_spec_validator/versions/shortcuts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/openapi_spec_validator/versions/shortcuts.py -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/pyproject.toml -------------------------------------------------------------------------------- /tests/integration/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/conftest.py -------------------------------------------------------------------------------- /tests/integration/data/empty.yaml: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/integration/data/v2.0/empty.yaml: -------------------------------------------------------------------------------- 1 | swagger: "2.0" -------------------------------------------------------------------------------- /tests/integration/data/v2.0/missing-reference.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v2.0/missing-reference.yaml -------------------------------------------------------------------------------- /tests/integration/data/v2.0/petstore.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v2.0/petstore.yaml -------------------------------------------------------------------------------- /tests/integration/data/v3.0/empty.yaml: -------------------------------------------------------------------------------- 1 | openapi: "3.0.0" -------------------------------------------------------------------------------- /tests/integration/data/v3.0/missing-description.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v3.0/missing-description.yaml -------------------------------------------------------------------------------- /tests/integration/data/v3.0/parent-reference/common.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v3.0/parent-reference/common.yaml -------------------------------------------------------------------------------- /tests/integration/data/v3.0/parent-reference/openapi.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v3.0/parent-reference/openapi.yaml -------------------------------------------------------------------------------- /tests/integration/data/v3.0/parent-reference/recursive.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v3.0/parent-reference/recursive.yaml -------------------------------------------------------------------------------- /tests/integration/data/v3.0/parent-reference/recursive2.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v3.0/parent-reference/recursive2.yaml -------------------------------------------------------------------------------- /tests/integration/data/v3.0/parent-reference/spec/components.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v3.0/parent-reference/spec/components.yaml -------------------------------------------------------------------------------- /tests/integration/data/v3.0/petstore-separate/common/schemas/Error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v3.0/petstore-separate/common/schemas/Error.yaml -------------------------------------------------------------------------------- /tests/integration/data/v3.0/petstore-separate/spec/openapi.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v3.0/petstore-separate/spec/openapi.yaml -------------------------------------------------------------------------------- /tests/integration/data/v3.0/petstore-separate/spec/schemas/Pet.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v3.0/petstore-separate/spec/schemas/Pet.yaml -------------------------------------------------------------------------------- /tests/integration/data/v3.0/petstore-separate/spec/schemas/Pets.yaml: -------------------------------------------------------------------------------- 1 | type: array 2 | items: 3 | $ref: "Pet.yaml" -------------------------------------------------------------------------------- /tests/integration/data/v3.0/petstore.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v3.0/petstore.yaml -------------------------------------------------------------------------------- /tests/integration/data/v3.0/property-missing-reference.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v3.0/property-missing-reference.yaml -------------------------------------------------------------------------------- /tests/integration/data/v3.0/property-recursive.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v3.0/property-recursive.yaml -------------------------------------------------------------------------------- /tests/integration/data/v3.0/read-only-write-only.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v3.0/read-only-write-only.yaml -------------------------------------------------------------------------------- /tests/integration/data/v3.1/petstore.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/data/v3.1/petstore.yaml -------------------------------------------------------------------------------- /tests/integration/test_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/test_main.py -------------------------------------------------------------------------------- /tests/integration/test_shortcuts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/test_shortcuts.py -------------------------------------------------------------------------------- /tests/integration/test_versions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/test_versions.py -------------------------------------------------------------------------------- /tests/integration/validation/test_exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/validation/test_exceptions.py -------------------------------------------------------------------------------- /tests/integration/validation/test_validators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tests/integration/validation/test_validators.py -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python-openapi/openapi-spec-validator/HEAD/tox.ini --------------------------------------------------------------------------------