- Notifications
You must be signed in to change notification settings - Fork0
Types and interfaces for writing valid JSON schema in TypeScript.
License
NotificationsYou must be signed in to change notification settings
fosfad/json-schema-typescript-definitions
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This package contains TypeScript definitions for JSON Schema. It may be useful in all kind of TypeScript projects that work with JSON Schema directly.
Supported JSON Schema drafts:
Install the definitions:
npm install @fosfad/json-schema-typescript-definitions
ImportJsonSchema
type definition:
import{JsonSchema}from'@fosfad/json-schema-typescript-definitions/2020-12';
The package exports 3 types:JsonSchemaBoolean
,JsonSchemaObject
andJsonSchema
:
JsonSchemaBoolean
stands forBoolean JSON Schema;JsonSchemaObject
is an object with all possible JSON Schema keywords within;JsonSchema
is a union type betweenJsonSchemaBoolean
andJsonSchemaObject
.
About
Types and interfaces for writing valid JSON schema in TypeScript.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.