json-schema-typed
Version:
JSONSchema TypeScript definitions.
68 lines (45 loc) • 2.19 kB
Markdown
# json-schema-typed
JSONSchema TypeScript definitions.
[](https://github.com/typeslick/tslint-slick)
[](https://github.com/prettier/prettier)
[](https://npmjs.org/package/json-schema-typed)
[](https://github.com/semantic-release/semantic-release)
[](https://github.com/typeschema/json-schema-typed/blob/master/LICENSE)
## Install
```sh
$ npm install json-schema-typed
```
## Usage
TypeScript:
```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
```
---
## News and Updates
[Follow @typeslick on Twitter](https://twitter.com/typeslick) for the latest
updates and new project announcements.
## Sponsors
- [Loomble](https://loomble.com/)
## Maintainers
- [Jay Rylan](https://jayrylan.com/)
## License
[BSD-2-Clause](https://github.com/typeschema/json-schema-typed/blob/master/LICENSE)