Skip to content

Commit

Permalink
update json schema (#150001)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli authored May 22, 2022
1 parent f1b392e commit c076927
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/vs/base/common/jsonSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,35 @@ export interface IJSONSchema {
const?: any;
contains?: IJSONSchema;
propertyNames?: IJSONSchema;
examples?: any[];

// schema draft 07
$comment?: string;
if?: IJSONSchema;
then?: IJSONSchema;
else?: IJSONSchema;

// VS Code extensions
// schema 2019-09
unevaluatedProperties?: boolean | IJSONSchema;
unevaluatedItems?: boolean | IJSONSchema;
minContains?: number;
maxContains?: number;
deprecated?: boolean;
dependentRequired?: { [prop: string]: string[] };
dependentSchemas?: IJSONSchemaMap;
$defs?: { [name: string]: IJSONSchema };
$anchor?: string;
$recursiveRef?: string;
$recursiveAnchor?: string;
$vocabulary?: any;

// schema 2020-12
prefixItems?: IJSONSchema[];
$dynamicRef?: string;
$dynamicAnchor?: string;

// VSCode extensions

defaultSnippets?: IJSONSchemaSnippet[];
errorMessage?: string;
patternErrorMessage?: string;
Expand Down

0 comments on commit c076927

Please sign in to comment.