Skip to content

Commit

Permalink
Merge pull request #3527 from aeisenberg/aeisenberg/fix-qlpack-schema
Browse files Browse the repository at this point in the history
Fix the qlpack json schema
  • Loading branch information
aeisenberg authored Apr 3, 2024
2 parents 7da3740 + 44c3c29 commit 00c0e70
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 19 deletions.
1 change: 1 addition & 0 deletions extensions/ql-vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [UNRELEASED]

- Add new supported source and sink kinds in the CodeQL Model Editor [#3511](https://github.com/github/vscode-codeql/pull/3511)
- Fix a bug where the test explorer wouldn't display certain tests. [#3527](https://github.com/github/vscode-codeql/pull/3527)

## 1.12.4 - 20 March 2024

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
"$ref": "#/definitions/SuiteInstruction"
}
},
{
"$ref": "#/definitions/SuiteInstruction"
},
{
"type": "null"
}
Expand All @@ -93,19 +96,33 @@
"include": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
}
},
"exclude": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
}
},
"description": {
Expand Down
33 changes: 25 additions & 8 deletions extensions/ql-vscode/src/packaging/qlpack-file.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
"$ref": "#/definitions/SuiteInstruction"
}
},
{
"$ref": "#/definitions/SuiteInstruction"
},
{
"type": "null"
}
Expand Down Expand Up @@ -93,19 +96,33 @@
"include": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
}
},
"exclude": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
}
},
"description": {
Expand Down
2 changes: 1 addition & 1 deletion extensions/ql-vscode/src/packaging/qlpack-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface QlPackFile {
extensionTargets?: Record<string, string> | null;
dbscheme?: string | null;
library?: boolean | null;
defaultSuite?: SuiteInstruction[] | null;
defaultSuite?: SuiteInstruction[] | SuiteInstruction | null;
defaultSuiteFile?: string | null;
dataExtensions?: string[] | string | null;
}
4 changes: 2 additions & 2 deletions extensions/ql-vscode/src/packaging/suite-instruction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export interface SuiteInstruction {
qlpack?: string;
query?: string;
queries?: string;
include?: Record<string, string[]>;
exclude?: Record<string, string[]>;
include?: Record<string, string[] | string>;
exclude?: Record<string, string[] | string>;
description?: string;
import?: string;
from?: string;
Expand Down

0 comments on commit 00c0e70

Please sign in to comment.