mirror of
https://github.com/versia-pub/server.git
synced 2026-04-28 05:09:16 +02:00
refactor(api): ♻️ Move from @hono/zod-openapi to hono-openapi
hono-openapi is easier to work with and generates better OpenAPI definitions
This commit is contained in:
parent
0576aff972
commit
58342e86e1
240 changed files with 9494 additions and 9575 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { z } from "@hono/zod-openapi";
|
||||
import { z } from "zod";
|
||||
|
||||
export const Application = z
|
||||
.object({
|
||||
|
|
@ -61,7 +61,9 @@ export const Application = z
|
|||
},
|
||||
}),
|
||||
})
|
||||
.openapi("Application");
|
||||
.openapi({
|
||||
ref: "Application",
|
||||
});
|
||||
|
||||
export const CredentialApplication = Application.extend({
|
||||
client_id: z.string().openapi({
|
||||
|
|
@ -83,4 +85,6 @@ export const CredentialApplication = Application.extend({
|
|||
url: "https://docs.joinmastodon.org/entities/CredentialApplication/#client_secret_expires_at",
|
||||
},
|
||||
}),
|
||||
}).openapi("CredentialApplication");
|
||||
}).openapi({
|
||||
ref: "CredentialApplication",
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue