mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
refactor(api): ♻️ Upgrade zod-openapi to 0.18.3
Needed to add "as const" to all middleware handlers :)
This commit is contained in:
parent
fbfd237f27
commit
621dd7e9d9
74 changed files with 86 additions and 86 deletions
|
|
@ -34,7 +34,7 @@ export default (plugin: PluginType): void => {
|
|||
summary: "SSO callback",
|
||||
description:
|
||||
"After the user has authenticated to an external OpenID provider, they are redirected here to complete the OAuth flow and get a code",
|
||||
middleware: [plugin.middleware],
|
||||
middleware: [plugin.middleware] as const,
|
||||
request: {
|
||||
query: schemas.query,
|
||||
params: schemas.param,
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ export default (plugin: PluginType): void => {
|
|||
request: {
|
||||
query: schemas.query,
|
||||
},
|
||||
middleware: [plugin.middleware],
|
||||
middleware: [plugin.middleware] as const,
|
||||
responses: {
|
||||
302: {
|
||||
description:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue