Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fosfad/json-schema-typescript-definitions

Repository files navigation

JSON Schema TypeScript definitions

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:

Getting started

Install the definitions:

npm install @fosfad/json-schema-typescript-definitions

Import JsonSchema type definition:

import { JsonSchema } from '@fosfad/json-schema-typescript-definitions/2020-12';

Documentation

Exported types

The package exports 3 types: JsonSchemaBoolean, JsonSchemaObject and JsonSchema:

  • JsonSchemaBoolean stands for Boolean JSON Schema;
  • JsonSchemaObject is an object with all possible JSON Schema keywords within;
  • JsonSchema is a union type between JsonSchemaBoolean and JsonSchemaObject.

About

Types and interfaces for writing valid JSON schema in TypeScript.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.