JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q32594F
  • License MIT

OpenApi 3.0 to Postman converter

Package Exports

  • op-converter

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (op-converter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

op-converter

A converter to convert OpenApi 3.0 doc to Postman collection.

Getting Started

Usage

$ npm install -g op-converter
$ op-converter COMMAND
running command...
$ op-converter --help [COMMAND]
USAGE
  $ op-converter COMMAND

Configuration Options

By default op-converter reads all configurable options from config.json at the following location

Unix: ~/.config/gitcg
Windows: %LOCALAPPDATA%\gitcg
Can be overridden with XDG_CONFIG_HOME

Below are the available configurable options.

path

Name Value
type object
mandatory false

Example

{
  "path": {}
}

enableReplacePrefix

Name Value
type boolean
parent path
mandatory false
mandatory siblings replacePrefix, replacePrefixWith

Example

{
  "path": {
    "enableReplacePrefix": true,
    "replacePrefix": "/v1",
    "replacePrefixWith": ""
  }
}

replacePrefix

Name Value
type string
parent path
mandatory false
mandatory siblings enableReplacePrefix, replacePrefixWith

Example

{
  "path": {
    "enableReplacePrefix": true,
    "replacePrefix": "/v1",
    "replacePrefixWith": ""
  }
}

replacePrefixWith

Name Value
type string
parent path
mandatory false
mandatory siblings enableReplacePrefix, replacePrefix

Example

{
  "path": {
    "enableReplacePrefix": true,
    "replacePrefix": "/v1",
    "replacePrefixWith": ""
  }
}

auth

Postman Auth field

Name Value
type object
mandatory false

Example

{
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{CURRENT_ACCESS_TOKEN}}",
        "type": "string"
      }
    ]
  }
}

events

Postman event field

Name Value
type array
mandatory false
{
  "events": [
    {
      "listen": "test",
      "script": {
        "exec": [
          ""
        ],
        "type": "text/javascript"
      }
    }
  ]
}