remove additionalProperties: false in schema to allow comments #5697

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2024-01-15 19:45:46 +00:00
parent 1295af4677
commit d02b63a4a2

View File

@ -559,7 +559,6 @@
"webPush": { "webPush": {
"type": "object", "type": "object",
"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.", "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.",
"additionalProperties": false,
"properties": { "properties": {
"email": { "email": {
"type": "string", "type": "string",
@ -664,7 +663,6 @@
"localDiscovery": { "localDiscovery": {
"type": "object", "type": "object",
"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.", "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.",
"additionalProperties": false,
"properties": { "properties": {
"name": { "name": {
"type": "string" "type": "string"
@ -753,7 +751,6 @@
}, },
"webrtcConfig": { "webrtcConfig": {
"type": "object", "type": "object",
"additionalProperties": false,
"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.", "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.",
"properties": { "properties": {
"iceServers": { "iceServers": {
@ -761,7 +758,6 @@
"uniqueItems": true, "uniqueItems": true,
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"urls": { "urls": {
"type": "string" "type": "string"
@ -779,7 +775,6 @@
}, },
"crowdsec": { "crowdsec": {
"type": "object", "type": "object",
"additionalProperties": true,
"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", "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",
"properties": { "properties": {
"url": { "url": {
@ -883,7 +878,6 @@
}, },
"maxInvalidLogin": { "maxInvalidLogin": {
"type": "object", "type": "object",
"additionalProperties": false,
"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.", "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.",
"properties": { "properties": {
"exclude": { "exclude": {
@ -910,7 +904,6 @@
}, },
"maxInvalid2fa": { "maxInvalid2fa": {
"type": "object", "type": "object",
"additionalProperties": false,
"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.", "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.",
"properties": { "properties": {
"exclude": { "exclude": {
@ -937,7 +930,6 @@
}, },
"amtProvisioningServer": { "amtProvisioningServer": {
"type": "object", "type": "object",
"additionalProperties": false,
"required": [ "required": [
"deviceGroup", "deviceGroup",
"newMebxPassword", "newMebxPassword",
@ -1344,7 +1336,6 @@
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": false,
"required": [ "required": [
"name", "name",
"protocol", "protocol",
@ -1404,7 +1395,6 @@
"object", "object",
"boolean" "boolean"
], ],
"additionalProperties": false,
"properties": { "properties": {
"Backup": { "Backup": {
"type": "boolean", "type": "boolean",
@ -1629,7 +1619,6 @@
], ],
"default": false, "default": false,
"description": "When set to true or set to an object, MeshCentral will synchronize LDAP user memberships to MeshCentral user groups.", "description": "When set to true or set to an object, MeshCentral will synchronize LDAP user memberships to MeshCentral user groups.",
"additionalProperties": false,
"properties": { "properties": {
"filter": { "filter": {
"type": [ "type": [
@ -1684,7 +1673,6 @@
"agentTag": { "agentTag": {
"type": "object", "type": "object",
"description": "This section is used to indicate if parts of the meshagent.tag file should be used to set server-side device properties.", "description": "This section is used to indicate if parts of the meshagent.tag file should be used to set server-side device properties.",
"additionalProperties": false,
"properties": { "properties": {
"ServerName": { "ServerName": {
"type": "integer", "type": "integer",
@ -1738,7 +1726,6 @@
"consentMessages": { "consentMessages": {
"type": "object", "type": "object",
"description": "This section is used to customize user consent prompts, these show up when asking if a remote session is allowed or not.", "description": "This section is used to customize user consent prompts, these show up when asking if a remote session is allowed or not.",
"additionalProperties": false,
"properties": { "properties": {
"Title": { "Title": {
"type": "string" "type": "string"
@ -1766,7 +1753,6 @@
}, },
"notificationMessages": { "notificationMessages": {
"type": "object", "type": "object",
"additionalProperties": false,
"description": "This section is user to customize user notifications when a remote desktop, terminal or file session is connected to a remote system.", "description": "This section is user to customize user notifications when a remote desktop, terminal or file session is connected to a remote system.",
"properties": { "properties": {
"Title": { "Title": {
@ -1785,7 +1771,6 @@
}, },
"agentCustomization": { "agentCustomization": {
"type": "object", "type": "object",
"additionalProperties": false,
"description": "Use this section to customize the agent branding.", "description": "Use this section to customize the agent branding.",
"properties": { "properties": {
"displayName": { "displayName": {
@ -1837,7 +1822,6 @@
}, },
"agentFileInfo": { "agentFileInfo": {
"type": "object", "type": "object",
"additionalProperties": false,
"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.", "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.",
"properties": { "properties": {
"icon": { "icon": {
@ -1876,7 +1860,6 @@
}, },
"assistantCustomization": { "assistantCustomization": {
"type": "object", "type": "object",
"additionalProperties": false,
"description": "Use this section to customize the MeshCentral Assistant.", "description": "Use this section to customize the MeshCentral Assistant.",
"properties": { "properties": {
"title": { "title": {
@ -1898,7 +1881,6 @@
}, },
"androidCustomization": { "androidCustomization": {
"type": "object", "type": "object",
"additionalProperties": false,
"description": "Use this section to customize the MeshCentral Agent for Android.", "description": "Use this section to customize the MeshCentral Agent for Android.",
"properties": { "properties": {
"title": { "title": {
@ -1967,7 +1949,6 @@
}, },
"userConsentFlags": { "userConsentFlags": {
"type": "object", "type": "object",
"additionalProperties": false,
"description": "Use this section to require user consent for this domain.", "description": "Use this section to require user consent for this domain.",
"properties": { "properties": {
"desktopnotify": { "desktopnotify": {
@ -2018,7 +1999,6 @@
}, },
"limits": { "limits": {
"type": "object", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"MaxDevices": { "MaxDevices": {
"type": "integer", "type": "integer",
@ -2120,7 +2100,6 @@
}, },
"amtManager": { "amtManager": {
"type": "object", "type": "object",
"additionalProperties": false,
"description": "Information passed to the AMT manager module that impacts all Intel AMT device managed within this domain.", "description": "Information passed to the AMT manager module that impacts all Intel AMT device managed within this domain.",
"properties": { "properties": {
"TlsConnections": { "TlsConnections": {
@ -2138,7 +2117,6 @@
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": false,
"required": [ "required": [
"pass" "pass"
], ],
@ -2192,7 +2170,6 @@
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": false,
"required": [ "required": [
"ssid" "ssid"
], ],
@ -2237,7 +2214,6 @@
"description": "802.1x settings for this WIFI profile. Only required if the WIFI authentication type has 802.1x", "description": "802.1x settings for this WIFI profile. Only required if the WIFI authentication type has 802.1x",
"default": null, "default": null,
"type": "object", "type": "object",
"additionalProperties": false,
"required": [ "required": [
"authenticationProtocol" "authenticationProtocol"
], ],
@ -2351,7 +2327,6 @@
"object", "object",
"boolean" "boolean"
], ],
"additionalProperties": false,
"required": [ "required": [
"authenticationProtocol" "authenticationProtocol"
], ],
@ -2458,7 +2433,6 @@
}, },
"amtAcmActivation": { "amtAcmActivation": {
"type": "object", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"log": { "log": {
"type": "string" "type": "string"
@ -2472,7 +2446,6 @@
"type": "object", "type": "object",
"additionalProperties": { "additionalProperties": {
"type": "object", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"certfiles": { "certfiles": {
"type": "array", "type": "array",
@ -2505,7 +2478,6 @@
}, },
"yubikey": { "yubikey": {
"type": "object", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string"
@ -2564,7 +2536,6 @@
}, },
"sessionRecording": { "sessionRecording": {
"type": "object", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"onlySelectedUsers": { "onlySelectedUsers": {
"type": "boolean", "type": "boolean",
@ -2754,11 +2725,9 @@
}, },
"authStrategies": { "authStrategies": {
"type": "object", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"twitter": { "twitter": {
"type": "object", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"callbackurl": { "callbackurl": {
"type": "string", "type": "string",
@ -3135,7 +3104,6 @@
"title": "Built-in Let's Encrypt support", "title": "Built-in Let's Encrypt support",
"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.", "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.",
"type": "object", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"email": { "email": {
"type": "string", "type": "string",
@ -3169,7 +3137,6 @@
"propertyNames": { "propertyNames": {
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$" "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
}, },
"additionalProperties": false,
"properties": { "properties": {
"serverId": { "serverId": {
"type": "string" "type": "string"