refactor: ⬆️ Upgrade to Zod v4 and hono-openapi 0.5.0

This commit is contained in:
Jesse Wierzbinski 2025-07-07 03:42:35 +02:00
parent add2429606
commit 24d4150da4
No known key found for this signature in database
209 changed files with 1331 additions and 1622 deletions

View file

@ -1,27 +1,27 @@
import { z } from "zod";
import { z } from "zod/v4";
import { Account } from "./account.ts";
export const FamiliarFollowers = z
.object({
id: Account.shape.id.openapi({
id: Account.shape.id.meta({
description: "The ID of the Account in the database.",
example: "48214efb-1f3c-459a-abfa-618a5aeb2f7a",
externalDocs: {
url: "https://docs.joinmastodon.org/entities/FamiliarFollowers/#id",
},
}),
accounts: z.array(Account).openapi({
accounts: z.array(Account).meta({
description: "Accounts you follow that also follow this account.",
externalDocs: {
url: "https://docs.joinmastodon.org/entities/FamiliarFollowers/#accounts",
},
}),
})
.openapi({
.meta({
description:
"Represents a subset of your follows who also follow some other user.",
externalDocs: {
url: "https://docs.joinmastodon.org/entities/FamiliarFollowers",
},
ref: "FamiliarFollowers",
id: "FamiliarFollowers",
});