Skip to content

Commit e18dde6

Browse files
github-actions[bot]ArmaanMcleodBernieWhite
authored
Sync PSRule Schema (#688)
* Sync PSRule Schema * Bump change log Co-authored-by: ArmaanMcleod <ArmaanMcleod@users.noreply.github.com> Co-authored-by: Bernie White <bewhite@microsoft.com>
1 parent c2c9b7b commit e18dde6

2 files changed

Lines changed: 183 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ What's changed since v2.0.0:
2525
- Added settings to configure the location for storing documentation,
2626
and the snippet used to create documentation.
2727
- To use try this feature, install the preview channel with experimental features enabled.
28+
- Engineering:
29+
- Bump fs-extra from v10.1.0 [#670](https://github.com/microsoft/PSRule-vscode/pull/670)
30+
- Updated PSRule schema files. [#688](https://github.com/microsoft/PSRule-vscode/pull/688)
2831

2932
## v2.0.0
3033

schemas/PSRule-language.schema.json

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,12 +739,21 @@
739739
{
740740
"$ref": "#/definitions/selectorConditionStartsWith"
741741
},
742+
{
743+
"$ref": "#/definitions/selectorConditionNotStartsWith"
744+
},
742745
{
743746
"$ref": "#/definitions/selectorConditionEndsWith"
744747
},
748+
{
749+
"$ref": "#/definitions/selectorConditionNotEndsWith"
750+
},
745751
{
746752
"$ref": "#/definitions/selectorConditionContains"
747753
},
754+
{
755+
"$ref": "#/definitions/selectorConditionNotContains"
756+
},
748757
{
749758
"$ref": "#/definitions/selectorConditionIsString"
750759
},
@@ -783,6 +792,12 @@
783792
},
784793
{
785794
"$ref": "#/definitions/selectorConditionNotWithinPath"
795+
},
796+
{
797+
"$ref": "#/definitions/selectorConditionLike"
798+
},
799+
{
800+
"$ref": "#/definitions/selectorConditionNotLike"
786801
}
787802
]
788803
},
@@ -1313,6 +1328,39 @@
13131328
}
13141329
]
13151330
},
1331+
"selectorConditionNotStartsWith": {
1332+
"type": "object",
1333+
"properties": {
1334+
"notStartsWith": {
1335+
"title": "Not starts with",
1336+
"description": "Must not start with any of the specified values.",
1337+
"markdownDescription": "Must not start with any of the specified values. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#notstartswith)",
1338+
"$ref": "#/definitions/selectorExpressionValueMultiString"
1339+
},
1340+
"convert": {
1341+
"type": "boolean",
1342+
"title": "Type conversion",
1343+
"description": "Convert type to string.",
1344+
"markdownDescription": "Convert type to string. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#notstartswith)",
1345+
"default": false
1346+
},
1347+
"caseSensitive": {
1348+
"type": "boolean",
1349+
"title": "Case sensitive",
1350+
"description": "Determines if comparing values is case-sensitive.",
1351+
"markdownDescription": "Determines if comparing values is case-sensitive. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#notstartswith)",
1352+
"default": false
1353+
}
1354+
},
1355+
"required": [
1356+
"notStartsWith"
1357+
],
1358+
"oneOf": [
1359+
{
1360+
"$ref": "#/definitions/selectorPropertiesString"
1361+
}
1362+
]
1363+
},
13161364
"selectorConditionEndsWith": {
13171365
"type": "object",
13181366
"properties": {
@@ -1346,6 +1394,39 @@
13461394
}
13471395
]
13481396
},
1397+
"selectorConditionNotEndsWith": {
1398+
"type": "object",
1399+
"properties": {
1400+
"notEndsWith": {
1401+
"title": "Not Ends with",
1402+
"description": "Must not end with any of the specified values.",
1403+
"markdownDescription": "Must not end with any of the specified values. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#notendswith)",
1404+
"$ref": "#/definitions/selectorExpressionValueMultiString"
1405+
},
1406+
"convert": {
1407+
"type": "boolean",
1408+
"title": "Type conversion",
1409+
"description": "Convert type to string.",
1410+
"markdownDescription": "Convert type to string. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#notendswith)",
1411+
"default": false
1412+
},
1413+
"caseSensitive": {
1414+
"type": "boolean",
1415+
"title": "Case sensitive",
1416+
"description": "Determines if comparing values is case-sensitive.",
1417+
"markdownDescription": "Determines if comparing values is case-sensitive. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#notendswith)",
1418+
"default": false
1419+
}
1420+
},
1421+
"required": [
1422+
"notEndsWith"
1423+
],
1424+
"oneOf": [
1425+
{
1426+
"$ref": "#/definitions/selectorPropertiesString"
1427+
}
1428+
]
1429+
},
13491430
"selectorConditionContains": {
13501431
"type": "object",
13511432
"properties": {
@@ -1379,6 +1460,39 @@
13791460
}
13801461
]
13811462
},
1463+
"selectorConditionNotContains": {
1464+
"type": "object",
1465+
"properties": {
1466+
"notContains": {
1467+
"title": "Not Contains",
1468+
"description": "Must not contain any of the specified values.",
1469+
"markdownDescription": "Must not contain any of the specified values. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#notcontains)",
1470+
"$ref": "#/definitions/selectorExpressionValueMultiString"
1471+
},
1472+
"convert": {
1473+
"type": "boolean",
1474+
"title": "Type conversion",
1475+
"description": "Convert type to string.",
1476+
"markdownDescription": "Convert type to string. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#notcontains)",
1477+
"default": false
1478+
},
1479+
"caseSensitive": {
1480+
"type": "boolean",
1481+
"title": "Case sensitive",
1482+
"description": "Determines if comparing values is case-sensitive.",
1483+
"markdownDescription": "Determines if comparing values is case-sensitive. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#notcontains)",
1484+
"default": false
1485+
}
1486+
},
1487+
"required": [
1488+
"notContains"
1489+
],
1490+
"oneOf": [
1491+
{
1492+
"$ref": "#/definitions/selectorPropertiesString"
1493+
}
1494+
]
1495+
},
13821496
"selectorConditionIsString": {
13831497
"type": "object",
13841498
"properties": {
@@ -1716,6 +1830,72 @@
17161830
}
17171831
]
17181832
},
1833+
"selectorConditionLike": {
1834+
"type": "object",
1835+
"properties": {
1836+
"like": {
1837+
"title": "Like",
1838+
"description": "Must match any of the specified wildcard patterns.",
1839+
"markdownDescription": "Must match any of the specified wildcard patterns. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#like)",
1840+
"$ref": "#/definitions/selectorExpressionValueMultiString"
1841+
},
1842+
"convert": {
1843+
"type": "boolean",
1844+
"title": "Type conversion",
1845+
"description": "Convert type to string.",
1846+
"markdownDescription": "Convert type to string. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#like)",
1847+
"default": false
1848+
},
1849+
"caseSensitive": {
1850+
"type": "boolean",
1851+
"title": "Case sensitive",
1852+
"description": "Determines if comparing values is case-sensitive.",
1853+
"markdownDescription": "Determines if comparing values is case-sensitive. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#like)",
1854+
"default": false
1855+
}
1856+
},
1857+
"required": [
1858+
"like"
1859+
],
1860+
"oneOf": [
1861+
{
1862+
"$ref": "#/definitions/selectorPropertiesString"
1863+
}
1864+
]
1865+
},
1866+
"selectorConditionNotLike": {
1867+
"type": "object",
1868+
"properties": {
1869+
"notLike": {
1870+
"title": "Not like",
1871+
"description": "Must not match any of the specified wildcard patterns.",
1872+
"markdownDescription": "Must not match any of the specified wildcard patterns. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#notlike)",
1873+
"$ref": "#/definitions/selectorExpressionValueMultiString"
1874+
},
1875+
"convert": {
1876+
"type": "boolean",
1877+
"title": "Type conversion",
1878+
"description": "Convert type to string.",
1879+
"markdownDescription": "Convert type to string. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#notlike)",
1880+
"default": false
1881+
},
1882+
"caseSensitive": {
1883+
"type": "boolean",
1884+
"title": "Case sensitive",
1885+
"description": "Determines if comparing values is case-sensitive.",
1886+
"markdownDescription": "Determines if comparing values is case-sensitive. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#notlike)",
1887+
"default": false
1888+
}
1889+
},
1890+
"required": [
1891+
"notLike"
1892+
],
1893+
"oneOf": [
1894+
{
1895+
"$ref": "#/definitions/selectorPropertiesString"
1896+
}
1897+
]
1898+
},
17191899
"selectorExpressionValueMultiString": {
17201900
"oneOf": [
17211901
{

0 commit comments

Comments
 (0)