OpenAPI-Specification
OpenAPI-Specification copied to clipboard
[Request] Define parameters in Example Object
Just shortly, I would like to request a capability to define parameters in Example Object to associate each parameters passed and response received.
This is also an important request for us (https://github.com/Adyen/adyen-openapi). We define a lot of examples for each API request body (and corresponding examples of responses), and if any of them require path parameters or query parameters, it's currently not possible to provide their values per each example.
@philsturgeon may have some bearing on #sig-workflows
Gotcha, so if /payments/{type} and type == "bank"
then you want to show a bank account example instead of a credit card example, etc.
This is commonly requested for mocking tools like Prism as a feature, but could be interesting to see if workflows can take care of it. It's edging a liiiiitle close to business logic in the contract, but I think if its focused purely on examples then its safe enough.