postman-open-technologies / collections

This is where we track everything collections.
Apache License 2.0
5 stars 1 forks source link

Abstraction layer for collections converters #15

Open Gbahdeyboh opened 1 year ago

Gbahdeyboh commented 1 year ago

There are different tools that help convert different API definition formats to the collection format. GraphQL to collections, OpenAPI to collections, AsyncAPI to collections, etc. All of these toolings help you convert the API definitions in their respective formats to different API requests, variables, headers, etc represented as collections. But that's about all they do. It can be taken even a step further.

The formats that convert to collections have a standard way of representing data(JSON Schema) and this can be greatly leveraged upon. Specifications like GraphQL are declarative in nature, and hence the type of different data points can be inferred.

A library can be built that helps do the following with already generated collection so far its schema can be provided.

Collections do not provide a way for us to define data schema, but it does provide a way for us to provide user-defined properties which can be leveraged for this use case.