zilla
zilla copied to clipboard
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
-
generate
command includeshttp
response validation forasyncapi
-
http
server
binding responses are validated and replaced if invalid -
http
client
binding responses are validated and replaced if invalid
Additional context None
Tasks
- [ ] Integrate
http
server
binding response validation - [ ] Integrate
http
client
binding response validation - [ ] Include
http
response validation ingenerate
command output forasyncapi
specification (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.