Socket
Socket
Sign inDemoInstall

@types/json-schema

Package Overview
Dependencies
0
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.7 to 7.0.8

238

json-schema/index.d.ts

@@ -68,5 +68,5 @@ // Type definitions for json-schema 4.0, 6.0 and 7.0

export interface JSONSchema4 {
id?: string;
$ref?: string;
$schema?: JSONSchema4Version;
id?: string | undefined;
$ref?: string | undefined;
$schema?: JSONSchema4Version | undefined;

@@ -79,3 +79,3 @@ /**

*/
title?: string;
title?: string | undefined;

@@ -88,13 +88,13 @@ /**

*/
description?: string;
description?: string | undefined;
default?: JSONSchema4Type;
multipleOf?: number;
maximum?: number;
exclusiveMaximum?: boolean;
minimum?: number;
exclusiveMinimum?: boolean;
maxLength?: number;
minLength?: number;
pattern?: string;
default?: JSONSchema4Type | undefined;
multipleOf?: number | undefined;
maximum?: number | undefined;
exclusiveMaximum?: boolean | undefined;
minimum?: number | undefined;
exclusiveMinimum?: boolean | undefined;
maxLength?: number | undefined;
minLength?: number | undefined;
pattern?: string | undefined;

@@ -111,3 +111,3 @@ /**

*/
additionalItems?: boolean | JSONSchema4;
additionalItems?: boolean | JSONSchema4 | undefined;

@@ -133,9 +133,9 @@ /**

*/
items?: JSONSchema4 | JSONSchema4[];
items?: JSONSchema4 | JSONSchema4[] | undefined;
maxItems?: number;
minItems?: number;
uniqueItems?: boolean;
maxProperties?: number;
minProperties?: number;
maxItems?: number | undefined;
minItems?: number | undefined;
uniqueItems?: boolean | undefined;
maxProperties?: number | undefined;
minProperties?: number | undefined;

@@ -149,3 +149,3 @@ /**

*/
required?: false | string[];
required?: false | string[] | undefined;

@@ -162,7 +162,7 @@ /**

*/
additionalProperties?: boolean | JSONSchema4;
additionalProperties?: boolean | JSONSchema4 | undefined;
definitions?: {
[k: string]: JSONSchema4;
};
} | undefined;

@@ -184,3 +184,3 @@ /**

[k: string]: JSONSchema4;
};
} | undefined;

@@ -200,6 +200,6 @@ /**

[k: string]: JSONSchema4;
};
} | undefined;
dependencies?: {
[k: string]: JSONSchema4 | string[];
};
} | undefined;

@@ -215,3 +215,3 @@ /**

*/
enum?: JSONSchema4Type[];
enum?: JSONSchema4Type[] | undefined;

@@ -221,8 +221,8 @@ /**

*/
type?: JSONSchema4TypeName | JSONSchema4TypeName[];
type?: JSONSchema4TypeName | JSONSchema4TypeName[] | undefined;
allOf?: JSONSchema4[];
anyOf?: JSONSchema4[];
oneOf?: JSONSchema4[];
not?: JSONSchema4;
allOf?: JSONSchema4[] | undefined;
anyOf?: JSONSchema4[] | undefined;
oneOf?: JSONSchema4[] | undefined;
not?: JSONSchema4 | undefined;

@@ -245,3 +245,3 @@ /**

*/
extends?: string | string[];
extends?: string | string[] | undefined;

@@ -253,3 +253,3 @@ /**

format?: string;
format?: string | undefined;
}

@@ -307,5 +307,5 @@

export interface JSONSchema6 {
$id?: string;
$ref?: string;
$schema?: JSONSchema6Version;
$id?: string | undefined;
$ref?: string | undefined;
$schema?: JSONSchema6Version | undefined;

@@ -317,3 +317,3 @@ /**

*/
multipleOf?: number;
multipleOf?: number | undefined;

@@ -325,3 +325,3 @@ /**

*/
maximum?: number;
maximum?: number | undefined;

@@ -333,3 +333,3 @@ /**

*/
exclusiveMaximum?: number;
exclusiveMaximum?: number | undefined;

@@ -341,3 +341,3 @@ /**

*/
minimum?: number;
minimum?: number | undefined;

@@ -349,3 +349,3 @@ /**

*/
exclusiveMinimum?: number;
exclusiveMinimum?: number | undefined;

@@ -357,3 +357,3 @@ /**

*/
maxLength?: number;
maxLength?: number | undefined;

@@ -366,3 +366,3 @@ /**

*/
minLength?: number;
minLength?: number | undefined;

@@ -373,3 +373,3 @@ /**

*/
pattern?: string;
pattern?: string | undefined;

@@ -381,3 +381,3 @@ /**

*/
items?: JSONSchema6Definition | JSONSchema6Definition[];
items?: JSONSchema6Definition | JSONSchema6Definition[] | undefined;

@@ -393,3 +393,3 @@ /**

*/
additionalItems?: JSONSchema6Definition;
additionalItems?: JSONSchema6Definition | undefined;

@@ -401,3 +401,3 @@ /**

*/
maxItems?: number;
maxItems?: number | undefined;

@@ -410,3 +410,3 @@ /**

*/
minItems?: number;
minItems?: number | undefined;

@@ -419,3 +419,3 @@ /**

*/
uniqueItems?: boolean;
uniqueItems?: boolean | undefined;

@@ -426,3 +426,3 @@ /**

*/
contains?: JSONSchema6Definition;
contains?: JSONSchema6Definition | undefined;

@@ -434,3 +434,3 @@ /**

*/
maxProperties?: number;
maxProperties?: number | undefined;

@@ -444,3 +444,3 @@ /**

*/
minProperties?: number;
minProperties?: number | undefined;

@@ -454,3 +454,3 @@ /**

*/
required?: string[];
required?: string[] | undefined;

@@ -466,3 +466,3 @@ /**

[k: string]: JSONSchema6Definition;
};
} | undefined;

@@ -479,3 +479,3 @@ /**

[k: string]: JSONSchema6Definition;
};
} | undefined;

@@ -489,3 +489,3 @@ /**

*/
additionalProperties?: JSONSchema6Definition;
additionalProperties?: JSONSchema6Definition | undefined;

@@ -501,3 +501,3 @@ /**

[k: string]: JSONSchema6Definition | string[];
};
} | undefined;

@@ -510,3 +510,3 @@ /**

*/
propertyNames?: JSONSchema6Definition;
propertyNames?: JSONSchema6Definition | undefined;

@@ -522,3 +522,3 @@ /**

*/
enum?: JSONSchema6Type[];
enum?: JSONSchema6Type[] | undefined;

@@ -529,3 +529,3 @@ /**

*/
const?: JSONSchema6Type;
const?: JSONSchema6Type | undefined;

@@ -536,3 +536,3 @@ /**

*/
type?: JSONSchema6TypeName | JSONSchema6TypeName[];
type?: JSONSchema6TypeName | JSONSchema6TypeName[] | undefined;

@@ -542,3 +542,3 @@ /**

*/
allOf?: JSONSchema6Definition[];
allOf?: JSONSchema6Definition[] | undefined;

@@ -548,3 +548,3 @@ /**

*/
anyOf?: JSONSchema6Definition[];
anyOf?: JSONSchema6Definition[] | undefined;

@@ -554,3 +554,3 @@ /**

*/
oneOf?: JSONSchema6Definition[];
oneOf?: JSONSchema6Definition[] | undefined;

@@ -560,3 +560,3 @@ /**

*/
not?: JSONSchema6Definition;
not?: JSONSchema6Definition | undefined;

@@ -568,3 +568,3 @@ /**

[k: string]: JSONSchema6Definition;
};
} | undefined;

@@ -576,3 +576,3 @@ /**

*/
title?: string;
title?: string | undefined;

@@ -584,3 +584,3 @@ /**

*/
description?: string;
description?: string | undefined;

@@ -592,3 +592,3 @@ /**

*/
default?: JSONSchema6Type;
default?: JSONSchema6Type | undefined;

@@ -599,3 +599,3 @@ /**

*/
examples?: JSONSchema6Type[];
examples?: JSONSchema6Type[] | undefined;

@@ -605,3 +605,3 @@ /**

*/
format?: string;
format?: string | undefined;
}

@@ -668,6 +668,6 @@

export interface JSONSchema7 {
$id?: string;
$ref?: string;
$schema?: JSONSchema7Version;
$comment?: string;
$id?: string | undefined;
$ref?: string | undefined;
$schema?: JSONSchema7Version | undefined;
$comment?: string | undefined;

@@ -677,5 +677,5 @@ /**

*/
type?: JSONSchema7TypeName | JSONSchema7TypeName[];
enum?: JSONSchema7Type[];
const?: JSONSchema7Type;
type?: JSONSchema7TypeName | JSONSchema7TypeName[] | undefined;
enum?: JSONSchema7Type[] | undefined;
const?: JSONSchema7Type | undefined;

@@ -685,7 +685,7 @@ /**

*/
multipleOf?: number;
maximum?: number;
exclusiveMaximum?: number;
minimum?: number;
exclusiveMinimum?: number;
multipleOf?: number | undefined;
maximum?: number | undefined;
exclusiveMaximum?: number | undefined;
minimum?: number | undefined;
exclusiveMinimum?: number | undefined;

@@ -695,5 +695,5 @@ /**

*/
maxLength?: number;
minLength?: number;
pattern?: string;
maxLength?: number | undefined;
minLength?: number | undefined;
pattern?: string | undefined;

@@ -703,8 +703,8 @@ /**

*/
items?: JSONSchema7Definition | JSONSchema7Definition[];
additionalItems?: JSONSchema7Definition;
maxItems?: number;
minItems?: number;
uniqueItems?: boolean;
contains?: JSONSchema7;
items?: JSONSchema7Definition | JSONSchema7Definition[] | undefined;
additionalItems?: JSONSchema7Definition | undefined;
maxItems?: number | undefined;
minItems?: number | undefined;
uniqueItems?: boolean | undefined;
contains?: JSONSchema7 | undefined;

@@ -714,16 +714,16 @@ /**

*/
maxProperties?: number;
minProperties?: number;
required?: string[];
maxProperties?: number | undefined;
minProperties?: number | undefined;
required?: string[] | undefined;
properties?: {
[key: string]: JSONSchema7Definition;
};
} | undefined;
patternProperties?: {
[key: string]: JSONSchema7Definition;
};
additionalProperties?: JSONSchema7Definition;
} | undefined;
additionalProperties?: JSONSchema7Definition | undefined;
dependencies?: {
[key: string]: JSONSchema7Definition | string[];
};
propertyNames?: JSONSchema7Definition;
} | undefined;
propertyNames?: JSONSchema7Definition | undefined;

@@ -733,5 +733,5 @@ /**

*/
if?: JSONSchema7Definition;
then?: JSONSchema7Definition;
else?: JSONSchema7Definition;
if?: JSONSchema7Definition | undefined;
then?: JSONSchema7Definition | undefined;
else?: JSONSchema7Definition | undefined;

@@ -741,6 +741,6 @@ /**

*/
allOf?: JSONSchema7Definition[];
anyOf?: JSONSchema7Definition[];
oneOf?: JSONSchema7Definition[];
not?: JSONSchema7Definition;
allOf?: JSONSchema7Definition[] | undefined;
anyOf?: JSONSchema7Definition[] | undefined;
oneOf?: JSONSchema7Definition[] | undefined;
not?: JSONSchema7Definition | undefined;

@@ -750,3 +750,3 @@ /**

*/
format?: string;
format?: string | undefined;

@@ -756,4 +756,4 @@ /**

*/
contentMediaType?: string;
contentEncoding?: string;
contentMediaType?: string | undefined;
contentEncoding?: string | undefined;

@@ -765,3 +765,3 @@ /**

[key: string]: JSONSchema7Definition;
};
} | undefined;

@@ -771,8 +771,8 @@ /**

*/
title?: string;
description?: string;
default?: JSONSchema7Type;
readOnly?: boolean;
writeOnly?: boolean;
examples?: JSONSchema7Type;
title?: string | undefined;
description?: string | undefined;
default?: JSONSchema7Type | undefined;
readOnly?: boolean | undefined;
writeOnly?: boolean | undefined;
examples?: JSONSchema7Type | undefined;
}

@@ -779,0 +779,0 @@

{
"name": "@types/json-schema",
"version": "7.0.7",
"version": "7.0.8",
"description": "TypeScript definitions for json-schema 4.0, 6.0 and",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-schema",
"license": "MIT",

@@ -42,4 +43,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "ef06c3e504eafcb78cb50a8ec27cdd4d6e863f83efa5622123a703af98c53075",
"typeScriptVersion": "3.4"
"typesPublisherContentHash": "a58f3eeeeaaf6f6dd512e6c35e095675ba3d36c3dbae363a90d6927e672d0906",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 19 Jan 2021 23:09:28 GMT
* Last updated: Tue, 06 Jul 2021 21:33:48 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc