|
41 | 41 | "additionalProperties": false, |
42 | 42 | "properties": { |
43 | 43 | "enabled": { |
44 | | - "type": "boolean", |
45 | | - "description": "Enable health check endpoint", |
| 44 | + "$ref": "#/$defs/boolean-or-string", |
| 45 | + "description": "Enable health check endpoint for something", |
46 | 46 | "default": true, |
47 | 47 | "additionalProperties": false |
48 | 48 | }, |
|
186 | 186 | "type": "string" |
187 | 187 | }, |
188 | 188 | "enabled": { |
189 | | - "type": "boolean", |
| 189 | + "$ref": "#/$defs/boolean-or-string", |
190 | 190 | "description": "Allow enabling/disabling REST requests for all entities." |
191 | 191 | }, |
192 | 192 | "request-body-strict": { |
|
210 | 210 | "type": "string" |
211 | 211 | }, |
212 | 212 | "enabled": { |
213 | | - "type": "boolean", |
| 213 | + "$ref": "#/$defs/boolean-or-string", |
214 | 214 | "description": "Allow enabling/disabling GraphQL requests for all entities." |
215 | 215 | }, |
216 | 216 | "depth-limit": { |
|
438 | 438 | "description": "Application Insights connection string" |
439 | 439 | }, |
440 | 440 | "enabled": { |
441 | | - "type": "boolean", |
| 441 | + "$ref": "#/$defs/boolean-or-string", |
442 | 442 | "description": "Allow enabling/disabling Application Insights telemetry.", |
443 | 443 | "default": true |
444 | 444 | } |
|
481 | 481 | "additionalProperties": false, |
482 | 482 | "properties": { |
483 | 483 | "enabled": { |
484 | | - "type": "boolean", |
| 484 | + "$ref": "#/$defs/boolean-or-string", |
485 | 485 | "description": "Allow enabling/disabling Azure Log Analytics.", |
486 | 486 | "default": false |
487 | 487 | }, |
|
618 | 618 | "additionalProperties": false, |
619 | 619 | "properties": { |
620 | 620 | "enabled": { |
621 | | - "type": "boolean", |
| 621 | + "$ref": "#/$defs/boolean-or-string", |
622 | 622 | "description": "Enable health check endpoint globally", |
623 | 623 | "default": true, |
624 | 624 | "additionalProperties": false |
|
1391 | 1391 | "type": "string" |
1392 | 1392 | } |
1393 | 1393 | }, |
1394 | | - "required": ["singular"] |
| 1394 | + "required": [ "singular" ] |
| 1395 | + } |
| 1396 | + ] |
| 1397 | + }, |
| 1398 | + "boolean-or-string": { |
| 1399 | + "oneOf":[ |
| 1400 | + { |
| 1401 | + "type": [ "boolean", "string" ], |
| 1402 | + "pattern": "^(?:true|false|1|0|@env\\('.*'\\)|@akv\\('.*'\\))$" |
1395 | 1403 | } |
1396 | 1404 | ] |
1397 | 1405 | }, |
|
0 commit comments