-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add summary to the info object #13
Comments
It seemed to me like the Haskell code took the first line of the COMMENT as the summary, and the rest as the description. That's the model that I've used in my code. |
Ah, only the title and description are specified in the code: Additionally, OAS 3.1 also allows a summary. |
Hmm. In order to make it readable, maybe we should use the format:
Much like an e-mail or web request, with headers, then blank line, then body. Before using, we lowercase the headers and match them against the allowed list (just title and summary, in this case). Edit: As an additional bonus, we could also support, for the Schema description, a "Version", which would be the OpenAPI Document Version |
In #43, I decided to use the original format I proposed to separate Title, Summary and Description. I think it's more convenient to write for users. For readability they can also be separated by extra new lines, e.g.: 'title
summary
description line 1
description line 2..'
I'm liking this idea. But I'm not sure where it should go... maybe it could be alongside the title: 'My API title - 1.0.0
...' The separator could be different from '1.0.0
My API title
...' |
In OAS 2.0, only the title and description are specified. Maybe a comment on the schema could be interpreted as:
Currently, it only detects title and description.
The text was updated successfully, but these errors were encountered: