jsonschematic
jsonschematic is a json schema in the same vein as docson.
The interactive(!) demo page lives at https://yanick.github.io/jsonschematic/.
How to run
From a global install:
$ npm install -g @infinity-interactive/jsonschematic
$ jsonschematic --schema_dir path/to/schemas
From the repo:
$ git clone https://github.com/yanick/jsonschematic.git
$ cd jsonschematic
$ npm install
$ JSONSCHEMATIC_DIR=examples npm run dev
Supported JSON Schema keywords
-
[x] $comment
-
[x] $id
-
[x] $ref
-
[x] $schema
-
[x] title
-
[ ] type
-
[x] integer
-
[x] number
- [x] minimum
- [x] maximum
- [x] exclusiveMaximum
- [x] exclusiveMinimum
- [x] multipleOf
-
[x] string
- [x] minLength
- [x] maxLength
- [x] format
- [x] contentEncoding
- [x] contentMediaType
-
[x] array
- [x] minItems
- [x] maxItems
- [x] minContains
- [x] maxContains
- [x] uniqueItems
- [x] items
- [x] as a schema
- [x] as a tuple
- [x] additionalItems
-
[x] boolean
-
[x] enum
-
[x] const
-
[x] null
-
[x] object
- [x] properties
- [x] required
- [x] maxProperties
- [x] minProperties
- [x] propertyNames
- [ ] additionalProperties
- [ ] as boolean
- [ ] as object
- [x] patternProperties
-
[ ] type as an array of types
-
-
[x] dependencies
- [x] property dependencies
- [x] schema dependencies
-
[x] if
-
[x] allOf
-
[x] anyOf
-
[x] oneOf
-
[x] not
-
[x] readOnly
-
[x] writeOnly
-
[ ] contains
-
[x] definitions
-
[x] default
-
[ ] examples
- [x] scalar values
- [ ] data structures issue #66
-
[x] pattern
-
[x] schema as a boolean
Authors
jsonschematic is developed under the auspice of Infinity Interactive.
© 2020 Infinity Interactive