1.1.0 • Published 8 months ago
@nlighten/json-schema-utils v1.1.0
json-schema-utils
Various utilities for handling JSON Schemas (parse, join, generate, samples)
Installation
npm install @nlighten/json-schema-utils
API
JSONSchemaUtils: {
join: (pathsDescriptors: { targetPath: string; type: TypeSchema; }[], options?: JoinOptions) => TypeSchema;
parse: (schema: TypeSchema, options?: ParsingOptions) => ParsedSchema;
generate: (value: any, options?: GenerateSchemaOptions) => TypeSchema;
};