@syngrisi/syngrisi
Version:
Syngrisi - Visual Testing Tool
47 lines (46 loc) • 2.17 kB
JavaScript
;
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/Error.schema.ts
var Error_schema_exports = {};
__export(Error_schema_exports, {
ApiErrorSchema: () => ApiErrorSchema
});
module.exports = __toCommonJS(Error_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"
}),
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=Error.schema.js.map