docs(zod-openapi): update readme to show new security schema usage (#353)

* update readme to show new security schema usage

* fix namein registerComponent to Bearer
pull/356/head
dennistruemper 2024-01-21 21:39:02 +01:00 committed by GitHub
parent 2494a61635
commit 6bf91e1908
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 5 deletions

View File

@ -311,11 +311,9 @@ eg. Bearer Auth
Register the security scheme:
```ts
app.openAPIRegistry.registerComponent('securitySchema', {
Bearer: {
type: 'http',
scheme: 'bearer',
},
app.openAPIRegistry.registerComponent("securitySchemes", "Bearer", {
type: "http",
scheme: "bearer",
})
```