Skip to content

Commit 7864844

Browse files
committed
Fix missing string type on dataExtensions
1 parent f5fbd7f commit 7864844

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

extensions/ql-vscode/src/model-editor/extension-pack-metadata.schema.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,17 @@
1212
}
1313
},
1414
"dataExtensions": {
15-
"type": "array",
16-
"items": {
17-
"type": "string"
18-
}
15+
"anyOf": [
16+
{
17+
"type": "array",
18+
"items": {
19+
"type": "string"
20+
}
21+
},
22+
{
23+
"type": "string"
24+
}
25+
]
1926
},
2027
"name": {
2128
"type": "string"

extensions/ql-vscode/src/model-editor/extension-pack-metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import { QlPackFile } from "../packaging/qlpack-file";
33
export type ExtensionPackMetadata = QlPackFile & {
44
// Make both extensionTargets and dataExtensions required
55
extensionTargets: Record<string, string>;
6-
dataExtensions: string[];
6+
dataExtensions: string[] | string;
77
};

extensions/ql-vscode/src/packaging/qlpack-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ export interface QlPackFile {
1212
library?: boolean;
1313
defaultSuite?: SuiteInstruction[];
1414
defaultSuiteFile?: string;
15-
dataExtensions?: string[];
15+
dataExtensions?: string[] | string;
1616
}

0 commit comments

Comments
 (0)