{"id":13633877,"url":"https://github.com/python-openapi/openapi-spec-validator","last_synced_at":"2026-03-01T17:11:08.439Z","repository":{"id":37385190,"uuid":"102581313","full_name":"python-openapi/openapi-spec-validator","owner":"python-openapi","description":"OpenAPI Spec Validator is a CLI, pre-commit hook and python package that validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger), OpenAPI 3.0 and OpenAPI 3.1 specification.","archived":false,"fork":false,"pushed_at":"2026-02-23T16:39:28.000Z","size":3084,"stargazers_count":387,"open_issues_count":53,"forks_count":71,"subscribers_count":8,"default_branch":"master","last_synced_at":"2026-02-23T21:24:25.958Z","etag":null,"topics":["oas","oas3","openapi","openapi2","openapi3","openapi31","python","python-library","specification","swagger","validation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/python-openapi.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["p1c2u"]}},"created_at":"2017-09-06T08:08:25.000Z","updated_at":"2026-02-23T16:36:29.000Z","dependencies_parsed_at":"2023-11-27T17:45:42.598Z","dependency_job_id":"17771fef-e15d-41dc-850d-bc6524322bc7","html_url":"https://github.com/python-openapi/openapi-spec-validator","commit_stats":{"total_commits":338,"total_committers":44,"mean_commits":7.681818181818182,"dds":0.591715976331361,"last_synced_commit":"ca5447917451ea0cb3865238d6e547658a5cef04"},"previous_names":["p1c2u/openapi-spec-validator"],"tags_count":42,"template":false,"template_full_name":null,"purl":"pkg:github/python-openapi/openapi-spec-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-openapi%2Fopenapi-spec-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-openapi%2Fopenapi-spec-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-openapi%2Fopenapi-spec-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-openapi%2Fopenapi-spec-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/python-openapi","download_url":"https://codeload.github.com/python-openapi/openapi-spec-validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-openapi%2Fopenapi-spec-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29976272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["oas","oas3","openapi","openapi2","openapi3","openapi31","python","python-library","specification","swagger","validation"],"created_at":"2024-08-01T23:00:53.072Z","updated_at":"2026-03-01T17:11:08.401Z","avatar_url":"https://github.com/python-openapi.png","language":"Python","readme":"**********************\nOpenAPI Spec validator\n**********************\n\n.. image:: https://img.shields.io/docker/v/pythonopenapi/openapi-spec-validator.svg?color=%23086DD7\u0026label=docker%20hub\u0026sort=semver\n     :target: https://hub.docker.com/r/pythonopenapi/openapi-spec-validator\n.. image:: https://img.shields.io/pypi/v/openapi-spec-validator.svg\n     :target: https://pypi.python.org/pypi/openapi-spec-validator\n.. image:: https://img.shields.io/codecov/c/github/python-openapi/openapi-spec-validator/master.svg?style=flat\n     :target: https://codecov.io/github/python-openapi/openapi-spec-validator?branch=master\n.. image:: https://img.shields.io/pypi/pyversions/openapi-spec-validator.svg\n     :target: https://pypi.python.org/pypi/openapi-spec-validator\n.. image:: https://img.shields.io/pypi/format/openapi-spec-validator.svg\n     :target: https://pypi.python.org/pypi/openapi-spec-validator\n.. image:: https://img.shields.io/pypi/status/openapi-spec-validator.svg\n     :target: https://pypi.python.org/pypi/openapi-spec-validator\n\nAbout\n#####\n\nOpenAPI Spec Validator is a CLI, pre-commit hook and python package that validates OpenAPI Specs\nagainst the `OpenAPI 2.0 (aka Swagger)\n\u003chttps://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md\u003e`__,\n`OpenAPI 3.0 \u003chttps://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md\u003e`__\nand `OpenAPI 3.1 \u003chttps://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md\u003e`__\nspecification. The validator aims to check for full compliance with the Specification.\n\n\nDocumentation\n#############\n\nCheck documentation to see more details about the features. All documentation is in the \"docs\" directory and online at `openapi-spec-validator.readthedocs.io \u003chttps://openapi-spec-validator.readthedocs.io\u003e`__\n\n\nInstallation\n############\n\n.. code-block:: console\n\n    pip install openapi-spec-validator\n\nAlternatively you can download the code and install from the repository:\n\n.. code-block:: bash\n\n   pip install -e git+https://github.com/python-openapi/openapi-spec-validator.git#egg=openapi_spec_validator\n\n\nUsage\n#####\n\nCLI (Command Line Interface)\n****************************\n\nStraight forward way:\n\n.. code-block:: bash\n\n    openapi-spec-validator openapi.yaml\n\npipes way:\n\n.. code-block:: bash\n\n    cat openapi.yaml | openapi-spec-validator -\n\ndocker way:\n\n.. code-block:: bash\n\n    docker run -v path/to/openapi.yaml:/openapi.yaml --rm pythonopenapi/openapi-spec-validator /openapi.yaml\n\nor more pythonic way:\n\n.. code-block:: bash\n\n    python -m openapi_spec_validator openapi.yaml\n\nFor more details, read about `CLI (Command Line Interface) \u003chttps://openapi-spec-validator.readthedocs.io/en/latest/cli.html\u003e`__.\n\npre-commit hook\n***************\n\n.. code-block:: yaml\n\n   repos:\n   -   repo: https://github.com/python-openapi/openapi-spec-validator\n       rev: 0.8.0b1 # The version to use or 'master' for latest\n       hooks:\n       -   id: openapi-spec-validator\n\nFor more details, read about `pre-commit hook \u003chttps://openapi-spec-validator.readthedocs.io/en/latest/hook.html\u003e`__.\n\nPython package\n**************\n\n.. code:: python\n\n    from openapi_spec_validator import validate\n    from openapi_spec_validator.readers import read_from_filename\n\n    spec_dict, base_uri = read_from_filename('openapi.yaml')\n\n    # If no exception is raised by validate(), the spec is valid.\n    validate(spec_dict)\n\n    validate({'openapi': '3.1.0'})\n\n    Traceback (most recent call last):\n        ...\n    OpenAPIValidationError: 'info' is a required property\n\nFor more details, read about `Python package \u003chttps://openapi-spec-validator.readthedocs.io/en/latest/python.html\u003e`__.\n\nRelated projects\n################\n\n* `openapi-core \u003chttps://github.com/python-openapi/openapi-core\u003e`__\n   Python library that adds client-side and server-side support for the OpenAPI v3.0 and OpenAPI v3.1 specification.\n* `openapi-schema-validator \u003chttps://github.com/python-openapi/openapi-schema-validator\u003e`__\n   Python library that validates schema against the OpenAPI Schema Specification v3.0 and OpenAPI Schema Specification v3.1.\n\nLicense\n#######\n\nCopyright (c) 2017-2023, Artur Maciag, All rights reserved. Apache v2\n","funding_links":["https://github.com/sponsors/p1c2u"],"categories":["Python","OpenAPI Utilities"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-openapi%2Fopenapi-spec-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpython-openapi%2Fopenapi-spec-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-openapi%2Fopenapi-spec-validator/lists"}