@types/json-schema
Advanced tools
Comparing version
@@ -24,2 +24,17 @@ // Type definitions for json-schema 4.0, 6.0 and 7.0 | ||
/** | ||
* Meta schema | ||
* | ||
* Recommended values: | ||
* - 'http://json-schema.org/schema#' | ||
* - 'http://json-schema.org/hyper-schema#' | ||
* - 'http://json-schema.org/draft-04/schema#' | ||
* - 'http://json-schema.org/draft-04/hyper-schema#' | ||
* - 'http://json-schema.org/draft-03/schema#' | ||
* - 'http://json-schema.org/draft-03/hyper-schema#' | ||
* | ||
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5 | ||
*/ | ||
export type JSONSchema4Version = string; | ||
/** | ||
* JSON Schema V4 | ||
@@ -31,6 +46,3 @@ * @see https://tools.ietf.org/html/draft-zyp-json-schema-04 | ||
$ref?: string | ||
$schema?: 'http://json-schema.org/schema#' | 'http://json-schema.org/hyper-schema#' | ||
| 'http://json-schema.org/draft-04/schema#' | 'http://json-schema.org/draft-04/hyper-schema#' | ||
| 'http://json-schema.org/draft-03/schema#' | 'http://json-schema.org/draft-03/hyper-schema#' | ||
| string | ||
$schema?: JSONSchema4Version | ||
@@ -216,2 +228,15 @@ /** | ||
/** | ||
* Meta schema | ||
* | ||
* Recommended values: | ||
* - 'http://json-schema.org/schema#' | ||
* - 'http://json-schema.org/hyper-schema#' | ||
* - 'http://json-schema.org/draft-06/schema#' | ||
* - 'http://json-schema.org/draft-06/hyper-schema#' | ||
* | ||
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5 | ||
*/ | ||
export type JSONSchema6Version = string; | ||
/** | ||
* JSON Schema V6 | ||
@@ -224,4 +249,3 @@ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01 | ||
$ref?: string | ||
$schema?: 'http://json-schema.org/schema#' | 'http://json-schema.org/hyper-schema#' | | ||
'http://json-schema.org/draft-06/schema#' | 'http://json-schema.org/draft-06/hyper-schema#' | ||
$schema?: JSONSchema6Version | ||
@@ -509,8 +533,12 @@ /** | ||
* Meta schema | ||
* | ||
* Recommended values: | ||
* - 'http://json-schema.org/schema#' | ||
* - 'http://json-schema.org/hyper-schema#' | ||
* - 'http://json-schema.org/draft-07/schema#' | ||
* - 'http://json-schema.org/draft-07/hyper-schema#' | ||
* | ||
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5 | ||
*/ | ||
export type JSONSchema7Version = 'http://json-schema.org/schema#' | ||
| 'http://json-schema.org/hyper-schema#' | ||
| 'http://json-schema.org/draft-07/schema#' | ||
| 'http://json-schema.org/draft-07/hyper-schema#'; | ||
export type JSONSchema7Version = string; | ||
@@ -517,0 +545,0 @@ /** |
{ | ||
"name": "@types/json-schema", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"description": "TypeScript definitions for json-schema 4.0, 6.0 and", | ||
@@ -29,2 +29,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
@@ -36,4 +37,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "1d7882aae5175e28c219f017173825d4ad27a8c949ff86a12b015a1d0d5fd563", | ||
"typesPublisherContentHash": "2b6bccb0106a3a136e309bae456373a4f14bb3bd6b85ac9151f5137ff9c0fc5f", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for json-schema 4.0, 6.0 and (https://www.npmjs.com/package/json-schema). | ||
This package contains type definitions for json-schema 4.0, 6.0 and ( https://www.npmjs.com/package/json-schema ). | ||
@@ -12,3 +12,3 @@ # Details | ||
Additional Details | ||
* Last updated: Thu, 20 Sep 2018 22:05:59 GMT | ||
* Last updated: Fri, 01 Feb 2019 20:39:57 GMT | ||
* Dependencies: none | ||
@@ -15,0 +15,0 @@ * Global values: none |
566
4.81%27240
-0.53%