UNPKG

@code-pushup/models

Version:

Model definitions and validators for the Code PushUp CLI

17 lines 581 B
import { z } from 'zod'; import { MAX_ISSUE_MESSAGE_LENGTH } from './implementation/limits.js'; import { sourceFileLocationSchema } from './source.js'; export const issueSeveritySchema = z .enum(['info', 'warning', 'error']) .describe('Severity level'); export const issueSchema = z .object({ message: z .string() .max(MAX_ISSUE_MESSAGE_LENGTH) .describe('Descriptive error message'), severity: issueSeveritySchema, source: sourceFileLocationSchema.optional(), }) .describe('Issue information'); //# sourceMappingURL=issue.js.map