postman-to-openapi
postman-to-openapi copied to clipboard
auth object not being parsed
Hi, I'm trying to run the following command: p2o postman_collection.json -f result.yml -o options.json
It's parsing everything correctly, including for example the 'servers' configuration. However the 'auth' object is not being parsed I think because I don't see anything for that in the result.yml . Did I misconfigure it?
My options.json file looks as follows:
{
"info": {
"title": API",
"version": "1.0",
"description": "Description for the API Here"
},
"servers": [
{
"url": "https://redacted",
"description": "Prod environment server"
},
],
"myCustomAuth": {
"type": "http",
"scheme": "basic",
"description": "api key"
},
"myCustomAuth1": {
"type": "http",
"scheme": "basic",
"description": "clientid"
}
}
Remove the extra comma after the last element of the array "servers". A comma at the end of the array is not required