[FIX] update the error response with OID instead of UUID

This commit is contained in:
Edouard DUPIN 2025-01-11 14:28:46 +01:00
parent 2e62577103
commit 1a3652472e

View File

@ -3,11 +3,11 @@
*/
import { z as zod } from "zod";
import {ZodUUID} from "./uuid";
import {ZodObjectId} from "./object-id";
import {ZodInteger} from "./integer";
export const ZodRestErrorResponse = zod.object({
uuid: ZodUUID.optional(),
oid: ZodObjectId.optional(),
name: zod.string(),
message: zod.string(),
time: zod.string(),