Skip to content

Commit 722bc60

Browse files
Update schemas/ (#1156)
* Update schemas/ * Bump change log --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6ea4422 commit 722bc60

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ What's changed since v2.8.0:
4141
[#1092](https://github.com/microsoft/PSRule-vscode/pull/1092)
4242
[#1110](https://github.com/microsoft/PSRule-vscode/pull/1110)
4343
[#1125](https://github.com/microsoft/PSRule-vscode/pull/1125)
44+
[#1156](https://github.com/microsoft/PSRule-vscode/pull/1156)
4445
- Bump vscode engine to v1.78.1.
4546
[#1146](https://github.com/microsoft/PSRule-vscode/pull/1146)
4647
- Bump typescript to v5.1.3.

schemas/PSRule-options.schema.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,32 @@
204204
},
205205
"additionalProperties": false
206206
},
207+
"baseline-option": {
208+
"type": "object",
209+
"title": "Baseline options",
210+
"description": "Options that configure baselines.",
211+
"properties": {
212+
"group": {
213+
"type": "object",
214+
"title": "Baseline group",
215+
"description": "Configure baseline group names.",
216+
"additionalProperties": {
217+
"title": "Group mapping",
218+
"description": "Maps a group name to a baseline.",
219+
"type": "string"
220+
},
221+
"defaultSnippets": [
222+
{
223+
"label": "Baseline group",
224+
"body": {
225+
"${1:Group}": "${2:Baseline}"
226+
}
227+
}
228+
]
229+
}
230+
},
231+
"additionalProperties": false
232+
},
207233
"binding-option": {
208234
"type": "object",
209235
"title": "Object binding",
@@ -851,6 +877,10 @@
851877
},
852878
"options": {
853879
"properties": {
880+
"baseline": {
881+
"type": "object",
882+
"$ref": "#/definitions/baseline-option"
883+
},
854884
"binding": {
855885
"type": "object",
856886
"oneOf": [
@@ -966,7 +996,7 @@
966996
},
967997
"rule-option": {
968998
"type": "object",
969-
"title": "Baseline options",
999+
"title": "Rule options",
9701000
"description": "Options that include/ exclude and configure rules.",
9711001
"properties": {
9721002
"include": {

0 commit comments

Comments
 (0)