{"id":34736011,"url":"https://github.com/levoai/postman-to-openapi","last_synced_at":"2026-05-01T20:31:18.022Z","repository":{"id":46381006,"uuid":"452891942","full_name":"levoai/postman-to-openapi","owner":"levoai","description":"Convert Postman Collections to Full OpenAPI V3 Specifications","archived":false,"fork":false,"pushed_at":"2023-02-21T06:56:36.000Z","size":550,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-04-21T16:59:03.434Z","etag":null,"topics":["openapi-specification","postman","postman-collection"],"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/levoai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-28T00:35:59.000Z","updated_at":"2024-04-21T16:59:03.435Z","dependencies_parsed_at":"2022-08-29T05:20:58.692Z","dependency_job_id":null,"html_url":"https://github.com/levoai/postman-to-openapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/levoai/postman-to-openapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levoai%2Fpostman-to-openapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levoai%2Fpostman-to-openapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levoai%2Fpostman-to-openapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levoai%2Fpostman-to-openapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levoai","download_url":"https://codeload.github.com/levoai/postman-to-openapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levoai%2Fpostman-to-openapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32512662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["openapi-specification","postman","postman-collection"],"created_at":"2025-12-25T03:34:31.973Z","updated_at":"2026-05-01T20:31:17.982Z","avatar_url":"https://github.com/levoai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postman to OpenAPI\n![Postman-to-OpenAPI](./assets/postman-to-openapi.svg)\n\n## Synopsis\nPostman collections are ubiquitous and invaluable for the functional testing of APIs. \n\nHowever specialized API tests such as *API Contract Testing*, and *API Security Testing* require proper OpenAPI Specifications as inputs.\n\nThis tools converts Postman collections to full featured OpenAPI v3 Specifications, that enable [`Codeless Contract Tests`](https://docs.levo.ai/test-your-app/test-app-schema-conformance), and [`Codeless API Security Tests`](https://docs.levo.ai/test-your-app/test-app-security/choices).\n\n## Usage\n\n1. Install `postman-to-openapi` NPM package\n```bash \n# See https://www.npmjs.com/package postman-to-openapi for details\nsudo npm i postman-to-openapi -g\n```\n\n2. Install `json-schema` python package\n```bash\npip install genson\n```\n\n3. Generate the OpenAPI YAML\n```bash\n./postman_collection_to_openapi.py \u003cpath to the Postman Collection file\u003e\n```\n\n\u003e The OpenAPI file will be saved to the same directory as the specified Postman Collection.\n\n4. Generate an enriched OpenAPI Specification\n\n```bash\n./enrich_openapi_spec.py \u003cpath to the openapi.yaml file\u003e\n```\n\n\u003e The enriched OpenAPI file will be saved to the same directory as the specified `openapi.yaml`.\n\n- Enrichment does the following:\n   - Split the specification into multiple files based on given prefix\n   - Add path parameters to the paths if missing\n   - Replace undefined response status codes with 200\n   - Remove redundant `content-type` parameters\n\n\n## Examples\n\nThe `./examples` directory has examples of OpenAPI Specifications generated from Postman Collections (for a couple of well know APIs  - [GitLab](https://about.gitlab.com/), and [GoodBank](https://www.postman.com/studentconnects/workspace/learning-apis/documentation/4368270-0efa0ab1-a280-488d-900f-28d724f12635)).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevoai%2Fpostman-to-openapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevoai%2Fpostman-to-openapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevoai%2Fpostman-to-openapi/lists"}