Skip to content

Commit fed4b74

Browse files
committed
Update IJSONSchema: v6 and custom properties
1 parent 7b6d3a1 commit fed4b74

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

src/vs/base/common/jsonSchema.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
export interface IJSONSchema {
88
id?: string;
9+
$id?: string;
910
$schema?: string;
1011
type?: string | string[];
1112
title?: string;
@@ -17,7 +18,7 @@ export interface IJSONSchema {
1718
additionalProperties?: boolean | IJSONSchema;
1819
minProperties?: number;
1920
maxProperties?: number;
20-
dependencies?: IJSONSchemaMap | { [name: string]: string[] };
21+
dependencies?: IJSONSchemaMap | { [prop: string]: string[] };
2122
items?: IJSONSchema | IJSONSchema[];
2223
minItems?: number;
2324
maxItems?: number;
@@ -28,8 +29,8 @@ export interface IJSONSchema {
2829
maxLength?: number;
2930
minimum?: number;
3031
maximum?: number;
31-
exclusiveMinimum?: boolean;
32-
exclusiveMaximum?: boolean;
32+
exclusiveMinimum?: boolean | number;
33+
exclusiveMaximum?: boolean | number;
3334
multipleOf?: number;
3435
required?: string[];
3536
$ref?: string;
@@ -40,11 +41,19 @@ export interface IJSONSchema {
4041
enum?: any[];
4142
format?: string;
4243

44+
// schema draft 06
45+
const?: any;
46+
contains?: IJSONSchema;
47+
propertyNames?: IJSONSchema;
48+
49+
// VSCode extensions
4350
defaultSnippets?: IJSONSchemaSnippet[]; // VSCode extension
4451
errorMessage?: string; // VSCode extension
4552
patternErrorMessage?: string; // VSCode extension
4653
deprecationMessage?: string; // VSCode extension
4754
enumDescriptions?: string[]; // VSCode extension
55+
markdownEnumDescriptions?: string[]; // VSCode extension
56+
markdownDescription?: string; // VSCode extension
4857
doNotSuggest?: boolean; // VSCode extension
4958
}
5059

0 commit comments

Comments
 (0)