mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(api): 🏷️ Port Account OpenAPI schemas from Mastodon API docs
This commit is contained in:
parent
76d1ccc859
commit
2aeada4904
95 changed files with 610 additions and 388 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import type { OpenAPIHono } from "@hono/zod-openapi";
|
||||
import { z } from "@hono/zod-openapi";
|
||||
import { zValidator } from "@hono/zod-validator";
|
||||
import { getLogger } from "@logtape/logtape";
|
||||
import { Application, Note, Token, User, db } from "@versia/kit/db";
|
||||
|
|
@ -24,7 +25,6 @@ import {
|
|||
oneOrMore,
|
||||
} from "magic-regexp";
|
||||
import { type ParsedQs, parse } from "qs";
|
||||
import { z } from "zod";
|
||||
import { fromZodError } from "zod-validation-error";
|
||||
import { ApiError } from "~/classes/errors/api-error";
|
||||
import type { AuthData } from "~/classes/functions/user";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue