docs(zod-openapi): update readme to show new security schema usage (#353)
* update readme to show new security schema usage * fix namein registerComponent to Bearerpull/356/head
parent
2494a61635
commit
6bf91e1908
|
@ -311,11 +311,9 @@ eg. Bearer Auth
|
||||||
Register the security scheme:
|
Register the security scheme:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
app.openAPIRegistry.registerComponent('securitySchema', {
|
app.openAPIRegistry.registerComponent("securitySchemes", "Bearer", {
|
||||||
Bearer: {
|
type: "http",
|
||||||
type: 'http',
|
scheme: "bearer",
|
||||||
scheme: 'bearer',
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue