kevinswiber / postman2openapi

Convert a Postman collection to an OpenAPI definition.
Apache License 2.0
340 stars 54 forks source link

[tests] parameters not de-duplicated on name: and in: properties #19

Closed MikeRalphson closed 4 years ago

MikeRalphson commented 4 years ago

https://apidocs.pdf.co/PDF.co%20API%20v.1.postman_collection.json

Duplicate operation-level parameter x-api-key #/paths/~1v1~1pdf~1edit~1delete-text/get/parameters

kevinswiber commented 4 years ago

Weird. The dupe is actually in the Postman collection JSON. Not even sure how to reproduce this through the Postman app.

{
    "url": {
        "query": [
            {
                "key": "x-api-key",
                "value": "{{x-api-key}}",
                "description": "Optional. Please use http headers instead when possible because passing your API key as parameter for POST or GET is not secure and is for legacy app compatibility only.\n",
                "disabled": true
            },
            {
                "key": "url",
                "value": "https://bytescout-com.s3.amazonaws.com/files/demo-files/cloud-api/pdf-split/sample.pdf",
                "description": "required. URL of the source file. Must be a String. To use your file please upload it first to the temporary storage, see `Upload and Manage Files` section below to learn how to do it."
            },
            {
                "key": "searchString",
                "value": "conspicuous",
                "description": "required. Text to delete"
            },
            {
                "key": "x-api-key",
                "value": "{{x-api-key}}"
            }
        ]
    }
}