@mintlify/validation
Version:
Validates mint.json files
18 lines (17 loc) • 644 B
JavaScript
import { z } from 'zod';
export const errorsSchema = z
.object({
'404': z.object({
redirect: z
.boolean()
.optional()
.default(true)
.describe('Whether to redirect to the home page, if the page is not found'),
title: z.string().optional().describe('The title of the error page'),
description: z
.string()
.optional()
.describe('The description of the error page. Supports basic MDX formatting including links, bold, and italic text. Custom components are not supported.'),
}),
})
.describe('Error pages configuration');