@nlighten/json-schema-utils
v1.0.3
Published
Various utilities for handling JSON Schemas (parse, join, generate, samples)
Downloads
90
Readme
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;
};