@mintlify/validation
Version:
Validates mint.json files
12 lines (11 loc) • 346 B
JavaScript
import { z } from 'zod';
export const bannerSchema = z.object({
content: z
.string()
.nonempty()
.describe('The content of the banner. MDX formatting is supported.'),
dismissible: z
.boolean()
.optional()
.describe('Whether to show the dismiss button on the right side of the banner'),
});