Files
cfw-autumn/shared/api/common/entityData.ts
John Yeo 9ba51d5055 wip
2025-11-04 10:56:58 +00:00

14 lines
397 B
TypeScript

import { z } from "zod/v4";
// Base schema without top-level .meta() to avoid side effects during imports
export const EntityDataSchema = z.object({
feature_id: z.string().meta({
description: "The feature ID that this entity is associated with",
}),
name: z.string().optional().meta({
description: "Name of the entity",
}),
});
export type EntityData = z.infer<typeof EntityDataSchema>;