Skip to content

Commit

Permalink
fix(open-api): don't show "Authorization" heading without any securit…
Browse files Browse the repository at this point in the history
…y config
  • Loading branch information
FreekVR committed Apr 15, 2024
1 parent 4697710 commit 0cb2035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/.vuepress/plugins/openApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Version ${spec.info.version}
${spec.info.description ?? ''}
## Authorization
${spec.security ? '## Authorization' : ''}
<OpenApiSecurityRequirements
:security='${JSON.stringify(spec.security ?? [])}'
:security-schemes='${JSON.stringify(spec.components?.securitySchemes ?? [])}' />
Expand Down

0 comments on commit 0cb2035

Please sign in to comment.