postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.85k stars 839 forks source link

Default values for single property works but collection does not work... #8339

Closed AnthonyDesa closed 2 years ago

AnthonyDesa commented 4 years ago

Describe the bug I have imported swaggar.json in postman but it failed to include default value of property from Request object if the property is a collection i.e. List List it works fine with single value. I can see the default values for collection in swagger.json and SwaggerUI is also able to render the default values for both single value and collection.

AnthonyDesa commented 4 years ago

Please import following swagger.json to reproduce the behaviour. Example shows the request body correctly for GetPrice Api but main method does not show the default value when it is a collection...

{
  "openapi": "3.0.1",
  "info": {
    "title": "MarketPlace Cheque API v1.0",
    "version": "1.0"
  },
  "paths": {
    "/api/v{version}/HealthCheck/ServiceCheck": {
      "get": {
        "tags": [
          "HealthCheck"
        ],
        "summary": "ServiceCheck Opens the connection to all DB and verifies that the connectivity is available.\r\nThis service is called by F5 to monitor the health of application and to do fail over to next leg (If need be)\r\nThis Api is also helps in keeping the connection in connection pool",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "default": "1.0"
            }
          },
          {
            "name": "X-IBM-Client-Id",
            "in": "header",
            "required": true,
            "schema": {
              "default": "3480f637-9b92-4ec1-a86b-xxxxxxxxxxx"
            }
          },
          {
            "name": "X-IBM-Client-Secret",
            "in": "header",
            "required": true,
            "schema": {
              "default": "M3wS7yS6kE7kR6fV2dD8tM8aN1dI7uC2mU0sS5xxxxxxxxx"
            }
          },
          {
            "name": "CORRELATION_ID",
            "in": "header",
            "schema": {
              "default": "f25932cc-ef90-4d8d-9620-8c8998f92ec7"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "406": {
            "description": "Not Acceptable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.Error"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.ServiceCheckResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v{version}/ImageCustomizer/GetCustomizedImage": {
      "post": {
        "tags": [
          "ImageCustomizer"
        ],
        "summary": "Ref:https://www.infoworld.com/article/3174597/compressing-web-api-responses-to-reduce-payload.html",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "default": "1.0"
            }
          },
          {
            "name": "X-IBM-Client-Id",
            "in": "header",
            "required": true,
            "schema": {
              "default": "3480f637-9b92-4ec1-a86b-xxxxxxxxxxx"
            }
          },
          {
            "name": "X-IBM-Client-Secret",
            "in": "header",
            "required": true,
            "schema": {
              "default": "M3wS7yS6kE7kR6fV2dD8tM8aN1dI7uC2mU0sS5xxxxxxxxx"
            }
          },
          {
            "name": "CORRELATION_ID",
            "in": "header",
            "schema": {
              "default": "0a0dbf7e-81e2-446c-af2c-fe05fed63a98"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.GetCustomizedImageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.GetCustomizedImageRequest"
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "406": {
            "description": "Not Acceptable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.Error"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v{version}/MICR/ValidateMicr": {
      "post": {
        "tags": [
          "MICR"
        ],
        "operationId": "ValidateMicr",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "default": "1.0"
            }
          },
          {
            "name": "X-IBM-Client-Id",
            "in": "header",
            "required": true,
            "schema": {
              "default": "3480f637-9b92-4ec1-a86b-xxxxxxxxxxx"
            }
          },
          {
            "name": "X-IBM-Client-Secret",
            "in": "header",
            "required": true,
            "schema": {
              "default": "M3wS7yS6kE7kR6fV2dD8tM8aN1dI7uC2mU0sS5xxxxxxxxx"
            }
          },
          {
            "name": "CORRELATION_ID",
            "in": "header",
            "schema": {
              "default": "68ef897b-f068-4c5b-8b38-0022a9c7c41d"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.ValidateMicrRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.ValidateMicrRequest"
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "406": {
            "description": "Not Acceptable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.Error"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v{version}/Price/GetPrice": {
      "post": {
        "tags": [
          "Price"
        ],
        "summary": "GetPrice is a generic Api and can be used by internal application to retrieve price.\r\nPrice information is retrieved directly from nbs...",
        "description": "  **Sample Request**  \r\n  {  \r\n\t\"instNumber\": \"I14\",  \r\n\t\"instQualifier\": \"00000\",  \r\n\t\"accountType\": \"GB\",  \r\n\t\"calculateDiscount\": false,  \r\n\t\"styleLst\": [  \r\n\t\"SLF108\",\"LOG1\",\"206\",\"PF\"  \r\n\t\t],  \r\n\t\"nbsProdIdLst\": [\"G-SLCA\",\"EZ-{0}{1}\"],  \r\n\t\"quantityLst\": [  \r\n\t\t\t250, 500, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000  \r\n\t\t]  \r\n\t}",
        "operationId": "GetPrice",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "default": "1.0"
            }
          },
          {
            "name": "X-IBM-Client-Id",
            "in": "header",
            "required": true,
            "schema": {
              "default": "3480f637-9b92-4ec1-a86b-xxxxxxxxxxx"
            }
          },
          {
            "name": "X-IBM-Client-Secret",
            "in": "header",
            "required": true,
            "schema": {
              "default": "M3wS7yS6kE7kR6fV2dD8tM8aN1dI7uC2mU0sS5xxxxxxxxx"
            }
          },
          {
            "name": "CORRELATION_ID",
            "in": "header",
            "schema": {
              "default": "b8bd9dac-c1b3-47f5-bccc-ef9fb4d821e9"
            }
          }
        ],
        "requestBody": {
          "description": "Click on Schema (Next to Example Value) tab to more details...",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.GetPriceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.GetPriceRequest"
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "406": {
            "description": "Not Acceptable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Returns IList of Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.Error"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.Error"
                  }
                }
              }
            }
          },
          "200": {
            "description": "Returns IList of GetPriceResponse",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.GetPriceResponse"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v{version}/Price/GetDefaultPrice": {
      "post": {
        "tags": [
          "Price"
        ],
        "summary": "GetDfaultPrice Api is a generice Pricigng Api. This api is used to display the default price mutilple product on catalog page",
        "description": "**Sample Request**   \r\n{    \r\n            \"instNumber\": \"I14\",   \r\n            \"instQualifier\": \"00000\",   \r\n            \"accountType\": \"GB\",   \r\n            \"calculateDiscount\": false,   \r\n            \"styleQuantity\": [   \r\n                {   \r\n                \"style\": \"QCE23\",   \r\n                \"numberOfCopies\": 1,   \r\n                \"quantity\": 250   \r\n                },   \r\n                {   \r\n                \"style\": \"QLF108\",   \r\n                \"numberOfCopies\": 1,   \r\n                \"quantity\": 1   \r\n                 },   \r\n                 {   \r\n                \"style\": \"QLF109\",   \r\n                \"numberOfCopies\": 1,   \r\n                \"quantity\": 1   \r\n                },   \r\n                {   \r\n                \"style\": \"QLF605\",   \r\n                \"numberOfCopies\": 1,   \r\n                \"quantity\": 1   \r\n               }   \r\n         ]   \r\n}",
        "operationId": "GetDefaultPrice",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "default": "1.0"
            }
          },
          {
            "name": "X-IBM-Client-Id",
            "in": "header",
            "required": true,
            "schema": {
              "default": "3480f637-9b92-4ec1-a86b-xxxxxxxxxxx"
            }
          },
          {
            "name": "X-IBM-Client-Secret",
            "in": "header",
            "required": true,
            "schema": {
              "default": "M3wS7yS6kE7kR6fV2dD8tM8aN1dI7uC2mU0sS5xxxxxxxxx"
            }
          },
          {
            "name": "CORRELATION_ID",
            "in": "header",
            "schema": {
              "default": "292eeffa-112d-4abb-afab-76c2c213f54f"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.GetDefaultPriceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.GetDefaultPriceRequest"
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "406": {
            "description": "Not Acceptable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.Error"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v{version}/Price/GetProductPrice": {
      "post": {
        "tags": [
          "Price"
        ],
        "summary": "",
        "description": "**Sample Request**   \r\n         {   \r\n  \"Product\": {   \r\n    \"Name\": null,   \r\n    \"Sku\": \"I14.ZZZZ.F.CHEQ.SLF108\",   \r\n    \"ProductAttributeMappings\": [   \r\n      {   \r\n        \"DefaultValue\": null,   \r\n        \"ProductAttribute\": {   \r\n          \"Name\": \"Quantity\"   \r\n        },   \r\n        \"ProductAttributeValues\": [   \r\n          {   \r\n            \"Name\": \"250\"   \r\n          },   \r\n          {   \r\n            \"Name\": \"500\"   \r\n          },   \r\n          {   \r\n            \"Name\": \"1000\"   \r\n          },   \r\n          {   \r\n            \"Name\": \"2000\"   \r\n          },   \r\n          {   \r\n            \"Name\": \"3000\"   \r\n          },   \r\n          {   \r\n            \"Name\": \"4000\"   \r\n          },   \r\n          {   \r\n            \"Name\": \"5000\"   \r\n          },   \r\n           {   \r\n            \"Name\": \"6000\"   \r\n          },   \r\n          {   \r\n            \"Name\": \"7000\"   \r\n          },   \r\n          {   \r\n            \"Name\": \"8000\"   \r\n          },   \r\n          {   \r\n            \"Name\": \"9000\"   \r\n          },   \r\n          {   \r\n            \"Name\": \"10000\"   \r\n          }   \r\n         ]   \r\n      }   \r\n    ]   \r\n  },   \r\n  \"StoreCode\": \"Intuit\",   \r\n  \"LanguageId\": 1,   \r\n  \"MICR\": null,   \r\n  \"Payload\": null   \r\n}",
        "operationId": "GetProductPrice",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "default": "1.0"
            }
          },
          {
            "name": "X-IBM-Client-Id",
            "in": "header",
            "required": true,
            "schema": {
              "default": "3480f637-9b92-4ec1-a86b-xxxxxxxxxxx"
            }
          },
          {
            "name": "X-IBM-Client-Secret",
            "in": "header",
            "required": true,
            "schema": {
              "default": "M3wS7yS6kE7kR6fV2dD8tM8aN1dI7uC2mU0sS5xxxxxxxxx"
            }
          },
          {
            "name": "CORRELATION_ID",
            "in": "header",
            "schema": {
              "default": "689d2e78-8a2f-4e81-98d0-6976a3933ea4"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.GetProductPriceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.GetProductPriceRequest"
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "406": {
            "description": "Not Acceptable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.Error"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v{version}/Price/GetProductDefaultQuantityPrice": {
      "post": {
        "tags": [
          "Price"
        ],
        "summary": "",
        "description": "**Sample Request**   \r\n        {   \r\n          \"Products\": [{   \r\n            \"Name\": \"Voucher Cheque\",   \r\n            \"Sku\": \"I14.ZZZZ.F.CHEQ.SLF108\",   \r\n            \"ProductAttributeMappings\": [   \r\n              {   \r\n                \"DefaultValue\": null,   \r\n                \"ProductAttribute\": {   \r\n                  \"Name\": \"Quantity\"   \r\n                },   \r\n                \"ProductAttributeValues\": [   \r\n                  {   \r\n                    \"Name\": \"250\"   \r\n                  }   \r\n                ]   \r\n              },{   \r\n                \"DefaultValue\": null,   \r\n                \"ProductAttribute\": {   \r\n                  \"Name\": \"ChequeInfo.NumberOfCopies\"   \r\n                },   \r\n                \"ProductAttributeValues\": [   \r\n                  {   \r\n                    \"Name\": \"2 Parts\"   \r\n                  }   \r\n                ]   \r\n              }   \r\n            ]   \r\n          },{   \r\n            \"Name\": \"Multi-Purpose Cheque\",   \r\n            \"Sku\": \"I14.ZZZZ.F.CHEQ.SLF109\",   \r\n            \"ProductAttributeMappings\": [   \r\n              {   \r\n                \"DefaultValue\": null,   \r\n                \"ProductAttribute\": {   \r\n                  \"Name\": \"Quantity\"   \r\n                },   \r\n                \"ProductAttributeValues\": [   \r\n                  {   \r\n                    \"Name\": \"250\"   \r\n                  }   \r\n                ]   \r\n              },{   \r\n                \"DefaultValue\": null,   \r\n                \"ProductAttribute\": {   \r\n                  \"Name\": \"ChequeInfo.NumberOfCopies\"   \r\n                },   \r\n                \"ProductAttributeValues\": [   \r\n                  {   \r\n                    \"Name\": \"1 Part\"   \r\n                  }   \r\n                ]   \r\n              }   \r\n            ]   \r\n          },{   \r\n            \"Name\": \"Wallet Cheque\",   \r\n            \"Sku\": \"I14.ZZZZ.F.CHEQ.SLF111\",   \r\n            \"ProductAttributeMappings\": [   \r\n              {   \r\n                \"DefaultValue\": null,   \r\n                \"ProductAttribute\": {   \r\n                  \"Name\": \"Quantity\"   \r\n                },   \r\n                \"ProductAttributeValues\": [   \r\n                  {   \r\n                    \"Name\": \"250\"   \r\n                  }   \r\n                ]   \r\n              },{   \r\n                \"DefaultValue\": null,   \r\n                \"ProductAttribute\": {   \r\n                  \"Name\": \"ChequeInfo.NumberOfCopies\"   \r\n                },   \r\n                \"ProductAttributeValues\": [   \r\n                  {   \r\n                    \"Name\": \"1 Part\"   \r\n                  }   \r\n                ]   \r\n              }   \r\n            ]   \r\n          }],   \r\n          \"StoreCode\": \"Intuit\",   \r\n          \"LanguageId\": 1,   \r\n          \"MICR\": null,   \r\n          \"Payload\": null   \r\n        }",
        "operationId": "GetProductDefaultQuantityPrice",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "default": "1.0"
            }
          },
          {
            "name": "X-IBM-Client-Id",
            "in": "header",
            "required": true,
            "schema": {
              "default": "3480f637-9b92-4ec1-a86b-xxxxxxxxxxx"
            }
          },
          {
            "name": "X-IBM-Client-Secret",
            "in": "header",
            "required": true,
            "schema": {
              "default": "M3wS7yS6kE7kR6fV2dD8tM8aN1dI7uC2mU0sS5xxxxxxxxx"
            }
          },
          {
            "name": "CORRELATION_ID",
            "in": "header",
            "schema": {
              "default": "65b83a66-c5e8-4456-99a9-8922bbfa1710"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.GetProductDefaultQuantityPriceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.GetProductDefaultQuantityPriceRequest"
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "406": {
            "description": "Not Acceptable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.Error"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Microsoft.AspNetCore.Mvc.ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {
          "type": "object",
          "additionalProperties": false
        }
      },
      "MarketPlace.ChequeApi.Models.V1.Error": {
        "type": "object",
        "properties": {
          "ErrorCode": {
            "type": "integer",
            "format": "int32"
          },
          "ErrorType": {
            "type": "string",
            "nullable": true
          },
          "ErrorMessage": {
            "type": "string",
            "nullable": true
          },
          "ErrorDetail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MarketPlace.ChequeApi.Models.V1.ServiceCheckResponse": {
        "type": "object",
        "properties": {
          "StatusCode": {
            "type": "integer",
            "description": "HttpStatusCode",
            "format": "int32"
          },
          "Status": {
            "type": "string",
            "description": "Status = OK",
            "nullable": true
          },
          "Message": {
            "type": "string",
            "description": "Message = OK",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Response for ServiceCheck Api"
      },
      "MarketPlace.ChequeApi.Models.V1.GetCustomizedImageRequest": {
        "type": "object",
        "properties": {
          "Style": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Nop.Core.Domain.Catalog.ProductAttribute": {
        "type": "object",
        "properties": {
          "Name": {
            "type": "string",
            "description": "Gets or sets the name",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a product attribute"
      },
      "Nop.Core.Domain.Catalog.ProductAttributeValue": {
        "type": "object",
        "properties": {
          "Name": {
            "type": "string",
            "description": "Gets or sets the product attribute name",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a product attribute value"
      },
      "Nop.Core.Domain.Catalog.ProductAttributeMapping": {
        "type": "object",
        "properties": {
          "DefaultValue": {
            "type": "string",
            "description": "Gets or sets the default value (for textbox and multiline textbox)",
            "nullable": true
          },
          "ProductAttribute": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Nop.Core.Domain.Catalog.ProductAttribute"
              }
            ],
            "description": "Gets the product attribute",
            "nullable": true
          },
          "ProductAttributeValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Nop.Core.Domain.Catalog.ProductAttributeValue"
            },
            "description": "Gets the product attribute values",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a product attribute mapping"
      },
      "Nop.Core.Domain.Catalog.Product": {
        "type": "object",
        "properties": {
          "Name": {
            "type": "string",
            "nullable": true
          },
          "Sku": {
            "type": "string",
            "description": "Gets or sets the SKU",
            "nullable": true
          },
          "ProductAttributeMappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Nop.Core.Domain.Catalog.ProductAttributeMapping"
            },
            "description": "Gets or sets the product attribute mappings",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a product"
      },
      "MarketPlace.ChequeApi.Models.V1.PayloadKey": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "MarketPlace.ChequeApi.Models.V1.Payload": {
        "type": "object",
        "properties": {
          "KeyName": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.PayloadKey"
              }
            ]
          },
          "KeyValue": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MarketPlace.ChequeApi.Models.V1.ValidateMicrRequest": {
        "type": "object",
        "properties": {
          "Product": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Nop.Core.Domain.Catalog.Product"
              }
            ],
            "nullable": true
          },
          "StoreCode": {
            "type": "string",
            "nullable": true
          },
          "LanguageCd": {
            "type": "string",
            "nullable": true
          },
          "PayLoad": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.Payload"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MarketPlace.ChequeApi.Models.V1.GetPriceRequest": {
        "required": [
          "AccountType",
          "CalculateDiscount",
          "InstNumber",
          "InstQualifier"
        ],
        "type": "object",
        "properties": {
          "InstNumber": {
            "maxLength": 3,
            "minLength": 3,
            "type": "string",
            "description": "Institution Number (FI#, DPR#...)",
            "default": "I14",
            "example": "I14"
          },
          "InstQualifier": {
            "maxLength": 5,
            "minLength": 4,
            "type": "string",
            "description": "InstQualifier",
            "default": "00000",
            "example": "00000"
          },
          "AccountType": {
            "maxLength": 3,
            "minLength": 2,
            "type": "string",
            "description": "AccountType = AccountType associated with MICR",
            "default": "GB",
            "example": "GB"
          },
          "CalculateDiscount": {
            "type": "boolean",
            "description": "Default value of CalculateDiscount = \"false\" for dealers (For Performance)",
            "default": false,
            "example": false
          },
          "StyleLst": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "StyleLst = Pricing can be obtained by Style. Style is an Array to support CHEQ \r\nand Options (EZShield, Proof Required etc)",
            "nullable": true,
            "example": [
              "SLF108",
              "LOG1",
              "206",
              "PF"
            ]
          },
          "NbsProdIdLst": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "NbsProdIds associated with Options. Nbs sometime dont have style to nbsProd id mapping available\r\nIn that case we will have to pass nbsProdID for options",
            "nullable": true,
            "example": [
              "G-SLCA",
              "EZ-{0}{1}"
            ]
          },
          "QuantityLst": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Standard and Extended Quantities for CHEQ Product\r\nIF there are more than 1 copies supported then the result \r\nset will contain all copies setup in nbs",
            "nullable": true,
            "example": [
              250,
              500,
              1000,
              2000,
              3000,
              4000,
              5000,
              6000,
              7000,
              8000,
              9000,
              10000
            ]
          }
        },
        "additionalProperties": false,
        "description": "GetPRiceRequest is the input paramter to GetPriceApi"
      },
      "MarketPlace.ChequeApi.Models.V1.GetPriceResponse": {
        "type": "object",
        "properties": {
          "ProductAttributeType": {
            "type": "string",
            "description": "Product Attribute Type",
            "nullable": true
          },
          "NumberOfCopies": {
            "type": "integer",
            "description": "Number Of Copies",
            "format": "int32"
          },
          "Quantity": {
            "type": "integer",
            "description": "Quantity",
            "format": "int32"
          },
          "Price": {
            "type": "number",
            "description": "Price",
            "format": "double"
          },
          "Discount": {
            "type": "number",
            "description": "Disount is not applied to AjjustmentPrice. \r\nConsumer of Pricing Api should apply this discount amount",
            "format": "double"
          },
          "DiscountType": {
            "type": "string",
            "description": "DiscountType ...P=Percentage/A=Amount",
            "nullable": true
          },
          "WhoPaid": {
            "type": "string",
            "description": "Who is paying for the product price  \r\nPossible values are C=Customer, B=Bank, H=HeadOffice",
            "nullable": true
          },
          "Style": {
            "type": "string",
            "nullable": true
          },
          "NbsProdID": {
            "type": "string",
            "nullable": true
          },
          "NbsPriceLevel": {
            "type": "string",
            "nullable": true
          },
          "NbsPortfolio": {
            "type": "string",
            "nullable": true
          },
          "NbsQualifier": {
            "type": "string",
            "nullable": true
          },
          "NbsPriceRule": {
            "type": "string",
            "nullable": true
          },
          "NbsProdType": {
            "type": "string",
            "nullable": true
          },
          "NbsProdLine": {
            "type": "string",
            "nullable": true
          },
          "NbsWhoPaidRule": {
            "type": "string",
            "nullable": true
          },
          "CurrencyCd": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "GetPriceResponse object is returned by GetPrice Api."
      },
      "MarketPlace.ChequeApi.Models.V1.DefaultPriceDetail": {
        "type": "object",
        "properties": {
          "Style": {
            "type": "string",
            "nullable": true
          },
          "NumberOfCopies": {
            "type": "integer",
            "format": "int32"
          },
          "Quantity": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "MarketPlace.ChequeApi.Models.V1.GetDefaultPriceRequest": {
        "type": "object",
        "properties": {
          "InstNumber": {
            "type": "string",
            "nullable": true
          },
          "InstQualifier": {
            "type": "string",
            "nullable": true
          },
          "AccountType": {
            "type": "string",
            "nullable": true
          },
          "CalculateDiscount": {
            "type": "boolean"
          },
          "StyleQuantity": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.DefaultPriceDetail"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MarketPlace.ChequeApi.Models.V1.MICR": {
        "type": "object",
        "properties": {
          "FinancialInstitutionNumber": {
            "type": "string",
            "description": "Represents the fincancial institution where the user belong to.",
            "nullable": true
          },
          "BranchNumber": {
            "type": "string",
            "description": "Represents the transit which specifies the FI branch.",
            "nullable": true
          },
          "AccountNumber": {
            "type": "string",
            "description": "Represents the user's account number.",
            "nullable": true
          },
          "InstitutionQualifier": {
            "type": "string",
            "nullable": true
          },
          "AccountType": {
            "type": "string",
            "nullable": true
          },
          "SubBranch": {
            "type": "string",
            "nullable": true
          },
          "BillingSubBranch": {
            "type": "string",
            "nullable": true
          },
          "BillingRegion": {
            "type": "string",
            "nullable": true
          },
          "VisualDPR": {
            "type": "string",
            "nullable": true
          },
          "VisualTransit": {
            "type": "string",
            "nullable": true
          },
          "VisualAccount": {
            "type": "string",
            "nullable": true
          },
          "BranchLocatorTransitNumber": {
            "type": "string",
            "nullable": true
          },
          "CurrencyCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents the MICR of a user."
      },
      "MarketPlace.ChequeApi.Models.V1.GetProductPriceRequest": {
        "type": "object",
        "properties": {
          "Product": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Nop.Core.Domain.Catalog.Product"
              }
            ],
            "nullable": true
          },
          "MICR": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.MICR"
              }
            ],
            "nullable": true
          },
          "StoreCode": {
            "type": "string",
            "nullable": true
          },
          "LanguageCd": {
            "type": "string",
            "nullable": true
          },
          "PayLoad": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.Payload"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MarketPlace.ChequeApi.Models.V1.GetProductDefaultQuantityPriceRequest": {
        "type": "object",
        "properties": {
          "Products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Nop.Core.Domain.Catalog.Product"
            },
            "nullable": true
          },
          "MICR": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.MICR"
              }
            ],
            "nullable": true
          },
          "StoreCode": {
            "type": "string",
            "nullable": true
          },
          "LanguageCd": {
            "type": "string",
            "nullable": true
          },
          "PayLoad": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MarketPlace.ChequeApi.Models.V1.Payload"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}
abhijitkane commented 4 years ago

Thanks @AnthonyDesa. Can you highlight: a. the specific part of the Swagger spec that's imported incorrectly, b. how it's actually imported, and c. how you'd like imported?

A Postman screenshot for b. and c. would be great

DannyDainton commented 2 years ago

Hey @AnthonyDesa

I'm going to close this out due to inactivity - If you have the information that has been requested, we can look to open this again and investigate further.