-
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
3.0.md description field cleanup #879
Comments
I believe all the description fields should indicate support for markdown. @OAI/tdc Thoughts? |
Yup. Markdown is supported/expected for all In schema definitions, JSON schema provides The current Swagger UI applies Markdown processing to |
Yes, |
Below is a summary of GFM of explanation part http://www.slideshare.net/KeisukeKonishi/swaggerapi-64300306/34 http://www.slideshare.net/KeisukeKonishi/swaggerapi-64300306/35 http://www.slideshare.net/KeisukeKonishi/swaggerapi-64300306/36 |
Below is a summary of GFM of explanation part common-spec
request-spec
response-spec
|
While reviewing the spec, I've found some inconsistencies in regards to which of the various
description
fields allow markdown syntax. It seems some do, some done and I don't really see a pattern. For the sake of consistency does it make sense that we allow markdown for alldescription
fields? The other thing that jumps out at me is that some descriptions state that they should be short, others verbose. Is that an artifact of the author of a given section, or has there been some thought put into?Along those same lines, should we allow markdown for all summery and fields? (Perhaps some others)
Let me know if this seems reasonable and I can get a PR rolling.
Example:
info.description
: A short description of the application. CommonMark syntax can be used for rich text representation.server.description
: An optional string describing the host designated by the URL.templates.description
: An optional description for the template parameterpath.description
: An optional, string description, intended to apply to all operations in this path.operation.description
: A verbose explanation of the operation behavior. CommonMark syntax can be used for rich text representation.externalDocumentation.description
: A short description of the target documentation. CommonMark syntax can be used for rich text representation.parameter.description
: A brief description of the parameter. This could contain examples of use. CommonMark syntax can be used for rich text representation.....
The text was updated successfully, but these errors were encountered: