postman-to-openapi icon indicating copy to clipboard operation
postman-to-openapi copied to clipboard

disabled options

Open 379820 opened this issue 3 years ago • 0 comments

Hi,

Thanks for the great product.

Postman gives you the ability to enable and disable options, parameters, for example, in headers.

In postman json this is marked as "disabled": true.

Apparently there is no way to have switches, for example, in the headers for swagger?

I should probably put the changeable values into variables and leave only enabled headers to control them?

from json:

{
  "info": {
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "whatever",
      "item": [
        {
          "name": "Create new whatever",
          "event": [
          ],
          "request": {
            "auth": {
              "type": "noauth"
            },
            "method": "POST",
            "header": [
              {
                "key": "X-Real-UserAgent",
                "value": "{{real_user_agent}}",
                "type": "text"
              },
              {
                "key": "X-Real-UserAgent",
                "value": "{{real_user_agent_mobile}}",
                "type": "text",
                "disabled": true
              }
            ]…

379820 avatar Apr 05 '22 13:04 379820