Variable mediaVariantSchemaConst
mediaVariantSchema: ZodObject<
{
content_type: ZodOptional<ZodNullable<ZodString>>;
created_at: ZodOptional<ZodString>;
file: ZodOptional<ZodString>;
filename: ZodOptional<ZodNullable<ZodString>>;
height: ZodOptional<ZodNullable<ZodNumber>>;
id: ZodString;
image_source: ZodOptional<
ZodNullable<
ZodObject<
{
file: ZodOptional<ZodNullable<ZodString>>;
height: ZodOptional<ZodNullable<ZodNumber>>;
media: ZodOptional<ZodNullable<ZodString>>;
mime_type: ZodOptional<ZodNullable<ZodString>>;
refresh_url: ZodOptional<ZodNullable<ZodString>>;
url: ZodOptional<ZodNullable<ZodString>>;
width: ZodOptional<ZodNullable<ZodNumber>>;
},
"strip",
ZodTypeAny,
{
file?: string
| null;
height?: number | null;
media?: string | null;
mime_type?: string | null;
refresh_url?: string | null;
url?: string | null;
width?: number | null;
},
{
file?: string
| null;
height?: number | null;
media?: string | null;
mime_type?: string | null;
refresh_url?: string | null;
url?: string | null;
width?: number | null;
},
>,
>,
>;
updated_at: ZodOptional<ZodString>;
url: ZodOptional<ZodNullable<ZodString>>;
variant_key: ZodOptional<ZodString>;
width: ZodOptional<ZodNullable<ZodNumber>>;
},
"strip",
ZodTypeAny,
{
content_type?: string
| null;
created_at?: string;
file?: string;
filename?: string | null;
height?: number | null;
id: string;
image_source?:
| {
file?: string
| null;
height?: number | null;
media?: string | null;
mime_type?: string | null;
refresh_url?: string | null;
url?: string | null;
width?: number | null;
}
| null;
updated_at?: string;
url?: string
| null;
variant_key?: string;
width?: number | null;
},
{
content_type?: string
| null;
created_at?: string;
file?: string;
filename?: string | null;
height?: number | null;
id: string;
image_source?:
| {
file?: string
| null;
height?: number | null;
media?: string | null;
mime_type?: string | null;
refresh_url?: string | null;
url?: string | null;
width?: number | null;
}
| null;
updated_at?: string;
url?: string
| null;
variant_key?: string;
width?: number | null;
},
> = ...
Runtime validator for MediaVariant.