1.1.1 • Published 4 years ago

explain-json-schema v1.1.1

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

Explain JSON schema

This project allows to convert a JSON schema to native english text.

Examples:

Supported JSON schema features

  • Basic attributes:
    • enum, const
    • deprecated
    • $ref locally
  • number, integer
    • minimum, maximum, exclusiveMinimum, exclusiveMaximum
    • multipleOf
  • string
    • minLength, maxLength
    • format
    • pattern
    • contentMediaType
    • contentEncoding
  • boolean
  • null
  • object
    • properties
    • additionalProperties (as boolean and as object)
    • patternProperties
    • required
    • minProperties, maxProperties
    • propertyNames.pattern
  • array
    • items (schema)
    • items (array of schemas)
    • minItems, maxItems
    • uniqueItems
    • contains
    • minContains, maxContains
  • allOf, oneOf, anyOf, not
  • if, then, else
  • multiple types (type: ["string", "null"])

Missing JSON schema features

  • object: dependencies (Properties and Schema)

Install & Usage

npm install explain-json-schema

Run:

npx explain-json-schema --schema schema.json >TEXT.md

Use as lib:

See cli.js

License

This software is released under the MIT license.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago