json-schema-to-proptypes
Transform JSON Schema schemas to PropTypes.
This package was imported from and is a subset of https://github.com/dowjones/react-json-schema-proptypes. Doesn't depend on React
nor on PropTypes
packages.
Supports JSON Schema draft-04 schemas conversion to a custom PropType function that will validate against that schema.
Usage
const mySchema = type: 'object' required: 'a' properties: a: type: 'string' b: type: 'string' const myPropTypes =