UNPKG

@mintlify/validation

Version:

Validates mint.json files

16 lines (15 loc) 657 B
import { z } from 'zod'; import { colorsSchema } from '../mint-config/schemas/v2/properties/colors.js'; import { faviconSchema } from '../mint-config/schemas/v2/properties/favicon.js'; import { logoSchema } from '../mint-config/schemas/v2/properties/logo.js'; import { nameSchema } from '../mint-config/schemas/v2/properties/name.js'; import { heroSchema } from './hero.js'; export const chatConfigSchema = z.object({ name: nameSchema.optional(), favicon: faviconSchema.optional(), logo: logoSchema.optional(), wordmark: logoSchema.optional(), hero: heroSchema.optional(), colors: colorsSchema.optional(), }); export { heroSchema };