{"id":14986764,"url":"https://github.com/avanov/openapi-type","last_synced_at":"2025-08-18T15:09:01.447Z","repository":{"id":37004994,"uuid":"324717113","full_name":"avanov/openapi-type","owner":"avanov","description":"OpenAPI represented as a Python type. Use it to parse specifications written in JSON and YAML formats.","archived":false,"fork":false,"pushed_at":"2022-06-19T15:47:42.000Z","size":50,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-11T23:02:07.072Z","etag":null,"topics":["colander","mypy","oas3","openapi","openapi3","parser","specification","swagger","typing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avanov.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["avanov"]}},"created_at":"2020-12-27T08:19:27.000Z","updated_at":"2024-01-08T03:17:19.000Z","dependencies_parsed_at":"2022-08-18T07:10:29.983Z","dependency_job_id":null,"html_url":"https://github.com/avanov/openapi-type","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/avanov/openapi-type","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avanov%2Fopenapi-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avanov%2Fopenapi-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avanov%2Fopenapi-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avanov%2Fopenapi-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avanov","download_url":"https://codeload.github.com/avanov/openapi-type/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avanov%2Fopenapi-type/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263908539,"owners_count":23528472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["colander","mypy","oas3","openapi","openapi3","parser","specification","swagger","typing"],"created_at":"2024-09-24T14:13:29.442Z","updated_at":"2025-07-06T13:34:35.218Z","avatar_url":"https://github.com/avanov.png","language":"Python","funding_links":["https://github.com/sponsors/avanov"],"categories":[],"sub_categories":[],"readme":".. _badges:\n\n.. image:: https://github.com/avanov/openapi-type/workflows/CI/badge.svg?branch=develop\n    :target: https://github.com/avanov/openapi-type/actions?query=branch%3Adevelop\n\n.. image:: https://coveralls.io/repos/github/avanov/openapi-type/badge.svg?branch=develop\n    :target: https://coveralls.io/github/avanov/openapi-type?branch=develop\n\n.. image:: https://requires.io/github/avanov/openapi-type/requirements.svg?branch=master\n    :target: https://requires.io/github/avanov/openapi-type/requirements/?branch=master\n    :alt: Requirements Status\n\n.. image:: https://readthedocs.org/projects/openapi-type/badge/?version=latest\n    :target: https://openapi-type.readthedocs.io/en/latest/\n    :alt: Documentation Status\n\n.. image:: http://img.shields.io/pypi/v/openapi-type.svg\n    :target: https://pypi.python.org/pypi/openapi-type\n    :alt: Latest PyPI Release\n\n\nOpenAPI Type\n============\n\nOpenAPI specification represented as a Python type. Use it to parse specifications written in JSON and YAML formats.\n\n.. code:: bash\n\n    pip install openapi-type\n\n\n.. code:: python\n\n    from openapi_type import OpenAPI, parse_spec, serialize_spec\n\n\n    spec: OpenAPI = parse_spec({\n        \"your OpenAPI Spec as Python dictionary\": \"will be parsed into a proper Python type\"\n    })\n    assert parse_spec(serialize_spec(spec)) == spec\n\n.. code:: bash\n\n    $ curl -s https://petstore3.swagger.io/api/v3/openapi.json | openapi-type check\n    Successfully parsed.\n\n\nCodegen\n-------\n\nIf you are looking for a complete client code generator, consider `openapi-client-generator \u003chttps://github.com/avanov/openapi-client-generator\u003e`_\nthat uses this library under the hood.\n\nCloning this repo\n-----------------\n\nThe proper way to clone this repo is:\n\n.. code-block:: bash\n\n    git clone --recurse-submodules \u003crepo-url\u003e \u003clocal-project-root\u003e\n    cd \u003clocal-project-root\u003e\n\n    # for showing submodule status with `git status`\n    git config status.submodulesummary 1\n\n    # for logging submodule diff with `git diff`\n    git config diff.submodule log\n\n\nDocumentation\n-------------\n\nDocumentation is hosted on ReadTheDocs: https://openapi-type.readthedocs.io/en/develop/\n\n\nTest framework\n--------------\n\nThe project uses `Nix \u003chttps://nixos.org/\u003e`_ for bootstrapping its dev environment.\n\nYou can run existing test suite with\n\n.. code:: bash\n\n   nix-shell --run \"make test\"\n\n\nChangelog\n---------\n\nSee `CHANGELOG \u003chttps://github.com/avanov/openapi-type/blob/master/CHANGELOG.rst\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favanov%2Fopenapi-type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favanov%2Fopenapi-type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favanov%2Fopenapi-type/lists"}