UNPKG

@mintlify/validation

Version:

Validates mint.json files

8 lines (7 loc) 355 B
import { z } from 'zod'; export const openapiAnchorOrTab = z .string() .trim() .nonempty() .refine((filePath) => filePath.startsWith('/') || filePath.startsWith('https:') || filePath.startsWith('http:'), "File path must start with '/' or 'https://'. Urls with 'http://' are only supported with cli option --local-schema") .optional();