remove additionalProperties: false in schema to allow comments #5697

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed Jan 15, 2024 at 19:45 UTC d02b63a4a2f5652e218801fffff455532d5e6eb1
1 file changed -33
meshcentral-config-schema.json
-33
@@ -559,7 +559,6 @@
559 "webPush": {
560 "type": "object",
561 "description": "When set with a valid email address, enables the MeshCentral web push notification feature. Allows administrators to send browser notifications to users even if they are not looking at the MeshCentral web site.",
562 - "additionalProperties": false,
562 "properties": {
563 "email": {
564 "type": "string",
@@ -664,7 +663,6 @@
663 "localDiscovery": {
664 "type": "object",
665 "description": "When this server is in LAN mode, you may discover this server using a multicast discovery tool. When discovery happens, the name and info fields are sent back to the discovery tool.",
667 - "additionalProperties": false,
666 "properties": {
667 "name": {
668 "type": "string"
@@ -753,7 +751,6 @@
751 },
752 "webrtcConfig": {
753 "type": "object",
756 - "additionalProperties": false,
754 "description": "The STUN servers used for WebRTC, if not specified the Google and Mozilla servers and used when the server is not in LAN mode.",
755 "properties": {
756 "iceServers": {
@@ -761,7 +758,6 @@
758 "uniqueItems": true,
759 "items": {
760 "type": "object",
764 - "additionalProperties": false,
761 "properties": {
762 "urls": {
763 "type": "string"
@@ -779,7 +775,6 @@
775 },
776 "crowdsec": {
777 "type": "object",
782 - "additionalProperties": true,
778 "description": "Enabled the MeshCentral built-in Crowdsec bouncer. This section is passed directly to the bouncer, all of the settings are documented at https://www.npmjs.com/package/@crowdsec/express-bouncer",
779 "properties": {
780 "url": {
@@ -883,7 +878,6 @@
878 },
879 "maxInvalidLogin": {
880 "type": "object",
886 - "additionalProperties": false,
881 "description": "This section described a policy for how many times an IP address is allowed to attempt to login incorrectly. By default it's 10 times in 10 minutes, but this can be changed here.",
882 "properties": {
883 "exclude": {
@@ -910,7 +904,6 @@
904 },
905 "maxInvalid2fa": {
906 "type": "object",
913 - "additionalProperties": false,
907 "description": "This section described a policy for how many times an IP address is allowed to attempt to perform two-factor authentication (2FA) incorrectly. By default it's 10 times in 10 minutes, but this can be changed here.",
908 "properties": {
909 "exclude": {
@@ -937,7 +930,6 @@
930 },
931 "amtProvisioningServer": {
932 "type": "object",
940 - "additionalProperties": false,
933 "required": [
934 "deviceGroup",
935 "newMebxPassword",
@@ -1344,7 +1336,6 @@
1336 "type": "array",
1337 "items": {
1338 "type": "object",
1347 - "additionalProperties": false,
1339 "required": [
1340 "name",
1341 "protocol",
@@ -1404,7 +1395,6 @@
1395 "object",
1396 "boolean"
1397 ],
1407 - "additionalProperties": false,
1398 "properties": {
1399 "Backup": {
1400 "type": "boolean",
@@ -1629,7 +1619,6 @@
1619 ],
1620 "default": false,
1621 "description": "When set to true or set to an object, MeshCentral will synchronize LDAP user memberships to MeshCentral user groups.",
1632 - "additionalProperties": false,
1622 "properties": {
1623 "filter": {
1624 "type": [
@@ -1684,7 +1673,6 @@
1673 "agentTag": {
1674 "type": "object",
1675 "description": "This section is used to indicate if parts of the meshagent.tag file should be used to set server-side device properties.",
1687 - "additionalProperties": false,
1676 "properties": {
1677 "ServerName": {
1678 "type": "integer",
@@ -1738,7 +1726,6 @@
1726 "consentMessages": {
1727 "type": "object",
1728 "description": "This section is used to customize user consent prompts, these show up when asking if a remote session is allowed or not.",
1741 - "additionalProperties": false,
1729 "properties": {
1730 "Title": {
1731 "type": "string"
@@ -1766,7 +1753,6 @@
1753 },
1754 "notificationMessages": {
1755 "type": "object",
1769 - "additionalProperties": false,
1756 "description": "This section is user to customize user notifications when a remote desktop, terminal or file session is connected to a remote system.",
1757 "properties": {
1758 "Title": {
@@ -1785,7 +1771,6 @@
1771 },
1772 "agentCustomization": {
1773 "type": "object",
1788 - "additionalProperties": false,
1774 "description": "Use this section to customize the agent branding.",
1775 "properties": {
1776 "displayName": {
@@ -1837,7 +1822,6 @@
1822 },
1823 "agentFileInfo": {
1824 "type": "object",
1840 - "additionalProperties": false,
1825 "description": "Use this section to set resource metadata of the Windows agents prior to signing. In Windows, you can right-click and select properties to view these values.",
1826 "properties": {
1827 "icon": {
@@ -1876,7 +1860,6 @@
1860 },
1861 "assistantCustomization": {
1862 "type": "object",
1879 - "additionalProperties": false,
1863 "description": "Use this section to customize the MeshCentral Assistant.",
1864 "properties": {
1865 "title": {
@@ -1898,7 +1881,6 @@
1881 },
1882 "androidCustomization": {
1883 "type": "object",
1901 - "additionalProperties": false,
1884 "description": "Use this section to customize the MeshCentral Agent for Android.",
1885 "properties": {
1886 "title": {
@@ -1967,7 +1949,6 @@
1949 },
1950 "userConsentFlags": {
1951 "type": "object",
1970 - "additionalProperties": false,
1952 "description": "Use this section to require user consent for this domain.",
1953 "properties": {
1954 "desktopnotify": {
@@ -2018,7 +1999,6 @@
1999 },
2000 "limits": {
2001 "type": "object",
2021 - "additionalProperties": false,
2002 "properties": {
2003 "MaxDevices": {
2004 "type": "integer",
@@ -2120,7 +2100,6 @@
2100 },
2101 "amtManager": {
2102 "type": "object",
2123 - "additionalProperties": false,
2103 "description": "Information passed to the AMT manager module that impacts all Intel AMT device managed within this domain.",
2104 "properties": {
2105 "TlsConnections": {
@@ -2138,7 +2117,6 @@
2117 "type": "array",
2118 "items": {
2119 "type": "object",
2141 - "additionalProperties": false,
2120 "required": [
2121 "pass"
2122 ],
@@ -2192,7 +2170,6 @@
2170 "type": "array",
2171 "items": {
2172 "type": "object",
2195 - "additionalProperties": false,
2173 "required": [
2174 "ssid"
2175 ],
@@ -2237,7 +2214,6 @@
2214 "description": "802.1x settings for this WIFI profile. Only required if the WIFI authentication type has 802.1x",
2215 "default": null,
2216 "type": "object",
2240 - "additionalProperties": false,
2217 "required": [
2218 "authenticationProtocol"
2219 ],
@@ -2351,7 +2327,6 @@
2327 "object",
2328 "boolean"
2329 ],
2354 - "additionalProperties": false,
2330 "required": [
2331 "authenticationProtocol"
2332 ],
@@ -2458,7 +2433,6 @@
2433 },
2434 "amtAcmActivation": {
2435 "type": "object",
2461 - "additionalProperties": false,
2436 "properties": {
2437 "log": {
2438 "type": "string"
@@ -2472,7 +2446,6 @@
2446 "type": "object",
2447 "additionalProperties": {
2448 "type": "object",
2475 - "additionalProperties": false,
2449 "properties": {
2450 "certfiles": {
2451 "type": "array",
@@ -2505,7 +2478,6 @@
2478 },
2479 "yubikey": {
2480 "type": "object",
2508 - "additionalProperties": false,
2481 "properties": {
2482 "id": {
2483 "type": "string"
@@ -2564,7 +2536,6 @@
2536 },
2537 "sessionRecording": {
2538 "type": "object",
2567 - "additionalProperties": false,
2539 "properties": {
2540 "onlySelectedUsers": {
2541 "type": "boolean",
@@ -2754,11 +2725,9 @@
2725 },
2726 "authStrategies": {
2727 "type": "object",
2757 - "additionalProperties": false,
2728 "properties": {
2729 "twitter": {
2730 "type": "object",
2761 - "additionalProperties": false,
2731 "properties": {
2732 "callbackurl": {
2733 "type": "string",
@@ -3135,7 +3104,6 @@
3104 "title": "Built-in Let's Encrypt support",
3105 "description": "If your server has a proper DNS name and it public facing on the Internet with a public facing HTTP server on port 80, you can get a free TLS certificate.",
3106 "type": "object",
3138 - "additionalProperties": false,
3107 "properties": {
3108 "email": {
3109 "type": "string",
@@ -3169,7 +3137,6 @@
3137 "propertyNames": {
3138 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
3139 },
3172 - "additionalProperties": false,
3140 "properties": {
3141 "serverId": {
3142 "type": "string"