@mintlify/validation
Version:
Validates mint.json files
23 lines (22 loc) • 914 B
JavaScript
import { z } from 'zod';
export var ThumbnailAppearance;
(function (ThumbnailAppearance) {
ThumbnailAppearance["Light"] = "light";
ThumbnailAppearance["Dark"] = "dark";
})(ThumbnailAppearance || (ThumbnailAppearance = {}));
const thumbnailFontSchema = z
.object({
family: z.string().describe('The font family, such as "Open Sans", "Playfair Display"'),
})
.describe('The font to be used for thumbnails. Only family name is supported for Google Fonts.');
export const thumbnailsSchema = z.object({
appearance: z
.enum([ThumbnailAppearance.Light, ThumbnailAppearance.Dark])
.optional()
.describe('The appearance of the thumbnail. Defaults to generated by colors.'),
background: z
.string()
.optional()
.describe('Background image for the thumbnail. Can be an absolute URL or relative path.'),
fonts: thumbnailFontSchema.optional(),
});