Allow description and summary in examples with OpenAPI 3.1 emitter #6369
dfioravanti
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
I don't think thats the case in the later, where did you hear that? And yeah this seems like a missing piece we forgot to add when making openapi3.1 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Disclaimer: I raised this in #5713 which was closed but I do not 100% agree with the reason why it was closed so I would like to propose this again.
OpenAPI 3.1 allows multiple examples which is great when one has multiple use cases for the same endpoint. The multiple examples are supported by typespec with the OpenAPI 3.1 emitter but typespec does not support setting titles and descriptions for the examples, which makes it harder for end users to understand
So for example
compiles to
it would be nice if the description and the summary was in the generated file. When I reported the bug I was told that description is deprecated in examples, but this does not seams to be the case. See here. What do people think? Am I the only one that would find this useful?
Beta Was this translation helpful? Give feedback.
All reactions