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:
|
||||
|
||||
```ts
|
||||
app.openAPIRegistry.registerComponent('securitySchema', {
|
||||
Bearer: {
|
||||
type: 'http',
|
||||
scheme: 'bearer',
|
||||
},
|
||||
app.openAPIRegistry.registerComponent("securitySchemes", "Bearer", {
|
||||
type: "http",
|
||||
scheme: "bearer",
|
||||
})
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue