UNPKG

one-schema

Version:
23 lines (22 loc) 580 B
import { IFieldValidatorSerialized } from "../../types/core"; interface ISwaggerField { type: string; format?: string; example?: any; description?: string; default?: any; enum?: any[]; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; required?: string[]; items?: ISwaggerField; properties?: { [key: string]: ISwaggerField; }; } declare function onsFieldToSwagger(field: IFieldValidatorSerialized): ISwaggerField; export { onsFieldToSwagger };