UNPKG

@eventcatalog/linter

Version:

A linter for EventCatalog to validate frontmatter and resource references

17 lines 785 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.querySchema = exports.commandSchema = exports.eventSchema = void 0; const zod_1 = require("zod"); const common_1 = require("./common"); const baseMessageSchema = zod_1.z .object({ producers: zod_1.z.array(zod_1.z.any()).optional(), // reference('services') consumers: zod_1.z.array(zod_1.z.any()).optional(), // reference('services') channels: zod_1.z.array(common_1.channelPointerSchema).optional(), messageChannels: zod_1.z.array(zod_1.z.any()).optional(), // reference('channels') }) .merge(common_1.baseSchema); exports.eventSchema = baseMessageSchema; exports.commandSchema = baseMessageSchema; exports.querySchema = baseMessageSchema; //# sourceMappingURL=message.js.map