@crft/jsonizer
v1.0.0
Published
JSON Schema all the Objects! It works in the browser and Node.
Downloads
6
Maintainers
Keywords
Readme
@crft/jsonizer
JSON Schema all the Objects! It works in the browser and Node.
Usage
Install:
yarn add @crft/jsonizer
then call it like:
import { schemaGenerator } from '@crft/jsonizer';
const result = schemaGenerator({
bacon: true
});
the result will look like:
{
type: 'object',
required: [],
properties: {
bacon: {
title: 'Bacon',
type: 'boolean',
examples: [true]
}
}
}