Introduces an IHttpOperation extension called IHttpCallbackOperation. The new interface carries additionally the name of callback operation.
The motivation behind extending the interface: callbacks in OASv3 spec are wrapped in an object with callback name as property and operation as value. SL's way of representing such objects is to convert it to an array and add a property inside with the key name (see operations array, examples array, etc.). This change is compatible with that approach.
Introduces an IHttpOperation extension called IHttpCallbackOperation. The new interface carries additionally the name of callback operation.
The motivation behind extending the interface: callbacks in OASv3 spec are wrapped in an object with callback name as property and operation as value. SL's way of representing such objects is to convert it to an array and add a property inside with the key name (see operations array, examples array, etc.). This change is compatible with that approach.
Related PR: https://github.com/stoplightio/prism/pull/716 Related issue: https://github.com/stoplightio/prism/issues/331 The spec: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#callbackObject Callback example: https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v3.0/callback-example.yaml