yaml-language-server 1.19.1-fce910a.0 → 1.19.1
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/CHANGELOG.md +27 -0
- package/Dockerfile +2 -2
- package/README.md +3 -3
- package/l10n/bundle.l10n.de.json +56 -0
- package/l10n/bundle.l10n.fr.json +56 -0
- package/l10n/bundle.l10n.ja.json +56 -0
- package/l10n/bundle.l10n.json +56 -0
- package/l10n/bundle.l10n.ko.json +56 -0
- package/l10n/bundle.l10n.zh-cn.json +56 -0
- package/l10n/bundle.l10n.zh-tw.json +56 -0
- package/lib/esm/languageservice/jsonASTTypes.d.ts +2 -2
- package/lib/esm/languageservice/jsonSchema.d.ts +1 -1
- package/lib/esm/languageservice/parser/ast-converter.d.ts +7 -2
- package/lib/esm/languageservice/parser/ast-converter.js +20 -12
- package/lib/esm/languageservice/parser/ast-converter.js.map +1 -1
- package/lib/esm/languageservice/parser/jsonParser07.js +38 -45
- package/lib/esm/languageservice/parser/jsonParser07.js.map +1 -1
- package/lib/esm/languageservice/parser/yamlParser07.d.ts +1 -1
- package/lib/esm/languageservice/services/validation/unused-anchors.js +3 -2
- package/lib/esm/languageservice/services/validation/unused-anchors.js.map +1 -1
- package/lib/esm/languageservice/services/validation/yaml-style.js +3 -2
- package/lib/esm/languageservice/services/validation/yaml-style.js.map +1 -1
- package/lib/esm/languageservice/services/yamlCodeActions.js +8 -7
- package/lib/esm/languageservice/services/yamlCodeActions.js.map +1 -1
- package/lib/esm/languageservice/services/yamlCompletion.js +40 -38
- package/lib/esm/languageservice/services/yamlCompletion.js.map +1 -1
- package/lib/esm/languageservice/services/yamlHover.js +11 -4
- package/lib/esm/languageservice/services/yamlHover.js.map +1 -1
- package/lib/esm/languageservice/services/yamlSchemaService.js +31 -8
- package/lib/esm/languageservice/services/yamlSchemaService.js.map +1 -1
- package/lib/esm/languageservice/yamlTypes.d.ts +1 -1
- package/lib/esm/requestTypes.d.ts +1 -1
- package/lib/esm/server.js +0 -3
- package/lib/esm/server.js.map +1 -1
- package/lib/esm/yamlServerInit.d.ts +2 -1
- package/lib/esm/yamlServerInit.js +24 -2
- package/lib/esm/yamlServerInit.js.map +1 -1
- package/lib/esm/yamlSettings.d.ts +1 -1
- package/lib/esm/yamlSettings.js.map +1 -1
- package/lib/umd/languageservice/jsonASTTypes.d.ts +2 -2
- package/lib/umd/languageservice/jsonSchema.d.ts +1 -1
- package/lib/umd/languageservice/parser/ast-converter.d.ts +7 -2
- package/lib/umd/languageservice/parser/ast-converter.js +21 -13
- package/lib/umd/languageservice/parser/ast-converter.js.map +1 -1
- package/lib/umd/languageservice/parser/jsonParser07.js +39 -46
- package/lib/umd/languageservice/parser/jsonParser07.js.map +1 -1
- package/lib/umd/languageservice/parser/yamlParser07.d.ts +1 -1
- package/lib/umd/languageservice/services/validation/unused-anchors.js +4 -3
- package/lib/umd/languageservice/services/validation/unused-anchors.js.map +1 -1
- package/lib/umd/languageservice/services/validation/yaml-style.js +4 -3
- package/lib/umd/languageservice/services/validation/yaml-style.js.map +1 -1
- package/lib/umd/languageservice/services/yamlCodeActions.js +9 -8
- package/lib/umd/languageservice/services/yamlCodeActions.js.map +1 -1
- package/lib/umd/languageservice/services/yamlCompletion.js +41 -39
- package/lib/umd/languageservice/services/yamlCompletion.js.map +1 -1
- package/lib/umd/languageservice/services/yamlHover.js +12 -5
- package/lib/umd/languageservice/services/yamlHover.js.map +1 -1
- package/lib/umd/languageservice/services/yamlSchemaService.js +32 -9
- package/lib/umd/languageservice/services/yamlSchemaService.js.map +1 -1
- package/lib/umd/languageservice/yamlTypes.d.ts +1 -1
- package/lib/umd/requestTypes.d.ts +1 -1
- package/lib/umd/server.js +1 -4
- package/lib/umd/server.js.map +1 -1
- package/lib/umd/yamlServerInit.d.ts +2 -1
- package/lib/umd/yamlServerInit.js +25 -3
- package/lib/umd/yamlServerInit.js.map +1 -1
- package/lib/umd/yamlSettings.d.ts +1 -1
- package/lib/umd/yamlSettings.js.map +1 -1
- package/out/server/src/languageservice/jsonASTTypes.d.ts +2 -2
- package/out/server/src/languageservice/jsonSchema.d.ts +1 -1
- package/out/server/src/languageservice/parser/ast-converter.d.ts +7 -2
- package/out/server/src/languageservice/parser/ast-converter.js +21 -13
- package/out/server/src/languageservice/parser/ast-converter.js.map +1 -1
- package/out/server/src/languageservice/parser/jsonParser07.js +38 -45
- package/out/server/src/languageservice/parser/jsonParser07.js.map +1 -1
- package/out/server/src/languageservice/parser/yamlParser07.d.ts +1 -1
- package/out/server/src/languageservice/services/validation/unused-anchors.js +3 -2
- package/out/server/src/languageservice/services/validation/unused-anchors.js.map +1 -1
- package/out/server/src/languageservice/services/validation/yaml-style.js +3 -2
- package/out/server/src/languageservice/services/validation/yaml-style.js.map +1 -1
- package/out/server/src/languageservice/services/yamlCodeActions.js +8 -7
- package/out/server/src/languageservice/services/yamlCodeActions.js.map +1 -1
- package/out/server/src/languageservice/services/yamlCompletion.js +40 -38
- package/out/server/src/languageservice/services/yamlCompletion.js.map +1 -1
- package/out/server/src/languageservice/services/yamlHover.js +11 -4
- package/out/server/src/languageservice/services/yamlHover.js.map +1 -1
- package/out/server/src/languageservice/services/yamlSchemaService.js +31 -8
- package/out/server/src/languageservice/services/yamlSchemaService.js.map +1 -1
- package/out/server/src/languageservice/yamlTypes.d.ts +1 -1
- package/out/server/src/requestTypes.d.ts +1 -1
- package/out/server/src/server.js +0 -3
- package/out/server/src/server.js.map +1 -1
- package/out/server/src/yamlServerInit.d.ts +2 -1
- package/out/server/src/yamlServerInit.js +24 -2
- package/out/server/src/yamlServerInit.js.map +1 -1
- package/out/server/src/yamlSettings.d.ts +1 -1
- package/out/server/src/yamlSettings.js.map +1 -1
- package/out/server/test/autoCompletion.test.js +146 -76
- package/out/server/test/autoCompletion.test.js.map +1 -1
- package/out/server/test/bundlel10n.test.d.ts +1 -0
- package/out/server/test/bundlel10n.test.js +72 -0
- package/out/server/test/bundlel10n.test.js.map +1 -0
- package/out/server/test/hover.test.js +103 -0
- package/out/server/test/hover.test.js.map +1 -1
- package/out/server/test/utils/testHelper.js +5 -0
- package/out/server/test/utils/testHelper.js.map +1 -1
- package/out/server/test/utils/verifyError.d.ts +1 -1
- package/out/server/test/utils/verifyError.js.map +1 -1
- package/out/server/test/yamlParser.test.js +61 -0
- package/out/server/test/yamlParser.test.js.map +1 -1
- package/out/server/test/yamlSelectionRanges.test.js +1 -1
- package/package.json +10 -10
- package/eslint-result.sarif +0 -3656
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
### 1.19.1
|
|
2
|
+
- Feat: Support formatting docker-compose.yml by default [#1071](https://github.com/redhat-developer/yaml-language-server/issues/1071)
|
|
3
|
+
- Feat: Support statically registering format support [#1062](https://github.com/redhat-developer/yaml-language-server/pull/1062)
|
|
4
|
+
- Feat: Support localization in the YAML language server [#1081](https://github.com/redhat-developer/yaml-language-server/issues/1081)
|
|
5
|
+
- Feat: Migrated to NPM [#1097](https://github.com/redhat-developer/yaml-language-server/issues/1097)
|
|
6
|
+
- Feat: Add formatting option to remove trailing comma [#1112](https://github.com/redhat-developer/vscode-yaml/issues/1112)
|
|
7
|
+
- Fix: OpenAPI 3.0.0 specification is treated as invalid [#752](https://github.com/redhat-developer/yaml-language-server/issues/752)
|
|
8
|
+
- Fix: YAML Language Server checks against JSON Schema Draft 7 instead of the defined one [#780](https://github.com/redhat-developer/yaml-language-server/issues/780)
|
|
9
|
+
- Fix: Numbers in comments should not break schema validation [#922](https://github.com/redhat-developer/yaml-language-server/issues/922)
|
|
10
|
+
- Fix: Make enum values easier to read on hover [#982](https://github.com/redhat-developer/yaml-language-server/issues/982)
|
|
11
|
+
- Fix: No more quickfix for indent with tab [#1052](https://github.com/redhat-developer/yaml-language-server/issues/1052)
|
|
12
|
+
- Fix: QuickFix for "flow sequence forbidden" leaves in trailing `]` [#1060](https://github.com/redhat-developer/yaml-language-server/issues/1060)
|
|
13
|
+
- Fix: YAML conversion does not resolve aliases correctly [#1075](https://github.com/redhat-developer/yaml-language-server/issues/1075)
|
|
14
|
+
- Fix: Fix enum values to be unique [#1028](https://github.com/redhat-developer/yaml-language-server/pull/1028)
|
|
15
|
+
- Fix: Using bool values in enum and const generates a validation error for valid values [#1078](https://github.com/redhat-developer/yaml-language-server/issues/1078)
|
|
16
|
+
- Fix: improve enum value descriptions for merged enum lists [#1085](https://github.com/redhat-developer/yaml-language-server/pull/1085)
|
|
17
|
+
- Fix: Array of const completion [#1092](https://github.com/redhat-developer/yaml-language-server/pull/1092)
|
|
18
|
+
- Fix: Error for missing anchor (unidentified alias) broken since 1.0 [#1098](https://github.com/redhat-developer/vscode-yaml/issues/1098)
|
|
19
|
+
- Fix: Invalid tab indentation error [#1110](https://github.com/redhat-developer/vscode-yaml/issues/1110)
|
|
20
|
+
- Fix: Validation shows false negative errors if using boolean with const [#1116](https://github.com/redhat-developer/vscode-yaml/issues/1116)
|
|
21
|
+
- Fix: Broken link to JSON Schema website [#1113](https://github.com/redhat-developer/yaml-language-server/pull/1113)
|
|
22
|
+
- Fix: GitHub Actions release process was broken [#1127](https://github.com/redhat-developer/yaml-language-server/pull/1127), [#1128](https://github.com/redhat-developer/yaml-language-server/issues/1128)
|
|
23
|
+
- Bump: ajv version [#1067](https://github.com/redhat-developer/yaml-language-server/pull/1067)
|
|
24
|
+
|
|
25
|
+
Thanks to [Trevor Dixon](https://github.com/trevordixon), [David Lechner](https://github.com/dlech), [pjsk-stripe](https://github.com/pjsk-stripe), [Lucy Dryaeva
|
|
26
|
+
](https://github.com/ShadiestGoat), [Kosta](https://github.com/Kosta-Github) and [August Johansson ](https://github.com/webdevred) for your contributions.
|
|
27
|
+
|
|
1
28
|
### 1.18.0
|
|
2
29
|
- Feat: Do not suggest propertyNames if doNotSuggest is true [#1045](https://github.com/redhat-developer/yaml-language-server/pull/1045)
|
|
3
30
|
- Feat: Exclude not suggest properties from possible properties error [#1051](https://github.com/redhat-developer/yaml-language-server/pull/1051)
|
package/Dockerfile
CHANGED
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ The following settings are supported:
|
|
|
39
39
|
- `yaml.hover`: Enable/disable hover
|
|
40
40
|
- `yaml.completion`: Enable/disable autocompletion
|
|
41
41
|
- `yaml.schemas`: Helps you associate schemas with files in a glob pattern
|
|
42
|
-
- `yaml.schemaStore.enable`: When set to true the YAML language server will pull in all available schemas from [JSON Schema Store](https://www.schemastore.org
|
|
42
|
+
- `yaml.schemaStore.enable`: When set to true the YAML language server will pull in all available schemas from [JSON Schema Store](https://www.schemastore.org)
|
|
43
43
|
- `yaml.schemaStore.url`: URL of a schema store catalog to use when downloading schemas.
|
|
44
44
|
- `yaml.customTags`: Array of custom tags that the parser will validate against. It has two ways to be used. Either an item in the array is a custom tag such as "!Ref" and it will automatically map !Ref to scalar or you can specify the type of the object !Ref should be e.g. "!Ref sequence". The type of object can be either scalar (for strings and booleans), sequence (for arrays), map (for objects).
|
|
45
45
|
- `yaml.maxItemsComputed`: The maximum number of outline symbols and folding regions computed (limited for performance reasons).
|
|
@@ -400,11 +400,11 @@ This repository only contains the server implementation. Here are some known cli
|
|
|
400
400
|
3. Install the dependencies
|
|
401
401
|
```bash
|
|
402
402
|
cd yaml-language-server
|
|
403
|
-
$
|
|
403
|
+
$ npm install
|
|
404
404
|
```
|
|
405
405
|
4. Build the language server
|
|
406
406
|
```bash
|
|
407
|
-
$
|
|
407
|
+
$ npm run build
|
|
408
408
|
```
|
|
409
409
|
5. The new built server is now located in ./out/server/src/server.js.
|
|
410
410
|
```bash
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Default Value": "Standardwert",
|
|
3
|
+
"json.schema.invalidref": "$ref '{0}' in '{1}' kann nicht aufgelöst werden.",
|
|
4
|
+
"json.schema.problemloadingref": "Probleme beim Laden der Referenz '{0}': {1}",
|
|
5
|
+
"json.schema.nocontent": "Schema konnte nicht von '{0}' geladen werden: Kein Inhalt.",
|
|
6
|
+
"json.schema.invalidFormat": "Inhalt von '{0}' konnte nicht analysiert werden: Analysefehler in Zeile:{1}, Spalte:{2}",
|
|
7
|
+
"colorHexFormatWarning": "Ungültiges Farbformat. Verwenden Sie #RGB, #RGBA, #RRGGBB oder #RRGGBBAA.",
|
|
8
|
+
"dateTimeFormatWarning": "Zeichenfolge ist kein RFC3339-Datum-Zeit-Wert.",
|
|
9
|
+
"dateFormatWarning": "Zeichenfolge ist kein RFC3339-Datum.",
|
|
10
|
+
"timeFormatWarning": "Zeichenfolge ist keine RFC3339-Zeit.",
|
|
11
|
+
"emailFormatWarning": "Zeichenfolge ist keine E-Mail-Adresse.",
|
|
12
|
+
"ipv4FormatWarning": "Zeichenfolge entspricht nicht dem IPv4-Format.",
|
|
13
|
+
"ipv6FormatWarning": "Zeichenfolge entspricht nicht dem IPv6-Format.",
|
|
14
|
+
"enumWarning": "Wert wird nicht akzeptiert. Gültige Werte: {0}.",
|
|
15
|
+
"typeArrayMismatchWarning": "Falscher Typ. Erwartet wird einer von {0}.",
|
|
16
|
+
"notSchemaWarning": "Entspricht einem Schema, das nicht zulässig ist.",
|
|
17
|
+
"oneOfWarning": "Entspricht mehreren Schemata, obwohl nur eines gültig sein darf.",
|
|
18
|
+
"ifFilePatternAssociation": "filePatternAssociation '{0}' stimmt nicht mit der Dokument-URI '{1}' überein",
|
|
19
|
+
"multipleOfWarning": "Wert ist nicht durch {0} teilbar.",
|
|
20
|
+
"exclusiveMinimumWarning": "Wert liegt unter dem exklusiven Minimum von {0}.",
|
|
21
|
+
"exclusiveMaximumWarning": "Wert liegt über dem exklusiven Maximum von {0}.",
|
|
22
|
+
"minimumWarning": "Wert liegt unter dem Minimum von {0}.",
|
|
23
|
+
"maximumWarning": "Wert liegt über dem Maximum von {0}.",
|
|
24
|
+
"minLengthWarning": "Zeichenfolge ist kürzer als die minimale Länge von {0}.",
|
|
25
|
+
"maxLengthWarning": "Zeichenfolge ist länger als die maximale Länge von {0}.",
|
|
26
|
+
"patternWarning": "Zeichenfolge stimmt nicht mit dem Muster \"{0}\" überein.",
|
|
27
|
+
"uriEmpty": "URI erwartet.",
|
|
28
|
+
"uriSchemeMissing": "URI mit Schema wird erwartet.",
|
|
29
|
+
"uriFormatWarning": "Zeichenfolge ist keine gültige URI: {0}",
|
|
30
|
+
"additionalItemsWarning": "Array hat zu viele Elemente laut Schema. Erwartet: {0} oder weniger.",
|
|
31
|
+
"requiredItemMissingWarning": "Array enthält das erforderliche Element nicht.",
|
|
32
|
+
"minItemsWarning": "Array hat zu wenige Elemente. Erwartet: {0} oder mehr.",
|
|
33
|
+
"maxItemsWarning": "Array hat zu viele Elemente. Erwartet: {0} oder weniger.",
|
|
34
|
+
"uniqueItemsWarning": "Array enthält doppelte Elemente.",
|
|
35
|
+
"DisallowedExtraPropWarning": "Eigenschaft {0} ist nicht erlaubt.",
|
|
36
|
+
"MaxPropWarning": "Objekt hat mehr Eigenschaften als das Limit von {0}.",
|
|
37
|
+
"MinPropWarning": "Objekt hat weniger Eigenschaften als die erforderliche Anzahl von {0}.",
|
|
38
|
+
"RequiredDependentPropWarning": "Objekt fehlt die Eigenschaft {0}, die von Eigenschaft {1} benötigt wird.",
|
|
39
|
+
"Inline schema": "Inline-Schema",
|
|
40
|
+
"create.item.array": "Ein Element eines Arrays erstellen{0}{1}",
|
|
41
|
+
"array.item": "- (Array-Element) ",
|
|
42
|
+
"allowedValues": "Erlaubte Werte:",
|
|
43
|
+
"example": "Beispiel:",
|
|
44
|
+
"source": "Quelle: [{0}]({1})",
|
|
45
|
+
"jumpToSchema": "Zur Schema-Position springen ({0})",
|
|
46
|
+
"convertToSpace": "Tab in Leerzeichen umwandeln",
|
|
47
|
+
"convertAllSpaceToTab": "Alle Tabs in Leerzeichen umwandeln",
|
|
48
|
+
"deleteUnusedAnchor": "Nicht verwendeten Anker löschen: {0}",
|
|
49
|
+
"convertToBoolean": "In Boolean umwandeln",
|
|
50
|
+
"convertToBlockStyle": "In Blockstil {0} umwandeln",
|
|
51
|
+
"fixKeyOrderToMap": "Schlüsselreihenfolge für diese Map korrigieren",
|
|
52
|
+
"flowStyleMapForbidden": "Flow-Stil-Mapping ist verboten",
|
|
53
|
+
"flowStyleSeqForbidden": "Flow-Stil-Sequenz ist verboten",
|
|
54
|
+
"unUsedAnchor": "Nicht verwendeter Anker \"{0}\"",
|
|
55
|
+
"unUsedAlias": "Nicht aufgelöstes Alias \"{0}\""
|
|
56
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Default Value": "Valeur par défaut",
|
|
3
|
+
"json.schema.invalidref": "$ref '{0}' dans '{1}' ne peut pas être résolu",
|
|
4
|
+
"json.schema.problemloadingref": "Problèmes de chargement de la référence '{0}' : {1}",
|
|
5
|
+
"json.schema.noContent": "Impossible de charger le schéma à partir de {0}: aucun contenu.",
|
|
6
|
+
"json.schema.invalidFormat": "Impossible d’analyser le contenu de {0}: erreur d’analyse à la ligne:{1}, colonne:{2}",
|
|
7
|
+
"colorHexFormatWarning": "Format de couleur non valide. Utilisez #RGB, #RGBA, #RRGGBB ou #RRGGBBAA.",
|
|
8
|
+
"dateTimeFormatWarning": "La chaîne n'est pas une date-heure RFC3339.",
|
|
9
|
+
"dateFormatWarning": "La chaîne n'est pas une date RFC3339.",
|
|
10
|
+
"timeFormatWarning": "La chaîne n'est pas une heure RFC3339.",
|
|
11
|
+
"emailFormatWarning": "La chaîne n'est pas une adresse e-mail.",
|
|
12
|
+
"ipv4FormatWarning": "La chaîne ne correspond pas au format IPv4.",
|
|
13
|
+
"ipv6FormatWarning": "La chaîne ne correspond pas au format IPv6.",
|
|
14
|
+
"enumWarning": "Valeur non acceptée. Valeurs valides: {0}.",
|
|
15
|
+
"typeArrayMismatchWarning": "Type incorrect. On attend un des {0}.",
|
|
16
|
+
"notSchemaWarning": "Correspond à un schéma qui n'est pas autorisé.",
|
|
17
|
+
"oneOfWarning": "Correspond à plusieurs schémas lorsqu'un seul doit être validé.",
|
|
18
|
+
"ifFilePatternAssociation": "filePatternAssociation '{0}' ne correspond pas à l'URI du document '{1}'",
|
|
19
|
+
"multipleOfWarning": "La valeur n'est pas divisible par {0}.",
|
|
20
|
+
"exclusiveMinimumWarning": "La valeur est inférieure au minimum exclusif de {0}.",
|
|
21
|
+
"exclusiveMaximumWarning": "La valeur est supérieure au maximum exclusif de {0}.",
|
|
22
|
+
"minimumWarning": "La valeur est inférieure au minimum de {0}.",
|
|
23
|
+
"maximumWarning": "La valeur est supérieure au maximum de {0}.",
|
|
24
|
+
"minLengthWarning": "La chaîne est plus courte que la longueur minimale de {0}.",
|
|
25
|
+
"maxLengthWarning": "La chaîne est plus longue que la longueur maximale de {0}.",
|
|
26
|
+
"patternWarning": "La chaîne ne correspond pas au modèle de '{0}'.",
|
|
27
|
+
"uriEmpty": "URI attendu.",
|
|
28
|
+
"uriSchemeMissing": "Une URI avec un schéma est attendue.",
|
|
29
|
+
"uriFormatWarning": "La chaîne n'est pas un URI: {0}",
|
|
30
|
+
"additionalItemsWarning": "Le tableau contient trop d'éléments selon le schéma. Valeur attendue : {0} ou moins.",
|
|
31
|
+
"requiredItemMissingWarning": "Le tableau ne contient pas l'élément requis.",
|
|
32
|
+
"minItemsWarning": "Le tableau contient trop peu d'éléments. On attend {0} ou plus.",
|
|
33
|
+
"maxItemsWarning": "Le tableau contient trop d'éléments. On attend {0} ou moins.",
|
|
34
|
+
"uniqueItemsWarning": "Le tableau contient des éléments en double.",
|
|
35
|
+
"DisallowedExtraPropWarning": "La propriété {0} n'est pas autorisée.",
|
|
36
|
+
"MaxPropWarning": "L'objet a plus de propriétés que la limite de {0}.",
|
|
37
|
+
"MinPropWarning": "L'objet a moins de propriétés que le nombre requis de {0}",
|
|
38
|
+
"RequiredDependentPropWarning": "L'objet ne possède pas la propriété {0} requise par la propriété {1}.",
|
|
39
|
+
"Inline schema": "Schéma en ligne",
|
|
40
|
+
"create.item.array": "Créer un élément d'un tableau {0} {1}",
|
|
41
|
+
"array.item": "- (élément de tableau)",
|
|
42
|
+
"allowedValues": "Valeurs autorisées:",
|
|
43
|
+
"example": "Exemple:",
|
|
44
|
+
"source": "Source: [{0}]{1}",
|
|
45
|
+
"jumpToSchema": "Accéder à l'emplacement du schéma ({0})",
|
|
46
|
+
"convertToSpace": "Convertir les tabulations en espaces",
|
|
47
|
+
"convertAllSpaceToTab": "Convertir toutes les tabulations en espaces",
|
|
48
|
+
"deleteUnusedAnchor": "Supprimer l'ancre inutilisée: {0}",
|
|
49
|
+
"convertToBoolean": "Convertir en booléen",
|
|
50
|
+
"convertToBlockStyle": "Convertir en style de bloc {0}",
|
|
51
|
+
"fixKeyOrderToMap": "Corriger l'ordre des touches pour cette carte",
|
|
52
|
+
"flowStyleMapForbidden": "Le mappage de style de flux est interdit",
|
|
53
|
+
"flowStyleSeqForbidden": "La séquence de style Flow est interdite",
|
|
54
|
+
"unUsedAnchor": "Ancre inutilisée '{0}'",
|
|
55
|
+
"unUsedAlias": "Alias non résolu '{0}'"
|
|
56
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Default Value": "デフォルト値",
|
|
3
|
+
"json.schema.invalidref": "'{1}' の $ref '{0}' を解決できません。",
|
|
4
|
+
"json.schema.problemloadingref": "参照 '{0}' の読み込み中に問題が発生しました: {1}",
|
|
5
|
+
"json.schema.nocontent": "'{0}' からスキーマを読み込めませんでした: コンテンツがありません。",
|
|
6
|
+
"json.schema.invalidFormat": "'{0}' の内容を解析できませんでした: 行 {1}、列 {2} で解析エラーが発生しました",
|
|
7
|
+
"colorHexFormatWarning": "無効なカラー形式です。#RGB、#RGBA、#RRGGBB、または #RRGGBBAA を使用してください。",
|
|
8
|
+
"dateTimeFormatWarning": "文字列は RFC3339 の日付と時刻形式ではありません。",
|
|
9
|
+
"dateFormatWarning": "文字列は RFC3339 の日付形式ではありません。",
|
|
10
|
+
"timeFormatWarning": "文字列は RFC3339 の時刻形式ではありません。",
|
|
11
|
+
"emailFormatWarning": "文字列はメールアドレスではありません。",
|
|
12
|
+
"ipv4FormatWarning": "文字列が IPv4 形式と一致しません。",
|
|
13
|
+
"ipv6FormatWarning": "文字列が IPv6 形式と一致しません。",
|
|
14
|
+
"enumWarning": "値が許可されていません。有効な値: {0}。",
|
|
15
|
+
"typeArrayMismatchWarning": "タイプが正しくありません。期待される型: {0} のいずれか。",
|
|
16
|
+
"notSchemaWarning": "許可されていないスキーマに一致しています。",
|
|
17
|
+
"oneOfWarning": "複数のスキーマに一致しています。1つだけが有効である必要があります。",
|
|
18
|
+
"ifFilePatternAssociation": "filePatternAssociation '{0}' がドキュメント URI '{1}' と一致しません",
|
|
19
|
+
"multipleOfWarning": "値は {0} で割り切れません。",
|
|
20
|
+
"exclusiveMinimumWarning": "値が {0} の排他的最小値より小さいです。",
|
|
21
|
+
"exclusiveMaximumWarning": "値が {0} の排他的最大値を超えています。",
|
|
22
|
+
"minimumWarning": "値が最小値 {0} を下回っています。",
|
|
23
|
+
"maximumWarning": "値が最大値 {0} を超えています。",
|
|
24
|
+
"minLengthWarning": "文字列の長さが最小長 {0} 未満です。",
|
|
25
|
+
"maxLengthWarning": "文字列の長さが最大長 {0} を超えています。",
|
|
26
|
+
"patternWarning": "文字列がパターン \"{0}\" に一致しません。",
|
|
27
|
+
"uriEmpty": "URI が必要です。",
|
|
28
|
+
"uriSchemeMissing": "スキームを含む URI が必要です。",
|
|
29
|
+
"uriFormatWarning": "文字列が有効な URI ではありません: {0}",
|
|
30
|
+
"additionalItemsWarning": "配列に含まれる項目数がスキーマの上限 {0} を超えています。",
|
|
31
|
+
"requiredItemMissingWarning": "配列に必要な項目が含まれていません。",
|
|
32
|
+
"minItemsWarning": "配列の項目数が少なすぎます。{0} 項目以上必要です。",
|
|
33
|
+
"maxItemsWarning": "配列の項目数が多すぎます。{0} 項目以下にしてください。",
|
|
34
|
+
"uniqueItemsWarning": "配列に重複する項目があります。",
|
|
35
|
+
"DisallowedExtraPropWarning": "プロパティ {0} は許可されていません。",
|
|
36
|
+
"MaxPropWarning": "オブジェクトのプロパティ数が制限値 {0} を超えています。",
|
|
37
|
+
"MinPropWarning": "オブジェクトのプロパティ数が必要数 {0} に満たないです。",
|
|
38
|
+
"RequiredDependentPropWarning": "プロパティ {1} によって必要とされるプロパティ {0} が存在しません。",
|
|
39
|
+
"Inline schema": "インラインスキーマ",
|
|
40
|
+
"create.item.array": "配列の項目を作成する{0}{1}",
|
|
41
|
+
"array.item": "- (配列項目)",
|
|
42
|
+
"allowedValues": "許可された値:",
|
|
43
|
+
"example": "例:",
|
|
44
|
+
"source": "出典: [{0}]({1})",
|
|
45
|
+
"jumpToSchema": "スキーマの位置へジャンプ ({0})",
|
|
46
|
+
"convertToSpace": "タブをスペースに変換",
|
|
47
|
+
"convertAllSpaceToTab": "すべてのスペースをタブに変換",
|
|
48
|
+
"deleteUnusedAnchor": "未使用のアンカーを削除: {0}",
|
|
49
|
+
"convertToBoolean": "ブール値に変換",
|
|
50
|
+
"convertToBlockStyle": "ブロックスタイル {0} に変換",
|
|
51
|
+
"fixKeyOrderToMap": "このマップのキーの順序を修正する",
|
|
52
|
+
"flowStyleMapForbidden": "フロースタイルのマッピングは禁止されています",
|
|
53
|
+
"flowStyleSeqForbidden": "フロースタイルのシーケンスは禁止されています",
|
|
54
|
+
"unUsedAnchor": "未使用のアンカー \"{0}\"",
|
|
55
|
+
"unUsedAlias": "未解決のエイリアス \"{0}\""
|
|
56
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Default Value": "Default value",
|
|
3
|
+
"json.schema.invalidref": "$ref '{0}' in '{1}' can not be resolved.",
|
|
4
|
+
"json.schema.problemloadingref": "Problems loading reference '{0}': {1}",
|
|
5
|
+
"json.schema.noContent": "Unable to load schema from '{0}': No content.",
|
|
6
|
+
"json.schema.invalidFormat": "Unable to parse content from '{0}': Parse error at line: {1} column: {2}",
|
|
7
|
+
"colorHexFormatWarning": "Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",
|
|
8
|
+
"dateTimeFormatWarning": "String is not a RFC3339 date-time.",
|
|
9
|
+
"dateFormatWarning": "String is not a RFC3339 date.",
|
|
10
|
+
"timeFormatWarning": "String is not a RFC3339 time.",
|
|
11
|
+
"emailFormatWarning": "String is not an e-mail address.",
|
|
12
|
+
"ipv4FormatWarning": "String does not match IPv4 format.",
|
|
13
|
+
"ipv6FormatWarning": "String does not match IPv6 format.",
|
|
14
|
+
"enumWarning": "Value is not accepted. Valid values: {0}.",
|
|
15
|
+
"typeArrayMismatchWarning": "Incorrect type. Expected one of {0}.",
|
|
16
|
+
"notSchemaWarning": "Matches a schema that is not allowed.",
|
|
17
|
+
"oneOfWarning": "Matches multiple schemas when only one must validate.",
|
|
18
|
+
"ifFilePatternAssociation": "filePatternAssociation '{0}' does not match with doc uri '{1}'",
|
|
19
|
+
"multipleOfWarning": "Value is not divisible by {0}.",
|
|
20
|
+
"exclusiveMinimumWarning": "Value is below the exclusive minimum of {0}.",
|
|
21
|
+
"exclusiveMaximumWarning": "Value is above the exclusive maximum of {0}.",
|
|
22
|
+
"minimumWarning": "Value is below the minimum of {0}.",
|
|
23
|
+
"maximumWarning": "Value is above the maximum of {0}.",
|
|
24
|
+
"minLengthWarning": "String is shorter than the minimum length of {0}.",
|
|
25
|
+
"maxLengthWarning": "String is longer than the maximum length of {0}.",
|
|
26
|
+
"patternWarning": "String does not match the pattern of \"{0}\".",
|
|
27
|
+
"uriEmpty": "URI expected.",
|
|
28
|
+
"uriSchemeMissing": "URI with a scheme is expected.",
|
|
29
|
+
"uriFormatWarning": "String is not a URI: {0}",
|
|
30
|
+
"additionalItemsWarning": "Array has too many items according to schema. Expected {0} or fewer.",
|
|
31
|
+
"requiredItemMissingWarning": "Array does not contain required item.",
|
|
32
|
+
"minItemsWarning": "Array has too few items. Expected {0} or more.",
|
|
33
|
+
"maxItemsWarning": "Array has too many items. Expected {0} or fewer.",
|
|
34
|
+
"uniqueItemsWarning": "Array has duplicate items.",
|
|
35
|
+
"DisallowedExtraPropWarning": "Property {0} is not allowed.",
|
|
36
|
+
"MaxPropWarning": "Object has more properties than limit of {0}.",
|
|
37
|
+
"MinPropWarning": "Object has fewer properties than the required number of {0}",
|
|
38
|
+
"RequiredDependentPropWarning": "Object is missing property {0} required by property {1}.",
|
|
39
|
+
"Inline schema": "Inline schema",
|
|
40
|
+
"create.item.array": "Create an item of an array{0}{1}",
|
|
41
|
+
"array.item": "- (array item) ",
|
|
42
|
+
"allowedValues": "Allowed Values:",
|
|
43
|
+
"example": "Example:",
|
|
44
|
+
"source": "Source: [{0}]({1})",
|
|
45
|
+
"jumpToSchema": "Jump to schema location ({0})",
|
|
46
|
+
"convertToSpace": "Convert Tab to Spaces",
|
|
47
|
+
"convertAllSpaceToTab": "Convert all Tabs to Spaces",
|
|
48
|
+
"deleteUnusedAnchor": "Delete unused anchor: {0}",
|
|
49
|
+
"convertToBoolean": "Convert to boolean",
|
|
50
|
+
"convertToBlockStyle": "Convert to block style {0}",
|
|
51
|
+
"fixKeyOrderToMap": "Fix key order for this map",
|
|
52
|
+
"flowStyleMapForbidden": "Flow style mapping is forbidden",
|
|
53
|
+
"flowStyleSeqForbidden": "Flow style sequence is forbidden",
|
|
54
|
+
"unUsedAnchor": "Unused anchor \"{0}\"",
|
|
55
|
+
"unUsedAlias": "Unresolved alias \"{0}\""
|
|
56
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Default Value": "기본값",
|
|
3
|
+
"json.schema.invalidref": "'{1}'의 $ref '{0}'을(를) 확인할 수 없습니다.",
|
|
4
|
+
"json.schema.problemloadingref": "'{0}' 참조를 불러오는 데 문제가 발생했습니다: {1}",
|
|
5
|
+
"json.schema.nocontent": "'{0}'에서 스키마를 불러올 수 없습니다: 내용이 없습니다.",
|
|
6
|
+
"json.schema.invalidFormat": "'{0}'의 내용을 구문 분석할 수 없습니다: {1}행 {2}열에서 구문 오류가 발생했습니다",
|
|
7
|
+
"colorHexFormatWarning": "잘못된 색상 형식입니다. #RGB, #RGBA, #RRGGBB 또는 #RRGGBBAA를 사용하세요.",
|
|
8
|
+
"dateTimeFormatWarning": "문자열이 RFC3339 날짜-시간 형식이 아닙니다.",
|
|
9
|
+
"dateFormatWarning": "문자열이 RFC3339 날짜 형식이 아닙니다.",
|
|
10
|
+
"timeFormatWarning": "문자열이 RFC3339 시간 형식이 아닙니다.",
|
|
11
|
+
"emailFormatWarning": "문자열이 유효한 이메일 주소가 아닙니다.",
|
|
12
|
+
"ipv4FormatWarning": "문자열이 IPv4 형식과 일치하지 않습니다.",
|
|
13
|
+
"ipv6FormatWarning": "문자열이 IPv6 형식과 일치하지 않습니다.",
|
|
14
|
+
"enumWarning": "값이 허용되지 않았습니다. 허용 가능한 값: {0}.",
|
|
15
|
+
"typeArrayMismatchWarning": "잘못된 유형입니다. 예상 값: {0}.",
|
|
16
|
+
"notSchemaWarning": "허용되지 않은 스키마와 일치합니다.",
|
|
17
|
+
"oneOfWarning": "여러 스키마와 일치합니다. 하나만 유효해야 합니다.",
|
|
18
|
+
"ifFilePatternAssociation": "filePatternAssociation '{0}'이(가) 문서 URI '{1}'과(와) 일치하지 않습니다.",
|
|
19
|
+
"multipleOfWarning": "값이 {0}으로 나눌 수 없습니다.",
|
|
20
|
+
"exclusiveMinimumWarning": "값이 최소값 {0}보다 작습니다.",
|
|
21
|
+
"exclusiveMaximumWarning": "값이 최대값 {0}보다 큽니다.",
|
|
22
|
+
"minimumWarning": "값이 최소값 {0}보다 작습니다.",
|
|
23
|
+
"maximumWarning": "값이 최대값 {0}보다 큽니다.",
|
|
24
|
+
"minLengthWarning": "문자열 길이가 최소 길이 {0}보다 짧습니다.",
|
|
25
|
+
"maxLengthWarning": "문자열 길이가 최대 길이 {0}보다 깁니다.",
|
|
26
|
+
"patternWarning": "문자열이 \"{0}\" 패턴과 일치하지 않습니다.",
|
|
27
|
+
"uriEmpty": "URI가 필요합니다.",
|
|
28
|
+
"uriSchemeMissing": "스킴이 있는 URI가 필요합니다.",
|
|
29
|
+
"uriFormatWarning": "문자열이 URI 형식이 아닙니다: {0}",
|
|
30
|
+
"additionalItemsWarning": "배열의 항목 수가 스키마에서 허용된 {0}개를 초과합니다.",
|
|
31
|
+
"requiredItemMissingWarning": "배열에 필수 항목이 없습니다.",
|
|
32
|
+
"minItemsWarning": "배열 항목 수가 너무 적습니다. 최소 {0}개 필요합니다.",
|
|
33
|
+
"maxItemsWarning": "배열 항목 수가 너무 많습니다. 최대 {0}개 허용됩니다.",
|
|
34
|
+
"uniqueItemsWarning": "배열에 중복된 항목이 있습니다.",
|
|
35
|
+
"DisallowedExtraPropWarning": "속성 {0}은(는) 허용되지 않습니다.",
|
|
36
|
+
"MaxPropWarning": "객체에 허용된 속성 수 {0}을 초과했습니다.",
|
|
37
|
+
"MinPropWarning": "객체에 필요한 최소 속성 수 {0}보다 적습니다.",
|
|
38
|
+
"RequiredDependentPropWarning": "속성 {1}에 필요한 속성 {0}이 누락되었습니다.",
|
|
39
|
+
"Inline schema": "인라인 스키마",
|
|
40
|
+
"create.item.array": "배열 항목 생성{0}{1}",
|
|
41
|
+
"array.item": "- (배열 항목)",
|
|
42
|
+
"allowedValues": "허용 값:",
|
|
43
|
+
"example": "예시:",
|
|
44
|
+
"source": "출처: [{0}]({1})",
|
|
45
|
+
"jumpToSchema": "스키마 위치로 이동 ({0})",
|
|
46
|
+
"convertToSpace": "탭을 공백으로 변환",
|
|
47
|
+
"convertAllSpaceToTab": "모든 공백을 탭으로 변환",
|
|
48
|
+
"deleteUnusedAnchor": "사용되지 않은 앵커 삭제: {0}",
|
|
49
|
+
"convertToBoolean": "불리언으로 변환",
|
|
50
|
+
"convertToBlockStyle": "블록 스타일 {0}(으)로 변환",
|
|
51
|
+
"fixKeyOrderToMap": "이 맵의 키 순서 정렬",
|
|
52
|
+
"flowStyleMapForbidden": "Flow 스타일 맵 사용이 금지됨",
|
|
53
|
+
"flowStyleSeqForbidden": "Flow 스타일 시퀀스 사용이 금지됨",
|
|
54
|
+
"unUsedAnchor": "사용되지 않은 앵커 \"{0}\"",
|
|
55
|
+
"unUsedAlias": "해결되지 않은 별칭 \"{0}\""
|
|
56
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Default Value": "默认值",
|
|
3
|
+
"json.schema.invalidref": "在 '{1}' 中的 $ref '{0}' 无法解析。",
|
|
4
|
+
"json.schema.problemloadingref": "加载引用 '{0}' 时出现问题:{1}",
|
|
5
|
+
"json.schema.nocontent": "无法从“{0}”加载架构:没有内容。",
|
|
6
|
+
"json.schema.invalidFormat": "无法解析来自“{0}”的内容:在第 {1} 行第 {2} 列发生解析错误",
|
|
7
|
+
"colorHexFormatWarning": "无效的颜色格式。请使用 #RGB、#RGBA、#RRGGBB 或 #RRGGBBAA。",
|
|
8
|
+
"dateTimeFormatWarning": "字符串不是 RFC3339 日期时间格式。",
|
|
9
|
+
"dateFormatWarning": "字符串不是 RFC3339 日期格式。",
|
|
10
|
+
"timeFormatWarning": "字符串不是 RFC3339 时间格式。",
|
|
11
|
+
"emailFormatWarning": "字符串不是有效的电子邮件地址。",
|
|
12
|
+
"ipv4FormatWarning": "字符串与 IPv4 格式不匹配。",
|
|
13
|
+
"ipv6FormatWarning": "字符串与 IPv6 格式不匹配。",
|
|
14
|
+
"enumWarning": "值无效。允许的值:{0}。",
|
|
15
|
+
"typeArrayMismatchWarning": "类型不正确。应为以下之一:{0}。",
|
|
16
|
+
"notSchemaWarning": "匹配了不被允许的模式。",
|
|
17
|
+
"oneOfWarning": "同时匹配多个模式,必须只匹配一个。",
|
|
18
|
+
"ifFilePatternAssociation": "filePatternAssociation '{0}' 与文档 URI '{1}' 不匹配",
|
|
19
|
+
"multipleOfWarning": "值不能被 {0} 整除。",
|
|
20
|
+
"exclusiveMinimumWarning": "值低于最小(不包含)限制 {0}。",
|
|
21
|
+
"exclusiveMaximumWarning": "值高于最大(不包含)限制 {0}。",
|
|
22
|
+
"minimumWarning": "值低于最小值 {0}。",
|
|
23
|
+
"maximumWarning": "值高于最大值 {0}。",
|
|
24
|
+
"minLengthWarning": "字符串长度小于最小长度 {0}。",
|
|
25
|
+
"maxLengthWarning": "字符串长度超过最大长度 {0}。",
|
|
26
|
+
"patternWarning": "字符串不符合模式 \"{0}\"。",
|
|
27
|
+
"uriEmpty": "需要提供 URI。",
|
|
28
|
+
"uriSchemeMissing": "需要带有协议的 URI。",
|
|
29
|
+
"uriFormatWarning": "字符串不是有效的 URI:{0}",
|
|
30
|
+
"additionalItemsWarning": "数组项数超过了模式限制。最多允许 {0} 项。",
|
|
31
|
+
"requiredItemMissingWarning": "数组中缺少必需项。",
|
|
32
|
+
"minItemsWarning": "数组项数不足。应为 {0} 项或更多。",
|
|
33
|
+
"maxItemsWarning": "数组项数过多。应为 {0} 项或更少。",
|
|
34
|
+
"uniqueItemsWarning": "数组中包含重复项。",
|
|
35
|
+
"DisallowedExtraPropWarning": "属性 {0} 不被允许。",
|
|
36
|
+
"MaxPropWarning": "对象的属性数超过了限制 {0}。",
|
|
37
|
+
"MinPropWarning": "对象的属性数少于所需数量 {0}。",
|
|
38
|
+
"RequiredDependentPropWarning": "属性 {1} 依赖的属性 {0} 缺失。",
|
|
39
|
+
"Inline schema": "内联模式",
|
|
40
|
+
"create.item.array": "创建数组项{0}{1}",
|
|
41
|
+
"array.item": "- (数组项)",
|
|
42
|
+
"allowedValues": "允许的值:",
|
|
43
|
+
"example": "示例:",
|
|
44
|
+
"source": "来源:[ {0} ]({1})",
|
|
45
|
+
"jumpToSchema": "跳转到模式位置({0})",
|
|
46
|
+
"convertToSpace": "将 Tab 转换为空格",
|
|
47
|
+
"convertAllSpaceToTab": "将所有空格转换为 Tab",
|
|
48
|
+
"deleteUnusedAnchor": "删除未使用的锚点:{0}",
|
|
49
|
+
"convertToBoolean": "转换为布尔值",
|
|
50
|
+
"convertToBlockStyle": "转换为块样式 {0}",
|
|
51
|
+
"fixKeyOrderToMap": "修复此映射的键顺序",
|
|
52
|
+
"flowStyleMapForbidden": "禁止使用 flow 样式的映射",
|
|
53
|
+
"flowStyleSeqForbidden": "禁止使用 flow 样式的序列",
|
|
54
|
+
"unUsedAnchor": "未使用的锚点 \"{0}\"",
|
|
55
|
+
"unUsedAlias": "未解析的别名 \"{0}\""
|
|
56
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Default Value": "預設值",
|
|
3
|
+
"json.schema.invalidref": "在 '{1}' 中的 $ref '{0}' 無法解析。",
|
|
4
|
+
"json.schema.problemloadingref": "載入參考 '{0}' 時出現問題:{1}",
|
|
5
|
+
"json.schema.nocontent": "無法從「{0}」載入結構描述:沒有內容。",
|
|
6
|
+
"json.schema.invalidFormat": "無法解析來自「{0}」的內容:在第 {1} 行第 {2} 欄發生解析錯誤",
|
|
7
|
+
"colorHexFormatWarning": "無效的顏色格式。請使用 #RGB、#RGBA、#RRGGBB 或 #RRGGBBAA。",
|
|
8
|
+
"dateTimeFormatWarning": "字串不是 RFC3339 日期時間格式。",
|
|
9
|
+
"dateFormatWarning": "字串不是 RFC3339 日期格式。",
|
|
10
|
+
"timeFormatWarning": "字串不是 RFC3339 時間格式。",
|
|
11
|
+
"emailFormatWarning": "字串不是有效的電子郵件地址。",
|
|
12
|
+
"ipv4FormatWarning": "字串不符合 IPv4 格式。",
|
|
13
|
+
"ipv6FormatWarning": "字串不符合 IPv6 格式。",
|
|
14
|
+
"enumWarning": "值無效。有效值為:{0}。",
|
|
15
|
+
"typeArrayMismatchWarning": "類型不正確。應為以下其中之一:{0}。",
|
|
16
|
+
"notSchemaWarning": "符合了不被允許的結構。",
|
|
17
|
+
"oneOfWarning": "符合多個結構,但只能有一個有效。",
|
|
18
|
+
"ifFilePatternAssociation": "filePatternAssociation '{0}' 與文件 URI '{1}' 不相符",
|
|
19
|
+
"multipleOfWarning": "值不能被 {0} 整除。",
|
|
20
|
+
"exclusiveMinimumWarning": "值低於排除最小值 {0}。",
|
|
21
|
+
"exclusiveMaximumWarning": "值超過排除最大值 {0}。",
|
|
22
|
+
"minimumWarning": "值低於最小值 {0}。",
|
|
23
|
+
"maximumWarning": "值超過最大值 {0}。",
|
|
24
|
+
"minLengthWarning": "字串長度小於最小長度 {0}。",
|
|
25
|
+
"maxLengthWarning": "字串長度超過最大長度 {0}。",
|
|
26
|
+
"patternWarning": "字串不符合模式 \"{0}\"。",
|
|
27
|
+
"uriEmpty": "需要 URI。",
|
|
28
|
+
"uriSchemeMissing": "需要包含 scheme 的 URI。",
|
|
29
|
+
"uriFormatWarning": "字串不是有效的 URI:{0}",
|
|
30
|
+
"additionalItemsWarning": "陣列項目超出結構所允許的數量。應為 {0} 項或更少。",
|
|
31
|
+
"requiredItemMissingWarning": "陣列中缺少必要項目。",
|
|
32
|
+
"minItemsWarning": "陣列項目數太少。應為 {0} 項或更多。",
|
|
33
|
+
"maxItemsWarning": "陣列項目數太多。應為 {0} 項或更少。",
|
|
34
|
+
"uniqueItemsWarning": "陣列中有重複項目。",
|
|
35
|
+
"DisallowedExtraPropWarning": "不允許的屬性 {0}。",
|
|
36
|
+
"MaxPropWarning": "物件的屬性數量超過限制 {0}。",
|
|
37
|
+
"MinPropWarning": "物件的屬性數量少於所需的 {0}。",
|
|
38
|
+
"RequiredDependentPropWarning": "缺少由屬性 {1} 所需的屬性 {0}。",
|
|
39
|
+
"Inline schema": "內嵌結構",
|
|
40
|
+
"create.item.array": "建立陣列項目{0}{1}",
|
|
41
|
+
"array.item": "-(陣列項目)",
|
|
42
|
+
"allowedValues": "允許的值:",
|
|
43
|
+
"example": "範例:",
|
|
44
|
+
"source": "來源:[ {0} ]({1})",
|
|
45
|
+
"jumpToSchema": "跳至結構位置({0})",
|
|
46
|
+
"convertToSpace": "將 Tab 轉換為空格",
|
|
47
|
+
"convertAllSpaceToTab": "將所有空格轉換為 Tab",
|
|
48
|
+
"deleteUnusedAnchor": "刪除未使用的錨點:{0}",
|
|
49
|
+
"convertToBoolean": "轉換為布林值",
|
|
50
|
+
"convertToBlockStyle": "轉換為區塊樣式 {0}",
|
|
51
|
+
"fixKeyOrderToMap": "修正此映射的鍵順序",
|
|
52
|
+
"flowStyleMapForbidden": "禁止使用 Flow 風格的對應",
|
|
53
|
+
"flowStyleSeqForbidden": "禁止使用 Flow 風格的序列",
|
|
54
|
+
"unUsedAnchor": "未使用的錨點 \"{0}\"",
|
|
55
|
+
"unUsedAlias": "未解析的別名 \"{0}\""
|
|
56
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Node, Pair } from 'yaml';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type YamlNode = Node | Pair;
|
|
3
|
+
export type ASTNode = ObjectASTNode | PropertyASTNode | ArrayASTNode | StringASTNode | NumberASTNode | BooleanASTNode | NullASTNode;
|
|
4
4
|
export interface BaseASTNode {
|
|
5
5
|
readonly type: 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null';
|
|
6
6
|
readonly parent?: ASTNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CompletionItemKind } from 'vscode-json-languageservice';
|
|
2
2
|
import { SchemaVersions } from './yamlTypes';
|
|
3
|
-
export
|
|
3
|
+
export type JSONSchemaRef = JSONSchema | boolean;
|
|
4
4
|
export interface JSONSchema {
|
|
5
5
|
id?: string;
|
|
6
6
|
$id?: string;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { Document, LineCounter } from 'yaml';
|
|
1
|
+
import { Alias, Document, LineCounter } from 'yaml';
|
|
2
2
|
import { ASTNode, YamlNode } from '../jsonASTTypes';
|
|
3
|
-
|
|
3
|
+
type NodeRange = [number, number, number];
|
|
4
|
+
export declare const aliasDepth: {
|
|
5
|
+
maxRefCount: number;
|
|
6
|
+
currentRefDepth: number;
|
|
7
|
+
aliasResolutionCache: Map<Alias, ASTNode>;
|
|
8
|
+
};
|
|
4
9
|
export declare function convertAST(parent: ASTNode, node: YamlNode, doc: Document, lineCounter: LineCounter): ASTNode | undefined;
|
|
5
10
|
export declare function toOffsetLength(range: NodeRange): [number, number];
|
|
6
11
|
export {};
|
|
@@ -4,13 +4,17 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { isScalar, isMap, isPair, isSeq, isNode, isAlias, } from 'yaml';
|
|
6
6
|
import { NullASTNodeImpl, PropertyASTNodeImpl, StringASTNodeImpl, ObjectASTNodeImpl, NumberASTNodeImpl, ArrayASTNodeImpl, BooleanASTNodeImpl, } from './jsonParser07';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
// Exported for tests
|
|
8
|
+
export const aliasDepth = {
|
|
9
|
+
maxRefCount: 1000,
|
|
10
|
+
currentRefDepth: 0,
|
|
11
|
+
aliasResolutionCache: new Map(),
|
|
12
|
+
};
|
|
10
13
|
export function convertAST(parent, node, doc, lineCounter) {
|
|
11
14
|
if (!parent) {
|
|
12
15
|
// first invocation
|
|
13
|
-
|
|
16
|
+
aliasDepth.currentRefDepth = 0;
|
|
17
|
+
aliasDepth.aliasResolutionCache = new Map();
|
|
14
18
|
}
|
|
15
19
|
if (!node) {
|
|
16
20
|
return null;
|
|
@@ -27,11 +31,8 @@ export function convertAST(parent, node, doc, lineCounter) {
|
|
|
27
31
|
if (isScalar(node)) {
|
|
28
32
|
return convertScalar(node, parent);
|
|
29
33
|
}
|
|
30
|
-
if (isAlias(node) &&
|
|
31
|
-
|
|
32
|
-
const converted = convertAlias(node, parent, doc, lineCounter);
|
|
33
|
-
seenAlias.delete(node);
|
|
34
|
-
return converted;
|
|
34
|
+
if (isAlias(node) && aliasDepth.currentRefDepth < aliasDepth.maxRefCount) {
|
|
35
|
+
return convertAlias(node, parent, doc, lineCounter);
|
|
35
36
|
}
|
|
36
37
|
else {
|
|
37
38
|
return;
|
|
@@ -116,16 +117,23 @@ function convertScalar(node, parent) {
|
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
function convertAlias(node, parent, doc, lineCounter) {
|
|
119
|
-
|
|
120
|
+
if (aliasDepth.aliasResolutionCache.has(node)) {
|
|
121
|
+
return aliasDepth.aliasResolutionCache.get(node);
|
|
122
|
+
}
|
|
123
|
+
aliasDepth.currentRefDepth++;
|
|
120
124
|
const resolvedNode = node.resolve(doc);
|
|
125
|
+
let ans;
|
|
121
126
|
if (resolvedNode) {
|
|
122
|
-
|
|
127
|
+
ans = convertAST(parent, resolvedNode, doc, lineCounter);
|
|
123
128
|
}
|
|
124
129
|
else {
|
|
125
130
|
const resultNode = new StringASTNodeImpl(parent, node, ...toOffsetLength(node.range));
|
|
126
131
|
resultNode.value = node.source;
|
|
127
|
-
|
|
132
|
+
ans = resultNode;
|
|
128
133
|
}
|
|
134
|
+
aliasDepth.currentRefDepth--;
|
|
135
|
+
aliasDepth.aliasResolutionCache.set(node, ans);
|
|
136
|
+
return ans;
|
|
129
137
|
}
|
|
130
138
|
export function toOffsetLength(range) {
|
|
131
139
|
return [range[0], range[1] - range[0]];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast-converter.js","sourceRoot":"","sources":["../../../../src/languageservice/parser/ast-converter.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,EAEL,QAAQ,EAER,KAAK,EAEL,MAAM,EAEN,KAAK,EAEL,MAAM,EACN,OAAO,GAIR,MAAM,MAAM,CAAC;AAEd,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAIxB,MAAM,
|
|
1
|
+
{"version":3,"file":"ast-converter.js","sourceRoot":"","sources":["../../../../src/languageservice/parser/ast-converter.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,EAEL,QAAQ,EAER,KAAK,EAEL,MAAM,EAEN,KAAK,EAEL,MAAM,EACN,OAAO,GAIR,MAAM,MAAM,CAAC;AAEd,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACj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