schema.title vs schema.type priority in prettyName function #1401
TarasKuzyo
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is the reason that the
schema.titleis prioritized overschema.typein theprettyNamefunction from src/markdown/schema.ts module?docusaurus-openapi-docs/packages/docusaurus-theme-openapi-docs/src/markdown/schema.ts
Line 100 in 516bd48
Usually, the title is similar (or identical) to the schema name, so you get useless duplicate text in the schema description, while the type gives you an extra hint about the value, similarly to the format
Beta Was this translation helpful? Give feedback.
All reactions