UNPKG

@syngrisi/syngrisi

Version:
51 lines (50 loc) 2.32 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/server/schemas/common/ApiError.schema.ts var ApiError_schema_exports = {}; __export(ApiError_schema_exports, { ApiErrorSchema: () => ApiErrorSchema }); module.exports = __toCommonJS(ApiError_schema_exports); var import_zod_to_openapi = require("@asteasolutions/zod-to-openapi"); var import_zod = require("zod"); (0, import_zod_to_openapi.extendZodWithOpenApi)(import_zod.z); var ApiErrorSchema = import_zod.z.object({ name: import_zod.z.string().openapi({ description: "Name of the error type", example: "Error" }), message: import_zod.z.string().openapi({ description: "Detailed message describing the error", example: "cannot remove run with id: '6651e46e85f83573a821d1f4', not found" }), status: import_zod.z.number().openapi({ description: "HTTP status code that corresponds to the error", example: 404 }), stacktrace: import_zod.z.string().openapi({ description: "Stack trace of the error for debugging purposes", example: "Error: cannot remove run with id: '6651e46e85f83573a821d1f4', not found\\n at Object.remove2 (/Users/exadel/Projects/SYNGRISI/packages/syngrisi/src/server/services/run.service.ts:27:15)\\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\\n at /Users/exadel/Projects/SYNGRISI/packages/syngrisi/src/server/controllers/runs.controller.ts:25:20" }) }); // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { ApiErrorSchema }); //# sourceMappingURL=ApiError.schema.js.map