json-schema-typed
JSON Schema draft-07 TypeScript definitions with complete inline documentation for each property.
Install
npm install json-schema-typed # NPM
yarn add json-schema-typed # or Yarn
Usage
TypeScript:
import { JSONSchema } from 'json-schema-typed'
const schema: JSONSchema = {
// ...
}
API
Additional exports:
| Name | Type | Purpose |
|---|---|---|
JSONSchemaFormat |
Enum | JSON Schema string formats. |
JSONSchemaType |
Enum | Standard values for the "type" field. |
JSONSchemaContentEncoding |
Enum | JSON Schema content encoding strategies. |
JSONSchemaKeys |
string[] |
All the standard property keys available in a JSON schema. |
Versioning
+----- Major version is synchronized with the major version of JSON Schema.
| +--- Minor version has BREAKING CHANGE and/or new features.
| | +- Patch version.
| | |
x.x.x