feat: added api / openapi models to shared folder
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import { EntityResponseSchema } from "@models/cusModels/entityModels/entityResModels.js";
|
||||
import type { z } from "zod/v4";
|
||||
|
||||
export const APIEntitySchema = EntityResponseSchema;
|
||||
export const APIEntitySchema = EntityResponseSchema.meta({
|
||||
id: "Entity",
|
||||
description: "Entity object returned by the API",
|
||||
});
|
||||
export type APIEntity = z.infer<typeof APIEntitySchema>;
|
||||
|
||||
Reference in New Issue
Block a user