1.0.0 • Published 4 years ago

@crft/jsonizer v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

@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]
    }
  }
}