vscode-json-languageservice 5.1.1 → 5.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/esm/jsonContributions.d.ts +2 -3
- package/lib/esm/jsonLanguageService.d.ts +1 -1
- package/lib/esm/jsonLanguageTypes.d.ts +2 -2
- package/lib/esm/jsonSchema.d.ts +1 -1
- package/lib/esm/parser/jsonParser.js +70 -71
- package/lib/esm/services/configuration.js +47 -51
- package/lib/esm/services/jsonCompletion.js +9 -13
- package/lib/esm/services/jsonSchemaService.js +11 -12
- package/lib/esm/services/jsonValidation.js +2 -3
- package/lib/umd/jsonContributions.d.ts +2 -3
- package/lib/umd/jsonLanguageService.d.ts +1 -1
- package/lib/umd/jsonLanguageTypes.d.ts +2 -2
- package/lib/umd/jsonSchema.d.ts +1 -1
- package/lib/umd/parser/jsonParser.js +71 -72
- package/lib/umd/services/configuration.js +48 -52
- package/lib/umd/services/jsonCompletion.js +10 -14
- package/lib/umd/services/jsonSchemaService.js +12 -13
- package/lib/umd/services/jsonValidation.js +3 -4
- package/package.json +11 -14
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as
|
|
6
|
-
const localize = nls.loadMessageBundle();
|
|
5
|
+
import * as l10n from '@vscode/l10n';
|
|
7
6
|
export const schemaContributions = {
|
|
8
7
|
schemaAssociations: [],
|
|
9
8
|
schemas: {
|
|
@@ -463,52 +462,52 @@ export const schemaContributions = {
|
|
|
463
462
|
}
|
|
464
463
|
};
|
|
465
464
|
const descriptions = {
|
|
466
|
-
id:
|
|
467
|
-
$schema:
|
|
468
|
-
title:
|
|
469
|
-
description:
|
|
470
|
-
default:
|
|
471
|
-
multipleOf:
|
|
472
|
-
maximum:
|
|
473
|
-
exclusiveMaximum:
|
|
474
|
-
minimum:
|
|
475
|
-
exclusiveMinimum:
|
|
476
|
-
maxLength:
|
|
477
|
-
minLength:
|
|
478
|
-
pattern:
|
|
479
|
-
additionalItems:
|
|
480
|
-
items:
|
|
481
|
-
maxItems:
|
|
482
|
-
minItems:
|
|
483
|
-
uniqueItems:
|
|
484
|
-
maxProperties:
|
|
485
|
-
minProperties:
|
|
486
|
-
required:
|
|
487
|
-
additionalProperties:
|
|
488
|
-
definitions:
|
|
489
|
-
properties:
|
|
490
|
-
patternProperties:
|
|
491
|
-
dependencies:
|
|
492
|
-
enum:
|
|
493
|
-
type:
|
|
494
|
-
format:
|
|
495
|
-
allOf:
|
|
496
|
-
anyOf:
|
|
497
|
-
oneOf:
|
|
498
|
-
not:
|
|
499
|
-
$id:
|
|
500
|
-
$ref:
|
|
501
|
-
$comment:
|
|
502
|
-
readOnly:
|
|
503
|
-
examples:
|
|
504
|
-
contains:
|
|
505
|
-
propertyNames:
|
|
506
|
-
const:
|
|
507
|
-
contentMediaType:
|
|
508
|
-
contentEncoding:
|
|
509
|
-
if:
|
|
510
|
-
then:
|
|
511
|
-
else:
|
|
465
|
+
id: l10n.t("A unique identifier for the schema."),
|
|
466
|
+
$schema: l10n.t("The schema to verify this document against."),
|
|
467
|
+
title: l10n.t("A descriptive title of the element."),
|
|
468
|
+
description: l10n.t("A long description of the element. Used in hover menus and suggestions."),
|
|
469
|
+
default: l10n.t("A default value. Used by suggestions."),
|
|
470
|
+
multipleOf: l10n.t("A number that should cleanly divide the current value (i.e. have no remainder)."),
|
|
471
|
+
maximum: l10n.t("The maximum numerical value, inclusive by default."),
|
|
472
|
+
exclusiveMaximum: l10n.t("Makes the maximum property exclusive."),
|
|
473
|
+
minimum: l10n.t("The minimum numerical value, inclusive by default."),
|
|
474
|
+
exclusiveMinimum: l10n.t("Makes the minimum property exclusive."),
|
|
475
|
+
maxLength: l10n.t("The maximum length of a string."),
|
|
476
|
+
minLength: l10n.t("The minimum length of a string."),
|
|
477
|
+
pattern: l10n.t("A regular expression to match the string against. It is not implicitly anchored."),
|
|
478
|
+
additionalItems: l10n.t("For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),
|
|
479
|
+
items: l10n.t("For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),
|
|
480
|
+
maxItems: l10n.t("The maximum number of items that can be inside an array. Inclusive."),
|
|
481
|
+
minItems: l10n.t("The minimum number of items that can be inside an array. Inclusive."),
|
|
482
|
+
uniqueItems: l10n.t("If all of the items in the array must be unique. Defaults to false."),
|
|
483
|
+
maxProperties: l10n.t("The maximum number of properties an object can have. Inclusive."),
|
|
484
|
+
minProperties: l10n.t("The minimum number of properties an object can have. Inclusive."),
|
|
485
|
+
required: l10n.t("An array of strings that lists the names of all properties required on this object."),
|
|
486
|
+
additionalProperties: l10n.t("Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),
|
|
487
|
+
definitions: l10n.t("Not used for validation. Place subschemas here that you wish to reference inline with $ref."),
|
|
488
|
+
properties: l10n.t("A map of property names to schemas for each property."),
|
|
489
|
+
patternProperties: l10n.t("A map of regular expressions on property names to schemas for matching properties."),
|
|
490
|
+
dependencies: l10n.t("A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),
|
|
491
|
+
enum: l10n.t("The set of literal values that are valid."),
|
|
492
|
+
type: l10n.t("Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),
|
|
493
|
+
format: l10n.t("Describes the format expected for the value."),
|
|
494
|
+
allOf: l10n.t("An array of schemas, all of which must match."),
|
|
495
|
+
anyOf: l10n.t("An array of schemas, where at least one must match."),
|
|
496
|
+
oneOf: l10n.t("An array of schemas, exactly one of which must match."),
|
|
497
|
+
not: l10n.t("A schema which must not match."),
|
|
498
|
+
$id: l10n.t("A unique identifier for the schema."),
|
|
499
|
+
$ref: l10n.t("Reference a definition hosted on any location."),
|
|
500
|
+
$comment: l10n.t("Comments from schema authors to readers or maintainers of the schema."),
|
|
501
|
+
readOnly: l10n.t("Indicates that the value of the instance is managed exclusively by the owning authority."),
|
|
502
|
+
examples: l10n.t("Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),
|
|
503
|
+
contains: l10n.t("An array instance is valid against \"contains\" if at least one of its elements is valid against the given schema."),
|
|
504
|
+
propertyNames: l10n.t("If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),
|
|
505
|
+
const: l10n.t("An instance validates successfully against this keyword if its value is equal to the value of the keyword."),
|
|
506
|
+
contentMediaType: l10n.t("Describes the media type of a string property."),
|
|
507
|
+
contentEncoding: l10n.t("Describes the content encoding of a string property."),
|
|
508
|
+
if: l10n.t("The validation outcome of the \"if\" subschema controls which of the \"then\" or \"else\" keywords are evaluated."),
|
|
509
|
+
then: l10n.t("The \"if\" subschema is used for validation when the \"if\" subschema succeeds."),
|
|
510
|
+
else: l10n.t("The \"else\" subschema is used for validation when the \"if\" subschema fails.")
|
|
512
511
|
};
|
|
513
512
|
for (const schemaName in schemaContributions.schemas) {
|
|
514
513
|
const schema = schemaContributions.schemas[schemaName];
|
|
@@ -521,8 +520,5 @@ for (const schemaName in schemaContributions.schemas) {
|
|
|
521
520
|
if (description) {
|
|
522
521
|
propertyObject['description'] = description;
|
|
523
522
|
}
|
|
524
|
-
else {
|
|
525
|
-
console.log(`${property}: localize('schema.json.${property}', "")`);
|
|
526
|
-
}
|
|
527
523
|
}
|
|
528
524
|
}
|
|
@@ -8,8 +8,7 @@ import { stringifyObject } from '../utils/json';
|
|
|
8
8
|
import { endsWith, extendedRegExp } from '../utils/strings';
|
|
9
9
|
import { isDefined } from '../utils/objects';
|
|
10
10
|
import { CompletionItem, CompletionItemKind, Range, TextEdit, InsertTextFormat, MarkupKind } from '../jsonLanguageTypes';
|
|
11
|
-
import * as
|
|
12
|
-
const localize = nls.loadMessageBundle();
|
|
11
|
+
import * as l10n from '@vscode/l10n';
|
|
13
12
|
const valueCommitCharacters = [',', '}', ']'];
|
|
14
13
|
const propertyCommitCharacters = [':'];
|
|
15
14
|
export class JSONCompletion {
|
|
@@ -62,16 +61,16 @@ export class JSONCompletion {
|
|
|
62
61
|
overwriteRange = Range.create(document.positionAt(overwriteStart), position);
|
|
63
62
|
}
|
|
64
63
|
const supportsCommitCharacters = false; //this.doesSupportsCommitCharacters(); disabled for now, waiting for new API: https://github.com/microsoft/vscode/issues/42544
|
|
65
|
-
const proposed =
|
|
64
|
+
const proposed = new Map();
|
|
66
65
|
const collector = {
|
|
67
66
|
add: (suggestion) => {
|
|
68
67
|
let label = suggestion.label;
|
|
69
|
-
const existing = proposed
|
|
68
|
+
const existing = proposed.get(label);
|
|
70
69
|
if (!existing) {
|
|
71
70
|
label = label.replace(/[\n]/g, '↵');
|
|
72
71
|
if (label.length > 60) {
|
|
73
72
|
const shortendedLabel = label.substr(0, 57).trim() + '...';
|
|
74
|
-
if (!proposed
|
|
73
|
+
if (!proposed.has(shortendedLabel)) {
|
|
75
74
|
label = shortendedLabel;
|
|
76
75
|
}
|
|
77
76
|
}
|
|
@@ -82,7 +81,7 @@ export class JSONCompletion {
|
|
|
82
81
|
suggestion.commitCharacters = suggestion.kind === CompletionItemKind.Property ? propertyCommitCharacters : valueCommitCharacters;
|
|
83
82
|
}
|
|
84
83
|
suggestion.label = label;
|
|
85
|
-
proposed
|
|
84
|
+
proposed.set(label, suggestion);
|
|
86
85
|
result.items.push(suggestion);
|
|
87
86
|
}
|
|
88
87
|
else {
|
|
@@ -100,9 +99,6 @@ export class JSONCompletion {
|
|
|
100
99
|
error: (message) => {
|
|
101
100
|
console.error(message);
|
|
102
101
|
},
|
|
103
|
-
log: (message) => {
|
|
104
|
-
console.log(message);
|
|
105
|
-
},
|
|
106
102
|
getNumberOfProposals: () => {
|
|
107
103
|
return result.items.length;
|
|
108
104
|
}
|
|
@@ -135,7 +131,7 @@ export class JSONCompletion {
|
|
|
135
131
|
const properties = node.properties;
|
|
136
132
|
properties.forEach(p => {
|
|
137
133
|
if (!currentProperty || currentProperty !== p) {
|
|
138
|
-
proposed
|
|
134
|
+
proposed.set(p.keyNode.value, CompletionItem.create('__'));
|
|
139
135
|
}
|
|
140
136
|
});
|
|
141
137
|
let separatorAfter = '';
|
|
@@ -514,7 +510,7 @@ export class JSONCompletion {
|
|
|
514
510
|
label: this.getLabelForValue(value),
|
|
515
511
|
insertText: this.getInsertTextForValue(value, separatorAfter),
|
|
516
512
|
insertTextFormat: InsertTextFormat.Snippet,
|
|
517
|
-
detail:
|
|
513
|
+
detail: l10n.t('Default value')
|
|
518
514
|
});
|
|
519
515
|
hasProposals = true;
|
|
520
516
|
}
|
|
@@ -631,7 +627,7 @@ export class JSONCompletion {
|
|
|
631
627
|
label: '{}',
|
|
632
628
|
insertText: this.getInsertTextForGuessedValue({}, separatorAfter),
|
|
633
629
|
insertTextFormat: InsertTextFormat.Snippet,
|
|
634
|
-
detail:
|
|
630
|
+
detail: l10n.t('New object'),
|
|
635
631
|
documentation: ''
|
|
636
632
|
});
|
|
637
633
|
}
|
|
@@ -641,7 +637,7 @@ export class JSONCompletion {
|
|
|
641
637
|
label: '[]',
|
|
642
638
|
insertText: this.getInsertTextForGuessedValue([], separatorAfter),
|
|
643
639
|
insertTextFormat: InsertTextFormat.Snippet,
|
|
644
|
-
detail:
|
|
640
|
+
detail: l10n.t('New array'),
|
|
645
641
|
documentation: ''
|
|
646
642
|
});
|
|
647
643
|
}
|
|
@@ -6,10 +6,9 @@ import * as Json from 'jsonc-parser';
|
|
|
6
6
|
import { URI } from 'vscode-uri';
|
|
7
7
|
import * as Strings from '../utils/strings';
|
|
8
8
|
import * as Parser from '../parser/jsonParser';
|
|
9
|
-
import * as
|
|
9
|
+
import * as l10n from '@vscode/l10n';
|
|
10
10
|
import { createRegex } from '../utils/glob';
|
|
11
11
|
import { isObject, isString } from '../utils/objects';
|
|
12
|
-
const localize = nls.loadMessageBundle();
|
|
13
12
|
const BANG = '!';
|
|
14
13
|
const PATH_SEP = '/';
|
|
15
14
|
class FilePatternAssociation {
|
|
@@ -250,24 +249,24 @@ export class JSONSchemaService {
|
|
|
250
249
|
}
|
|
251
250
|
loadSchema(url) {
|
|
252
251
|
if (!this.requestService) {
|
|
253
|
-
const errorMessage =
|
|
252
|
+
const errorMessage = l10n.t('Unable to load schema from \'{0}\'. No schema request service available', toDisplayString(url));
|
|
254
253
|
return this.promise.resolve(new UnresolvedSchema({}, [errorMessage]));
|
|
255
254
|
}
|
|
256
255
|
return this.requestService(url).then(content => {
|
|
257
256
|
if (!content) {
|
|
258
|
-
const errorMessage =
|
|
257
|
+
const errorMessage = l10n.t('Unable to load schema from \'{0}\': No content.', toDisplayString(url));
|
|
259
258
|
return new UnresolvedSchema({}, [errorMessage]);
|
|
260
259
|
}
|
|
261
260
|
const errors = [];
|
|
262
261
|
if (content.charCodeAt(0) === 65279) {
|
|
263
|
-
errors.push(
|
|
262
|
+
errors.push(l10n.t('Problem reading content from \'{0}\': UTF-8 with BOM detected, only UTF 8 is allowed.', toDisplayString(url)));
|
|
264
263
|
content = content.trimStart();
|
|
265
264
|
}
|
|
266
265
|
let schemaContent = {};
|
|
267
266
|
const jsonErrors = [];
|
|
268
267
|
schemaContent = Json.parse(content, jsonErrors);
|
|
269
268
|
if (jsonErrors.length) {
|
|
270
|
-
errors.push(
|
|
269
|
+
errors.push(l10n.t('Unable to parse content from \'{0}\': Parse error at offset {1}.', toDisplayString(url), jsonErrors[0].offset));
|
|
271
270
|
}
|
|
272
271
|
return new UnresolvedSchema(schemaContent, errors);
|
|
273
272
|
}, (error) => {
|
|
@@ -280,7 +279,7 @@ export class JSONSchemaService {
|
|
|
280
279
|
if (Strings.endsWith(errorMessage, '.')) {
|
|
281
280
|
errorMessage = errorMessage.substr(0, errorMessage.length - 1);
|
|
282
281
|
}
|
|
283
|
-
return new UnresolvedSchema({}, [
|
|
282
|
+
return new UnresolvedSchema({}, [l10n.t('Unable to load schema from \'{0}\': {1}.', toDisplayString(url), errorMessage)]);
|
|
284
283
|
});
|
|
285
284
|
}
|
|
286
285
|
resolveSchemaContent(schemaToResolve, handle) {
|
|
@@ -288,7 +287,7 @@ export class JSONSchemaService {
|
|
|
288
287
|
const schema = schemaToResolve.schema;
|
|
289
288
|
let schemaDraft = schema.$schema ? normalizeId(schema.$schema) : undefined;
|
|
290
289
|
if (schemaDraft === 'http://json-schema.org/draft-03/schema') {
|
|
291
|
-
return this.promise.resolve(new ResolvedSchema({}, [
|
|
290
|
+
return this.promise.resolve(new ResolvedSchema({}, [l10n.t("Draft-03 schemas are not supported.")], [], schemaDraft));
|
|
292
291
|
}
|
|
293
292
|
let usesUnsupportedFeatures = new Set();
|
|
294
293
|
const contextService = this.contextService;
|
|
@@ -335,7 +334,7 @@ export class JSONSchemaService {
|
|
|
335
334
|
merge(target, section);
|
|
336
335
|
}
|
|
337
336
|
else {
|
|
338
|
-
resolveErrors.push(
|
|
337
|
+
resolveErrors.push(l10n.t('$ref \'{0}\' in \'{1}\' can not be resolved.', refSegment || '', sourceHandle.uri));
|
|
339
338
|
}
|
|
340
339
|
};
|
|
341
340
|
const resolveExternalLink = (node, uri, refSegment, parentHandle) => {
|
|
@@ -348,7 +347,7 @@ export class JSONSchemaService {
|
|
|
348
347
|
parentHandle.dependencies.add(uri);
|
|
349
348
|
if (unresolvedSchema.errors.length) {
|
|
350
349
|
const loc = refSegment ? uri + '#' + refSegment : uri;
|
|
351
|
-
resolveErrors.push(
|
|
350
|
+
resolveErrors.push(l10n.t('Problems loading reference \'{0}\': {1}', loc, unresolvedSchema.errors[0]));
|
|
352
351
|
}
|
|
353
352
|
mergeRef(node, unresolvedSchema.schema, referencedHandle, refSegment);
|
|
354
353
|
return resolveRefs(node, unresolvedSchema.schema, referencedHandle);
|
|
@@ -392,7 +391,7 @@ export class JSONSchemaService {
|
|
|
392
391
|
const anchor = isString(id) && id.charAt(0) === '#' ? id.substring(1) : next.$anchor;
|
|
393
392
|
if (anchor) {
|
|
394
393
|
if (result.has(anchor)) {
|
|
395
|
-
resolveErrors.push(
|
|
394
|
+
resolveErrors.push(l10n.t('Duplicate anchor declaration: \'{0}\'', anchor));
|
|
396
395
|
}
|
|
397
396
|
else {
|
|
398
397
|
result.set(anchor, next);
|
|
@@ -410,7 +409,7 @@ export class JSONSchemaService {
|
|
|
410
409
|
return resolveRefs(schema, schema, handle).then(_ => {
|
|
411
410
|
let resolveWarnings = [];
|
|
412
411
|
if (usesUnsupportedFeatures.size) {
|
|
413
|
-
resolveWarnings.push(
|
|
412
|
+
resolveWarnings.push(l10n.t('The schema uses meta-schema features ({0}) that are not yet supported by the validator.', Array.from(usesUnsupportedFeatures.keys()).join(', ')));
|
|
414
413
|
}
|
|
415
414
|
return new ResolvedSchema(schema, resolveErrors, resolveWarnings, schemaDraft);
|
|
416
415
|
});
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ErrorCode, Diagnostic, DiagnosticSeverity, Range } from '../jsonLanguageTypes';
|
|
6
|
-
import * as
|
|
6
|
+
import * as l10n from '@vscode/l10n';
|
|
7
7
|
import { isBoolean } from '../utils/objects';
|
|
8
|
-
const localize = nls.loadMessageBundle();
|
|
9
8
|
export class JSONValidation {
|
|
10
9
|
constructor(jsonSchemaService, promiseConstructor) {
|
|
11
10
|
this.jsonSchemaService = jsonSchemaService;
|
|
@@ -82,7 +81,7 @@ export class JSONValidation {
|
|
|
82
81
|
addProblem(p);
|
|
83
82
|
}
|
|
84
83
|
if (typeof commentSeverity === 'number') {
|
|
85
|
-
const message =
|
|
84
|
+
const message = l10n.t('Comments are not permitted in JSON.');
|
|
86
85
|
jsonDocument.comments.forEach(c => {
|
|
87
86
|
addProblem(Diagnostic.create(c, message, commentSeverity, ErrorCode.CommentNotPermitted));
|
|
88
87
|
});
|
|
@@ -6,12 +6,11 @@ export interface JSONWorkerContribution {
|
|
|
6
6
|
collectDefaultCompletions(uri: string, result: CompletionsCollector): Thenable<any>;
|
|
7
7
|
resolveCompletion?(item: CompletionItem): Thenable<CompletionItem>;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export type Segment = string | number;
|
|
10
|
+
export type JSONPath = Segment[];
|
|
11
11
|
export interface CompletionsCollector {
|
|
12
12
|
add(suggestion: CompletionItem): void;
|
|
13
13
|
error(message: string): void;
|
|
14
|
-
log(message: string): void;
|
|
15
14
|
setAsIncomplete(): void;
|
|
16
15
|
getNumberOfProposals(): number;
|
|
17
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Thenable, ASTNode, Color, ColorInformation, ColorPresentation, LanguageServiceParams, LanguageSettings, DocumentLanguageSettings, FoldingRange, JSONSchema, SelectionRange, FoldingRangesContext, DocumentSymbolsContext, ColorInformationContext as DocumentColorsContext, TextDocument, Position, CompletionItem, CompletionList, Hover, Range, SymbolInformation, Diagnostic, TextEdit, FormattingOptions, DocumentSymbol, DefinitionLink, MatchingSchema, JSONLanguageStatus } from './jsonLanguageTypes';
|
|
2
2
|
import { DocumentLink } from 'vscode-languageserver-types';
|
|
3
|
-
export
|
|
3
|
+
export type JSONDocument = {
|
|
4
4
|
root: ASTNode | undefined;
|
|
5
5
|
getNodeFromOffset(offset: number, includeRightBound?: boolean): ASTNode | undefined;
|
|
6
6
|
};
|
|
@@ -28,7 +28,7 @@ export declare enum ErrorCode {
|
|
|
28
28
|
SchemaResolveError = 768,
|
|
29
29
|
SchemaUnsupportedFeature = 769
|
|
30
30
|
}
|
|
31
|
-
export
|
|
31
|
+
export type ASTNode = ObjectASTNode | PropertyASTNode | ArrayASTNode | StringASTNode | NumberASTNode | BooleanASTNode | NullASTNode;
|
|
32
32
|
export interface BaseASTNode {
|
|
33
33
|
readonly type: 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null';
|
|
34
34
|
readonly parent?: ASTNode;
|
|
@@ -93,7 +93,7 @@ export interface LanguageSettings {
|
|
|
93
93
|
*/
|
|
94
94
|
schemas?: SchemaConfiguration[];
|
|
95
95
|
}
|
|
96
|
-
export
|
|
96
|
+
export type SeverityLevel = 'error' | 'warning' | 'ignore';
|
|
97
97
|
export declare enum SchemaDraft {
|
|
98
98
|
v3 = 3,
|
|
99
99
|
v4 = 4,
|
package/lib/umd/jsonSchema.d.ts
CHANGED