postmanlabs / openapi-to-postman

Plugin for converting OpenAPI 3.0 specs to the Postman Collection (v2) format
Apache License 2.0
928 stars 200 forks source link

Expose functions to resolve and fake provided schema #752

Closed umeshp7 closed 8 months ago

umeshp7 commented 1 year ago

Expose functions to resolve and fake provided schema:

This PR exposes 2 functions, resovleSchema from v2 and fakeSchema from v2. It can be used for providing any schema inside oas3 and resolve it to remove all its $refs, and the fakeSchema can take the resolved schema as an input and share a faked data object of the schema

umeshp7 commented 1 year ago

@VShingala I have released beta for this already, the latest one is 4.16.0-beta.1. In the app, in our specific package where we need this we are already using the beta version, and the renderer of the app still has 4.15.0. We can choose not to release a stable version for this, because I am not sure we need to make this available publicly yet.

Let me know your thoughts.

VShingala commented 1 year ago

@umeshp7 Makes sense, let's just make sure we use exact version and not ^4.x.x in your package to avoid unintended changes with future bump-ups.

umeshp7 commented 8 months ago

Not needed to merge to develop anymore as the feature has been discontinued