-
Notifications
You must be signed in to change notification settings - Fork 105
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
How to insert introduction to generated api docs #269
Comments
Write your description to |
Write to description ? I may be write more than one paragraph. |
May be like https://docs.docker.com/engine/api/v1.25/ to provide multiple section, example: Errors, Versioning and Authentication. |
YAML supports multi-lines string: description: |
Write your description here.
This is the second paragraph. |
/kind support |
I'm refer to https://github.com/Rebilly/ReDoc/blob/master/demo/swagger.yaml, but line start with description: |
The description here.
# Introduction
The introduction here. |
I have notice that the new line of description which in If i change the new line of generated openapi spec json from |
nirvana/utils/generators/swagger/generator.go Lines 529 to 531 in e559644
@kdada Why replace |
@wutzx If not escape newline, two line will be merged into one line in markdown. It seems that we should not replace the newline character. |
/kind bug |
Is this a BUG REPORT or FEATURE REQUEST?:
/kind feature
What you expected to happen:
Before to use api, user need to known about general information, like
how to Authentication.
The text was updated successfully, but these errors were encountered: