openapi-to-postman icon indicating copy to clipboard operation
openapi-to-postman copied to clipboard

Early start to supporting sourcemaps.

Open kevinswiber opened this issue 4 years ago • 3 comments

A work in progress towards postmanlabs/openapi-to-postman#220.

Signed-off-by: Kevin Swiber [email protected]

kevinswiber avatar May 31 '20 10:05 kevinswiber

Unfortunately, IDs set to requests on items don't seem to actually propagate via the Postman API, so it seems to be the only artifact left that comes back as "modified". Any thoughts here?

image

kevinswiber avatar May 31 '20 10:05 kevinswiber

@kevinswiber Could you expand your last comment? My understanding is:

  1. A source map is a map from an OpenAPI operation to a Postman request ID
  2. Source maps are generated during conversion from OAS to collection
  3. Source maps are accepted as optional input during conversion - these will be used to add the same request IDs in the generated collection.

Is the blocker that even keeping the IDs the same will cause the collection feed to show a diff for all requests?

abhijitkane avatar Aug 18 '20 17:08 abhijitkane

@abhijitkane When updating a collection via the Postman API, if IDs for folders and responses are set, they persist. This means we can get more granular updates for these in Postman Version Control. However, for requests, the IDs do not persist on a collection update. The request IDs are all regenerated, despite being set, and Postman Version Control marks them all as new while all previous ones are removed. This makes it really difficult to review modifications between transpile events.

kevinswiber avatar Aug 20 '20 18:08 kevinswiber