Commit d24982d
fix(api-docs): declare bearerAuth security scheme in OpenAPI spec
defineRouteMeta() blocks on admin handlers reference a "bearerAuth" security scheme, but nothing declared it globally — Scalar would render those endpoints as having an unknown auth method. Add the scheme to nitro.openAPI.$global.components.securitySchemes so it's recognised across the whole spec.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bd606f1 commit d24982d
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
178 | 194 | | |
179 | 195 | | |
180 | 196 | | |
| |||
0 commit comments