Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 748 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 748 Bytes

json-schema-utils

Build

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;
};

License

MIT