Skip to content
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

Rendering of schema titles #626

Closed
mol-pensiondk opened this issue Dec 13, 2021 · 3 comments
Closed

Rendering of schema titles #626

mol-pensiondk opened this issue Dec 13, 2021 · 3 comments

Comments

@mol-pensiondk
Copy link

mol-pensiondk commented Dec 13, 2021

Titles from schemas are not rendered. I would expect them to be renderes as a title above the description (if any). According to the OpenAPI spec, the title property of schema elements are "as is" from JSON schema, i.e. it is supposed to be a one-line description of the schema. The description property is for longer descriptions (and may use MarkDown in OpenAPI - which the title may not!).

Screenshots are using the rapidoc js file from the playground (actual rendering) and from using a locally modified one from the PensionDanmark doc site (expected rendering).

The OpenAPI spec is "titles.json" (attached as titles.txt).

Expected rendering, inline schemas:
expected1
Actual rendering, inline schemas:
actual1

Expected rendering, schemas in components:
expected2
Actual rendering, schemas in components:
actual2

Expected rendering, schemas section:
expected3
Actual rendering, schemas section:
actual3

@mrin9
Copy link
Collaborator

mrin9 commented Feb 21, 2022

Thanks for the suggestions and screenshots !!!.

I have made a note of it and will be addressing them over several commits

@mrin9 mrin9 closed this as completed in 8822e9d Feb 24, 2022
@mrin9
Copy link
Collaborator

mrin9 commented Feb 24, 2022

Thanks for the detailed test case and spec...made it easy for us to test it

https://rapidocweb.com/examples/schema-title-and-descriptions.html

@mol-pensiondk
Copy link
Author

mol-pensiondk commented Feb 24, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants