joolfe / postman-to-openapi

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

Allow parsing request bodies and examples that has JSON with comments #190

Closed dhwaneetbhatt closed 2 years ago

dhwaneetbhatt commented 2 years ago

Postman supports JSON with comments for request bodies and examples. See issue filed at: https://github.com/joolfe/postman-to-openapi/issues/188.

This PR updates the library used to parse JSON from native JSON.parse to one supported by Microsoft: https://github.com/microsoft/node-jsonc-parser.

This library is used by VSCode and thus has a high chance of being maintained. It is fully backwards compatible with the native JSON library,