iceshrimp-legacy/packages/backend/src/models/schema/blocking.ts
ThatOneCalculator 6b00abf05c
refactor: 🎨 rome
2023-01-12 20:40:33 -08:00

31 lines
501 B
TypeScript

export const packedBlockingSchema = {
type: "object",
properties: {
id: {
type: "string",
optional: false,
nullable: false,
format: "id",
example: "xxxxxxxxxx",
},
createdAt: {
type: "string",
optional: false,
nullable: false,
format: "date-time",
},
blockeeId: {
type: "string",
optional: false,
nullable: false,
format: "id",
},
blockee: {
type: "object",
optional: false,
nullable: false,
ref: "UserDetailed",
},
},
} as const;