@mintlify/validation
Version:
Validates mint.json files
63 lines (62 loc) • 2.67 kB
TypeScript
import { z } from 'zod';
export declare const anchorSchema: z.ZodObject<{
name: z.ZodString;
url: z.ZodString;
icon: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
iconType: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
color: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
from: z.ZodString;
via: z.ZodOptional<z.ZodString>;
to: z.ZodString;
}, "strict", z.ZodTypeAny, {
from: string;
to: string;
via?: string | undefined;
}, {
from: string;
to: string;
via?: string | undefined;
}>]>>;
isDefaultHidden: z.ZodOptional<z.ZodBoolean>;
version: z.ZodOptional<z.ZodString>;
openapi: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
}, "strip", z.ZodTypeAny, {
name: string;
url: string;
icon?: string | undefined;
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
color?: string | {
from: string;
to: string;
via?: string | undefined;
} | undefined;
isDefaultHidden?: boolean | undefined;
version?: string | undefined;
openapi?: string | undefined;
}, {
name: string;
url: string;
icon?: string | undefined;
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
color?: string | {
from: string;
to: string;
via?: string | undefined;
} | undefined;
isDefaultHidden?: boolean | undefined;
version?: string | undefined;
openapi?: string | undefined;
}>;
export declare const topAnchorSchema: z.ZodObject<{
name: z.ZodString;
icon: z.ZodOptional<z.ZodString>;
iconType: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
}, "strict", z.ZodTypeAny, {
name: string;
icon?: string | undefined;
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
}, {
name: string;
icon?: string | undefined;
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
}>;