hey-api-builders
Version:
A custom plugin for @hey-api/openapi-ts that generates mock data builders with a lightweight custom runtime, Zod integration, or static mock generation.
24 lines • 763 B
TypeScript
import type { IR } from '@hey-api/openapi-ts';
import type { JsonValue } from '../types';
/**
* Schema validation utilities
*/
/**
* Checks if a schema represents an enum type
* @param ir - Schema object to check
* @returns True if schema is an enum
*/
export declare function isEnum(ir: IR.SchemaObject): boolean;
/**
* Checks if a value is a valid JSON value
* @param value - Value to check
* @returns True if valid JSON value
*/
export declare function isJsonValue(value: unknown): value is JsonValue;
/**
* Checks if a schema represents an object type
* @param type - Schema type
* @returns True if object type
*/
export declare function isObjectType(type: string | string[] | undefined): boolean;
//# sourceMappingURL=schema-validators.d.ts.map