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.
Generate mock responses for requests
Include sample test cases and events in the collection
Include a data/schema-driven documentation in the generated collection
etc
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.
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.