Closed zorba128 closed 1 month ago
Thanks for working on this :)
Actually this one, plus some minor updates on tapir side would fix issue with examples - but I have no idea how to proceed as both will be breaking changes.
It's a 0.x version, so breaking changes are fine, mima is there so that we know when to bump the minor version (vs. patch)
It seems PR works fine - generated spec worked fine in AsyncAPI Studio:
Released in 0.11.0
Adding example to either
Message
orMessageTrait
produces invalid specification.Generated specs:
And should be:
Original,broken definition is following:
It should be either simplified to:
or simply to follow specification asyncapi spec, MessageExampleObject section. This would also make example name/description support better (now only
payload
is used).See PR https://github.com/softwaremill/sttp-apispec/pull/175