Skip to content

Commit 7ddde0e

Browse files
Sync PSRule Schema (#863)
* Sync PSRule Schema * Bump change log Co-authored-by: BernieWhite <BernieWhite@users.noreply.github.com> Co-authored-by: Bernie White <bewhite@microsoft.com>
1 parent bac2afe commit 7ddde0e

3 files changed

Lines changed: 70 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ What's changed since v2.4.0:
3333
- Engineering:
3434
- Updated PSRule schema files.
3535
[#844](https://github.com/microsoft/PSRule-vscode/pull/844)
36+
[#863](https://github.com/microsoft/PSRule-vscode/pull/863)
3637
- Bumps vscode engine to v1.71.0.
3738
[#843](https://github.com/microsoft/PSRule-vscode/pull/843)
3839
- Bumps typescript to v4.8.3.

schemas/PSRule-language.schema.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,28 @@
162162
}
163163
]
164164
}
165+
},
166+
"labels": {
167+
"type": "object",
168+
"title": "Labels",
169+
"description": "Require rules to have the following associated labels.",
170+
"markdownDescription": "Require rules to have the following associated labels.",
171+
"additionalProperties": {
172+
"oneOf": [
173+
{
174+
"type": "string",
175+
"description": "A required reference."
176+
},
177+
{
178+
"type": "array",
179+
"description": "A required reference.",
180+
"items": {
181+
"type": "string"
182+
},
183+
"uniqueItems": true
184+
}
185+
]
186+
}
165187
}
166188
},
167189
"additionalProperties": false
@@ -680,6 +702,40 @@
680702
},
681703
"tags": {
682704
"$ref": "#/definitions/resourceTags"
705+
},
706+
"labels": {
707+
"type": "object",
708+
"title": "Labels",
709+
"description": "Any taxonomy references.",
710+
"additionalProperties": {
711+
"oneOf": [
712+
{
713+
"type": "string"
714+
},
715+
{
716+
"type": "array",
717+
"items": {
718+
"type": "string"
719+
}
720+
}
721+
]
722+
},
723+
"defaultSnippets": [
724+
{
725+
"label": "Reference key/ value",
726+
"body": {
727+
"${1:Key}": "${2:Value}"
728+
}
729+
},
730+
{
731+
"label": "Reference key/ multi-value",
732+
"body": {
733+
"${1:Key}": [
734+
"${2:Value}"
735+
]
736+
}
737+
}
738+
]
683739
}
684740
},
685741
"required": [

schemas/PSRule-options.schema.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,13 @@
409409
"markdownDescription": "Determines if objects are ignore based on their file source path. When set, objects from the pipeline or read from files will be exclude based on their source path and the configuration of `pathIgnore`, `ignoreGitPath`, and `ignoreRepositoryCommon` options. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Options/#inputignoreobjectsource)",
410410
"default": false
411411
},
412+
"ignoreUnchangedPath": {
413+
"type": "boolean",
414+
"title": "Ignore unchanged path",
415+
"description": "Determine if unchanged files are ignored. By default, PSRule will process all files within an input path. For large repositories, this can result in a large number of files being processed. Additionally, for a pull request you may only be interested in files that have changed.",
416+
"markdownDescription": "Determine if unchanged files are ignored. By default, PSRule will process all files within an input path. For large repositories, this can result in a large number of files being processed. Additionally, for a pull request you may only be interested in files that have changed. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Options/#inputignoreunchangedpath)",
417+
"default": false
418+
},
412419
"objectPath": {
413420
"type": "string",
414421
"title": "Object path",
@@ -797,6 +804,12 @@
797804
"description": "Configures repository options.",
798805
"markdownDescription": "Configures repository options.",
799806
"properties": {
807+
"baseRef": {
808+
"type": "string",
809+
"title": "Base Reference",
810+
"description": "Sets the repository base ref used for comparisons of changed files. By default, the base ref is detected from environment vairables set by the build system.",
811+
"markdownDescription": "Sets the repository base ref used for comparisons of changed files. By default, the base ref is detected from environment vairables set by the build system. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Options/#repositorybaseref)"
812+
},
800813
"url": {
801814
"type": "string",
802815
"title": "Repository URL",

0 commit comments

Comments
 (0)