https://github.com/nlighten-oss/json-schema-utils
Various utilities for handling JSON Schemas (parse, join, generate, samples)
https://github.com/nlighten-oss/json-schema-utils
Last synced: 3 months ago
JSON representation
Various utilities for handling JSON Schemas (parse, join, generate, samples)
- Host: GitHub
- URL: https://github.com/nlighten-oss/json-schema-utils
- Owner: nlighten-oss
- License: mit
- Created: 2024-02-08T13:54:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-07T12:44:42.000Z (about 1 year ago)
- Last Synced: 2024-04-26T09:50:25.125Z (about 1 year ago)
- Language: TypeScript
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# json-schema-utils

[](https://github.com/nlighten-oss/json-schema-utils/actions/workflows/pr-tests.yml)Various utilities for handling JSON Schemas (parse, join, generate, samples)
# Installation
`npm install @nlighten/json-schema-utils`
# API
```typescript
JSONSchemaUtils: {
join: (pathsDescriptors: { targetPath: string; type: TypeSchema; }[], options?: JoinOptions) => TypeSchema;
parse: (schema: TypeSchema, options?: ParsingOptions) => ParsedSchema;
generate: (value: any, options?: GenerateSchemaOptions) => TypeSchema;
};```
# License
[MIT](./LICENSE)