Closed huijing closed 1 year ago
Thanks for the detailed report. These issues should be fixed in v0.3.1
that I just published on npm.
Some arrays were missing object details, they should now render correctly.
Still related to arrays, enums informations were not displayed correctly, this should now be fixed.
Regarding the "unknown" oneOf
, 2 issues were involved: the labels of the tabs being "unknown" and the tabs content actually missing. Both should render correctly now.
Regarding the authorizations, each authorization is now a link to the corresponding security scheme which contains all the informations.
Describe the bug
There are 2 striking issues that occur when I'm trying to parse our OpenAPI specification.
When
oneOf
is used, the plugin parses the array into tabs, but the tab item headers are unknown. Please refer to attached screenshot which shows the specification and rendered output using Swagger Editor, compared with the plugin outputWhen the type is an array, nested information is not rendered. Please refer to attached screenshots as well.
To Reproduce
Grant Request
, which will show up nested undergrant
in the generated sidebar itemaccess_token
field, as well as theinteract
field, you can see the array issueResponses
and you can see the unknown tab title issueCreate a quote
page nested underquote
in the generated sidebar itemExpected behavior
How often does this bug happen?
Every time
System Info
But this issue is unrelated to the system.
Additional Context
These are the specification files where the issues occur. You can upload them to https://editor-next.swagger.io/ for see the comparison versus loading them with the plugin.