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
|
|
@ -25,7 +25,7 @@ export default (plugin: PluginType): void => {
|
|||
},
|
||||
),
|
||||
plugin.middleware,
|
||||
],
|
||||
] as const,
|
||||
request: {
|
||||
params: z.object({
|
||||
id: z.string(),
|
||||
|
|
@ -124,7 +124,7 @@ export default (plugin: PluginType): void => {
|
|||
},
|
||||
),
|
||||
plugin.middleware,
|
||||
],
|
||||
] as const,
|
||||
request: {
|
||||
params: z.object({
|
||||
id: z.string(),
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ export default (plugin: PluginType): void => {
|
|||
},
|
||||
),
|
||||
plugin.middleware,
|
||||
],
|
||||
] as const,
|
||||
responses: {
|
||||
200: {
|
||||
description: "Linked accounts",
|
||||
|
|
@ -91,7 +91,7 @@ export default (plugin: PluginType): void => {
|
|||
},
|
||||
),
|
||||
plugin.middleware,
|
||||
],
|
||||
] as const,
|
||||
request: {
|
||||
body: {
|
||||
content: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue