joolfe / postman-to-openapi

🛸 Convert postman collection to OpenAPI
MIT License
577 stars 99 forks source link

Object should only contain three-digit status codes, default, or vendor extensions (x-*) as properties #232

Closed macroramesh6 closed 1 year ago

macroramesh6 commented 1 year ago

I have Postman exported JSON file. The result file /Result.yml throws error Object should only contain three-digit status codes, default, or vendor extensions (x-*) as properties on responses.

I tried a couple of indent alignment but didn't work. I'm looking for the solution to fix it.

Since this file is generated from cli, it needs to be fixed

Screenshot 2022-10-13 at 20 49 54
cunkz commented 1 year ago

Do you have any status code other than 1xx - 5xx ? Maybe you can change to another unassigned status code based on this link : https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml

joolfe commented 1 year ago

@macroramesh6,

If you provide the source postman collection I can review to see the error.

Anyway as @cunkz suggest seems like some of the response codes are not correct so you can just review if anything extrange exist.

Best regards

joolfe commented 1 year ago

Closed due to inactivity