mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01: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,5 +1,3 @@
|
|||
import type { OpenAPIHono } from "@hono/zod-openapi";
|
||||
import type { z } from "@hono/zod-openapi";
|
||||
import type {
|
||||
Delete,
|
||||
Follow,
|
||||
|
|
@ -12,7 +10,9 @@ import type {
|
|||
User,
|
||||
} from "@versia/federation/types";
|
||||
import type { SocketAddress } from "bun";
|
||||
import type { Hono } from "hono";
|
||||
import type { RouterRoute } from "hono/types";
|
||||
import type { z } from "zod";
|
||||
import type { ConfigSchema } from "~/classes/config/schema";
|
||||
import type { AuthData } from "~/classes/functions/user";
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ export type HonoEnv = {
|
|||
};
|
||||
|
||||
export interface ApiRouteExports {
|
||||
default: (app: OpenAPIHono<HonoEnv>) => RouterRoute;
|
||||
default: (app: Hono<HonoEnv>) => RouterRoute;
|
||||
}
|
||||
|
||||
export type KnownEntity =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue