hexo/node_modules/json-schema-typed
jkjoy 9a9cb42f53 20231003 update 2023-10-03 11:14:36 +08:00
..
dist-node 20231003 update 2023-10-03 11:14:36 +08:00
dist-src 20231003 update 2023-10-03 11:14:36 +08:00
dist-types 20231003 update 2023-10-03 11:14:36 +08:00
dist-web 20231003 update 2023-10-03 11:14:36 +08:00
LICENSE 20231003 update 2023-10-03 11:14:36 +08:00
README.md 20231003 update 2023-10-03 11:14:36 +08:00
package.json 20231003 update 2023-10-03 11:14:36 +08:00

README.md

json-schema-typed

JSON Schema draft-07 TypeScript definitions with complete inline documentation for each property.

code style: Prettier npm semantic-release License

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

Sponsors

Maintainers

License

BSD-2-Clause