|
478 | 478 | "if": {
|
479 | 479 | "type": "object",
|
480 | 480 | "title": "If",
|
481 |
| - "description": "A condition is made up of one or more expressions that will determine if an object is selected by the selector.", |
482 |
| - "markdownDescription": "A condition is made up of one or more [expressions](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/) that will determine if an object is selected by the selector. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Selectors/)", |
| 481 | + "description": "A condition made up of one or more expressions that will determine if an object is selected by the selector.", |
| 482 | + "markdownDescription": "A condition made up of one or more [expressions](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/) that will determine if an object is selected by the selector. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Selectors/)", |
483 | 483 | "$ref": "#/definitions/expressions"
|
484 | 484 | }
|
485 | 485 | },
|
|
551 | 551 | },
|
552 | 552 | "if": {
|
553 | 553 | "type": "object",
|
| 554 | + "title": "If", |
| 555 | + "description": "A condition made up of one or more expressions that will determine if the rule is suppressed.", |
| 556 | + "markdownDescription": "A condition made up of one or more [expressions](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/) that will determine if the rule is suppressed. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_SuppressionGroups/)", |
554 | 557 | "$ref": "#/definitions/expressions"
|
555 | 558 | }
|
556 | 559 | },
|
|
999 | 1002 | },
|
1000 | 1003 | {
|
1001 | 1004 | "$ref": "#/definitions/expressions/definitions/operands/definitions/source"
|
| 1005 | + }, |
| 1006 | + { |
| 1007 | + "$ref": "#/definitions/expressions/definitions/operands/definitions/scope" |
1002 | 1008 | }
|
1003 | 1009 | ],
|
1004 | 1010 | "definitions": {
|
|
1078 | 1084 | "required": [
|
1079 | 1085 | "source"
|
1080 | 1086 | ]
|
| 1087 | + }, |
| 1088 | + "scope": { |
| 1089 | + "type": "object", |
| 1090 | + "properties": { |
| 1091 | + "scope": { |
| 1092 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
| 1093 | + } |
| 1094 | + }, |
| 1095 | + "required": [ |
| 1096 | + "scope" |
| 1097 | + ] |
1081 | 1098 | }
|
1082 | 1099 | }
|
1083 | 1100 | },
|
|
1151 | 1168 | "description": "The source of the object currently being processed by the pipeline.",
|
1152 | 1169 | "markdownDescription": "The source of the object currently being processed by the pipeline. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#source)",
|
1153 | 1170 | "default": ""
|
| 1171 | + }, |
| 1172 | + "scope": { |
| 1173 | + "type": "string", |
| 1174 | + "title": "Scope", |
| 1175 | + "description": "The scope of the object currently being processed by the pipeline.", |
| 1176 | + "markdownDescription": "The scope of the object currently being processed by the pipeline. [See help](https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#scope)", |
| 1177 | + "default": ".", |
| 1178 | + "enum": [ |
| 1179 | + "." |
| 1180 | + ] |
1154 | 1181 | }
|
1155 | 1182 | }
|
1156 | 1183 | },
|
|
1315 | 1342 | },
|
1316 | 1343 | "source": {
|
1317 | 1344 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 1345 | + }, |
| 1346 | + "scope": { |
| 1347 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
1318 | 1348 | }
|
1319 | 1349 | },
|
1320 | 1350 | "required": [
|
|
1407 | 1437 | },
|
1408 | 1438 | "source": {
|
1409 | 1439 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 1440 | + }, |
| 1441 | + "scope": { |
| 1442 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
1410 | 1443 | }
|
1411 | 1444 | },
|
1412 | 1445 | "required": [
|
|
1465 | 1498 | },
|
1466 | 1499 | "source": {
|
1467 | 1500 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 1501 | + }, |
| 1502 | + "scope": { |
| 1503 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
1468 | 1504 | }
|
1469 | 1505 | },
|
1470 | 1506 | "required": [
|
|
1500 | 1536 | },
|
1501 | 1537 | "source": {
|
1502 | 1538 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 1539 | + }, |
| 1540 | + "scope": { |
| 1541 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
1503 | 1542 | }
|
1504 | 1543 | },
|
1505 | 1544 | "required": [
|
|
1538 | 1577 | },
|
1539 | 1578 | "source": {
|
1540 | 1579 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 1580 | + }, |
| 1581 | + "scope": { |
| 1582 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
1541 | 1583 | }
|
1542 | 1584 | },
|
1543 | 1585 | "required": [
|
|
1576 | 1618 | },
|
1577 | 1619 | "source": {
|
1578 | 1620 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 1621 | + }, |
| 1622 | + "scope": { |
| 1623 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
1579 | 1624 | }
|
1580 | 1625 | },
|
1581 | 1626 | "required": [
|
|
1751 | 1796 | },
|
1752 | 1797 | "source": {
|
1753 | 1798 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 1799 | + }, |
| 1800 | + "scope": { |
| 1801 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
1754 | 1802 | }
|
1755 | 1803 | },
|
1756 | 1804 | "required": [
|
|
1802 | 1850 | },
|
1803 | 1851 | "source": {
|
1804 | 1852 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 1853 | + }, |
| 1854 | + "scope": { |
| 1855 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
1805 | 1856 | }
|
1806 | 1857 | },
|
1807 | 1858 | "required": [
|
|
1853 | 1904 | },
|
1854 | 1905 | "source": {
|
1855 | 1906 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 1907 | + }, |
| 1908 | + "scope": { |
| 1909 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
1856 | 1910 | }
|
1857 | 1911 | },
|
1858 | 1912 | "required": [
|
|
1904 | 1958 | },
|
1905 | 1959 | "source": {
|
1906 | 1960 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 1961 | + }, |
| 1962 | + "scope": { |
| 1963 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
1907 | 1964 | }
|
1908 | 1965 | },
|
1909 | 1966 | "required": [
|
|
1954 | 2011 | },
|
1955 | 2012 | "source": {
|
1956 | 2013 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 2014 | + }, |
| 2015 | + "scope": { |
| 2016 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
1957 | 2017 | }
|
1958 | 2018 | },
|
1959 | 2019 | "required": [
|
|
2003 | 2063 | },
|
2004 | 2064 | "source": {
|
2005 | 2065 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 2066 | + }, |
| 2067 | + "scope": { |
| 2068 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
2006 | 2069 | }
|
2007 | 2070 | },
|
2008 | 2071 | "required": [
|
|
2053 | 2116 | },
|
2054 | 2117 | "source": {
|
2055 | 2118 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 2119 | + }, |
| 2120 | + "scope": { |
| 2121 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
2056 | 2122 | }
|
2057 | 2123 | },
|
2058 | 2124 | "required": [
|
|
2102 | 2168 | },
|
2103 | 2169 | "source": {
|
2104 | 2170 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 2171 | + }, |
| 2172 | + "scope": { |
| 2173 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
2105 | 2174 | }
|
2106 | 2175 | },
|
2107 | 2176 | "required": [
|
|
2159 | 2228 | },
|
2160 | 2229 | "source": {
|
2161 | 2230 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 2231 | + }, |
| 2232 | + "scope": { |
| 2233 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
2162 | 2234 | }
|
2163 | 2235 | },
|
2164 | 2236 | "required": [
|
|
2209 | 2281 | },
|
2210 | 2282 | "source": {
|
2211 | 2283 | "$ref": "#/definitions/expressions/definitions/properties/definitions/source"
|
| 2284 | + }, |
| 2285 | + "scope": { |
| 2286 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/scope" |
2212 | 2287 | }
|
2213 | 2288 | },
|
2214 | 2289 | "required": [
|
|
2234 | 2309 | "field": {
|
2235 | 2310 | "$ref": "#/definitions/expressions/definitions/properties/definitions/field"
|
2236 | 2311 | },
|
| 2312 | + "name": { |
| 2313 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/name" |
| 2314 | + }, |
2237 | 2315 | "value": {
|
2238 | 2316 | "$ref": "#/definitions/expressions/definitions/properties/definitions/value"
|
2239 | 2317 | }
|
|
2246 | 2324 | "$ref": "#/definitions/expressions/definitions/operands"
|
2247 | 2325 | }
|
2248 | 2326 | ],
|
2249 |
| - "additionalProperties": false |
| 2327 | + "additionalProperties": false, |
| 2328 | + "minProperties": 2 |
2250 | 2329 | },
|
2251 | 2330 | "isArray": {
|
2252 | 2331 | "type": "object",
|
|
2425 | 2504 | "field": {
|
2426 | 2505 | "$ref": "#/definitions/expressions/definitions/properties/definitions/field"
|
2427 | 2506 | },
|
| 2507 | + "name": { |
| 2508 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/name" |
| 2509 | + }, |
2428 | 2510 | "value": {
|
2429 | 2511 | "$ref": "#/definitions/expressions/definitions/properties/definitions/value"
|
2430 | 2512 | }
|
|
2453 | 2535 | "field": {
|
2454 | 2536 | "$ref": "#/definitions/expressions/definitions/properties/definitions/field"
|
2455 | 2537 | },
|
| 2538 | + "name": { |
| 2539 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/name" |
| 2540 | + }, |
2456 | 2541 | "value": {
|
2457 | 2542 | "$ref": "#/definitions/expressions/definitions/properties/definitions/value"
|
2458 | 2543 | }
|
|
2618 | 2703 | },
|
2619 | 2704 | "value": {
|
2620 | 2705 | "$ref": "#/definitions/expressions/definitions/properties/definitions/value"
|
| 2706 | + }, |
| 2707 | + "source": { |
| 2708 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/source" |
2621 | 2709 | }
|
2622 | 2710 | },
|
2623 | 2711 | "required": [
|
|
2629 | 2717 | }
|
2630 | 2718 | ],
|
2631 | 2719 | "additionalProperties": false,
|
2632 |
| - "maxProperties": 2 |
| 2720 | + "minProperties": 2 |
2633 | 2721 | },
|
2634 | 2722 | "notWithinPath": {
|
2635 | 2723 | "type": "object",
|
|
2657 | 2745 | },
|
2658 | 2746 | "value": {
|
2659 | 2747 | "$ref": "#/definitions/expressions/definitions/properties/definitions/value"
|
| 2748 | + }, |
| 2749 | + "source": { |
| 2750 | + "$ref": "#/definitions/expressions/definitions/properties/definitions/source" |
2660 | 2751 | }
|
2661 | 2752 | },
|
2662 | 2753 | "required": [
|
|
0 commit comments