Skip to content
This repository was archived by the owner on Dec 25, 2023. It is now read-only.

Commit 1afe55f

Browse files
authored
Merge pull request #2 from kopischke/fix/schema
Fix nova-extension-schema glitches
2 parents 9a558a7 + 1248068 commit 1afe55f

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

json.novaextension/nova-extension-schema.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@
413413
"default": { "description": "The default value of the item" },
414414
"children": {
415415
"description": "Child items displayed beneath and indented from the item (section types only)",
416-
"$ref": "#/definitions/configItem"
416+
"$ref": "#/definitions/configItemList"
417417
},
418418
"max": {
419419
"description": "The maximum value of the item (number types only)",
@@ -438,7 +438,15 @@
438438
"values": {
439439
"description": "An array of pre-populated values to display for an item (enum types only). See Enum Values for more information.",
440440
"type": "array",
441-
"items": { "type": "string" }
441+
"items": {
442+
"anyOf": [
443+
{ "type": "string" },
444+
{
445+
"type": "array",
446+
"items": [{ "type": "string" }, { "type": "string" }]
447+
}
448+
]
449+
}
442450
},
443451
"resolve": {
444452
"description": "A command name registered with the CommandsRegistry that will be invoked when the item is shown to resolve the array of pre-populated values (enum types only). See Enum Values for more information.",
@@ -473,7 +481,7 @@
473481
},
474482
"message": {
475483
"description": "a capture number for the user-readable message that should be displayed to the user",
476-
"type": "string"
484+
"type": "number"
477485
},
478486
"line": {
479487
"description": "a capture number for the line number where the issue begins",
@@ -509,7 +517,7 @@
509517
"type": "boolean"
510518
}
511519
},
512-
"required": ["regexp", "message", "line", "severity", "loop"]
520+
"required": ["regexp", "message", "line", "severity"]
513521
}
514522
}
515523
}

0 commit comments

Comments
 (0)