Skip to content

⚙️ JSON Schema All The Things!

License

Notifications You must be signed in to change notification settings

getcrft/jsonizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@getcrft/jsonizer

JSON Schema all the Objects! It works in the browser and Node.

Checkout the example code sandbox.

Usage

Install:

yarn add @getcrft/jsonizer

then call it like:

import { schemaGenerator } from '@getcrft/jsonizer';

const result = schemaGenerator({
  bacon: true
});

the result will look like:

{
  type: 'object',
  required: [],
  properties: {
    bacon: {
      title: 'Bacon',
      type: 'boolean',
      examples: [true]
    }
  }
}

Releases

No releases published

Packages