@scalar/oas-utils
Version:
Open API spec and Yaml handling utilities
16 lines (13 loc) • 583 B
JavaScript
import { z } from 'zod';
import { nanoidSchema } from '@scalar/types/utils';
const cookieSchema = z.object({
uid: nanoidSchema.brand(),
/** Defines the cookie name and its value. A cookie definition begins with a name-value pair. */
name: z.string().default(''),
value: z.string().default(''),
/** Defines the host to which the cookie will be sent. */
domain: z.string().optional(),
/** Indicates the path that must exist in the requested URL for the browser to send the Cookie header. */
path: z.string().optional(),
});
export { cookieSchema };