Support `asyncapi` `http` response validation
Describe the desired outcome from the user's perspective
As an AsyncAPI consumer, I want to configure zilla to validate http responses consistent with an AsyncAPI specification.
Acceptance criteria
-
generatecommand includeshttpresponse validation forasyncapi -
httpserverbinding responses are validated and replaced if invalid -
httpclientbinding responses are validated and replaced if invalid
Additional context None
Tasks
- [ ] Integrate
httpserverbinding response validation - [ ] Integrate
httpclientbinding response validation - [ ] Include
httpresponse validation ingeneratecommand output forasyncapispecification (http)
AsyncApi reference does not seem to provide a way to define the http response status code.
I posted the question about this on AsnycApi slack: https://asyncapi.slack.com/archives/C34F2JV0U/p1705059814234959
Turns out it's a missing feature that already has an issue https://github.com/asyncapi/bindings/issues/234 and a PR https://github.com/asyncapi/bindings/pull/235
This issue is now blocked pending on the completion of this AsyncAPI PR.
This is no longer blocked, see https://github.com/asyncapi/bindings/issues/234.