{"id":25313791,"url":"https://github.com/weikangchia/op-converter","last_synced_at":"2025-10-28T17:31:18.744Z","repository":{"id":37932917,"uuid":"392223452","full_name":"weikangchia/op-converter","owner":"weikangchia","description":"Customizable Converter for OpenAPI 3.0 to Postman 2.1 Collections","archived":false,"fork":false,"pushed_at":"2025-02-04T00:45:06.000Z","size":261,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-04T01:30:37.297Z","etag":null,"topics":["developer-tools","oclif","openapi3","postman","postman-collection","swagger","tools","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/weikangchia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-03T07:04:49.000Z","updated_at":"2021-11-20T15:06:15.000Z","dependencies_parsed_at":"2023-09-29T19:09:12.130Z","dependency_job_id":"abc358c9-a098-47a7-8e4c-b4fb4662a83e","html_url":"https://github.com/weikangchia/op-converter","commit_stats":{"total_commits":83,"total_committers":3,"mean_commits":"27.666666666666668","dds":"0.45783132530120485","last_synced_commit":"08f83b8696345df01b119d49b9e58d6cc956f6be"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weikangchia%2Fop-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weikangchia%2Fop-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weikangchia%2Fop-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weikangchia%2Fop-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weikangchia","download_url":"https://codeload.github.com/weikangchia/op-converter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238686847,"owners_count":19513556,"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":["developer-tools","oclif","openapi3","postman","postman-collection","swagger","tools","typescript"],"created_at":"2025-02-13T16:23:40.178Z","updated_at":"2025-10-28T17:31:13.394Z","avatar_url":"https://github.com/weikangchia.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenAPI 3.0 to Postman 2.1 Collections Converter\n\n**op-converter** is a customizable converter for OpenAPI 3.0 to Postman 2.1 Collections.\n\n## Getting Started\n\n### Pre-requisites\n\n- Install [node](https://nodejs.org/en/download/)\n- Install op-converter\n  ```\n  npm install -g op-converter\n  ```\n\n### Usage\n```sh-session\nUSAGE:\n    op-converter\n\nOPTIONS:\n    - f, --openApiFile=openApiFile    path to your OpenAPI 3.0 JSON file\n    - h, --help                       show CLI help\n    - n, --name=name                  name for your postman collection\n    --baseUrl=baseUrl                 base url\n    --config=config                   custom config file name (default is config.json)\n```\n\n**Examples**\n```\nop-converter -f ./openapi.json -n \"My Collection\" --baseUrl=\"http://localhost\" \u003e postman.json\n```\n\n## Configuration Options\n\nBy default **op-converter** reads all configurable options from `config.json` at the following location\n\n```\nUnix: ~/.config/op-converter\nWindows: %LOCALAPPDATA%\\gitcg\n```\n\nBelow are the available configurable options.\n\n- [path](#path)\n  - [enableReplacePrefix](#enableReplacePrefix)\n  - [replacePrefix](#replacePrefix)\n  - [replacePrefixWith](#replacePrefixWith)\n- [auth](#auth)\n- [events](#events)\n\n### path\n\n| Name        | Value           |\n| ------------- |-------------|\n| type      | object |\n| mandatory | false |\n\nExample\n```json\n{\n  \"path\": {}\n}\n```\n\n#### enableReplacePrefix\n\n\n| Name        | Value           |\n| ------------- |-------------|\n| type      | boolean |\n| parent    | path |\n| mandatory | false |\n| mandatory siblings | replacePrefix, replacePrefixWith |\n\nExample\n```json\n{\n  \"path\": {\n    \"enableReplacePrefix\": true,\n    \"replacePrefix\": \"/v1\",\n    \"replacePrefixWith\": \"\"\n  }\n}\n```\n\n#### replacePrefix\n\n\n| Name        | Value           |\n| ------------- |-------------|\n| type      | string |\n| parent    | path |\n| mandatory | false |\n| mandatory siblings | enableReplacePrefix, replacePrefixWith |\n\nExample\n```json\n{\n  \"path\": {\n    \"enableReplacePrefix\": true,\n    \"replacePrefix\": \"/v1\",\n    \"replacePrefixWith\": \"\"\n  }\n}\n```\n\n#### replacePrefixWith\n\n\n| Name        | Value           |\n| ------------- |-------------|\n| type      | string |\n| parent    | path |\n| mandatory | false |\n| mandatory siblings | enableReplacePrefix, replacePrefix |\n\nExample\n```json\n{\n  \"path\": {\n    \"enableReplacePrefix\": true,\n    \"replacePrefix\": \"/v1\",\n    \"replacePrefixWith\": \"\"\n  }\n}\n```\n\n### auth\n\nPostman Auth field\n\n| Name        | Value           |\n| ------------- |-------------|\n| type      | object |\n| mandatory | false |\n\nExample\n```json\n{\n  \"auth\": {\n    \"type\": \"bearer\",\n    \"bearer\": [\n      {\n        \"key\": \"token\",\n        \"value\": \"{{CURRENT_ACCESS_TOKEN}}\",\n        \"type\": \"string\"\n      }\n    ]\n  }\n}\n```\n\n### events\n\nPostman event field\n\n| Name        | Value           |\n| ------------- |-------------|\n| type      | array |\n| mandatory | false |\n\nExample\n```json\n{\n  \"events\": [\n    {\n      \"listen\": \"test\",\n      \"script\": {\n        \"exec\": [\n          \"\"\n        ],\n        \"type\": \"text/javascript\"\n      }\n    }\n  ]\n}\n```\n\n## License\n\nDistributed under the MIT License. See [LICENSE](license) for more information.\n\n## Contributing\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.\n\n## Contact\n\nWei Kang - weikangchia[@]gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweikangchia%2Fop-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweikangchia%2Fop-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweikangchia%2Fop-converter/lists"}