json-schema-to-joi
Version:
Converts JSON schema to Joi typescript code
7 lines (6 loc) • 346 B
TypeScript
import { JSONSchema4 } from 'json-schema';
import { JoiAllOf } from './types';
import { JoiStatement } from './generate';
import { ResolveOptions } from './options';
export declare function resolveJoiAllOfSchema(schema: JSONSchema4, options?: ResolveOptions): JoiAllOf;
export declare function generateAllOfJoi(schema: JoiAllOf): JoiStatement[];