-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion for new 'summary' field on 'response' object #1591
Comments
Hmmm... per JSON Schema, |
I might have misunderstood something, but the only mention of a |
@cmeeren oh, nope, it's me who misunderstood. Carry on! |
Although if there will be a short and long form, I'd recommend following JSON Schema since it is being used in the Schema Object and already does this- |
Sorry, I don't get what you mean. Let me try to clarify. Response objects currently only have one free-text field for describing them, namely As for calling the new field |
Yeah, that makes sense. Sorry, having an off day apparently. |
@handrews any news on this one ? we should have a standard and constant pattern here about summary / description , that would apply every where could easily be enhanced in a 3.1.1 or in a 3.2.0 or goes inside the 4.0 with full alignment with json schema , and drop support of summary for "title" this would so avoid the x-summary for instance in redoc , and would allow nicer rendering |
I sometimes need to write a lengthy explanation for a specific
response
(possibly with lists and other formatted text). AFAIKdescription
is the only field for this, but a lengthy description here doesn't look too good in most documentation renderers I've tried (e.g. Swagger UI, ReDoc). In those tools,response.description
seems to be intended to be kept short, almost as a "heading" for the response.I've posted an example with a screenshot on Redocly/redoc#500.
It would be great to have a
summary
field on theresponse
object, so that renderers can use this as a summary for the response, allowingdescription
to be used for a lengthier explanation where needed.The text was updated successfully, but these errors were encountered: