fix(schema): correct formatting and add patternProperties for disabled settings (#7402)

silversword411 committed Oct 31, 2025 at 06:39 UTC 3922d7b4d05a5b1a4efbbc8c74a35a0f8736caa6
1 file changed +32 -8
meshcentral-config-schema.json
+32 -8
@@ -889,7 +889,7 @@
889 "mongoDumpArgs": {
890 "type": "string",
891 "description": "Override the default mongodump --uri=<mongoDb>. The --db= option is automatically appended if omitted. (f.e. --host=127.0.0.1 --username=someUser --password=PaSsWORD --authenticationDatabase=admin)"
892 - },
892 + },
893 "mysqlDumpPath": {
894 "type": "string",
895 "default": "mysqldump",
@@ -1172,6 +1172,14 @@
1172 }
1173 }
1174 }
1175 + },
1176 + "patternProperties": {
1177 + "^_.*": {
1178 + "type": "null",
1179 + "x-disabled": true,
1180 + "x-enabled-name": "Remove underscore prefix to enable",
1181 + "errorMessage": "⚠️ DISABLED SETTING - This setting is currently disabled. Remove the underscore (_) prefix to enable it."
1182 + }
1183 }
1184 },
1185 "domaindefaults": {
@@ -1326,7 +1334,7 @@
1334 "items": {
1335 "type": "string"
1336 },
1329 - "description": "When set, new accounts will be added to these groups."
1337 + "description": "When set, new accounts will be added to these groups."
1338 },
1339 "userNameIsEmail": {
1340 "type": "boolean",
@@ -1793,11 +1801,11 @@
1801 "default": null,
1802 "description": "Maximum number of FIDO/YubikeyOTP hardware 2FA keys that can be setup in a user account."
1803 },
1796 - "fidopininput": {
1797 - "type": "string",
1798 - "default": "preferred",
1804 + "fidopininput": {
1805 + "type": "string",
1806 + "default": "preferred",
1807 "enum": ["preferred", "required", "discouraged"],
1800 - "description": "Controls FIDO PIN prompt behavior: 'preferred' (asks only if key requires PIN), 'required' (always asks for PIN), or 'discouraged' (never asks for PIN). Default: 'preferred'."
1808 + "description": "Controls FIDO PIN prompt behavior: 'preferred' (asks only if key requires PIN), 'required' (always asks for PIN), or 'discouraged' (never asks for PIN). Default: 'preferred'."
1809 },
1810 "allowaccountreset": {
1811 "type": "boolean",
@@ -3328,7 +3336,7 @@
3336 },
3337 "newAccountsUserGroups": {
3338 "type": "array",
3331 - "description": "When set, new accounts will be created for users that authenticate with Azure and added to the specified groups.",
3339 + "description": "When set, new accounts will be created for users that authenticate with Azure and added to the specified groups.",
3340 "uniqueItems": true,
3341 "items": {
3342 "type": "string"
@@ -3961,6 +3969,14 @@
3969 "bottom"
3970 ]
3971 }
3972 + },
3973 + "patternProperties": {
3974 + "^_.*": {
3975 + "type": "null",
3976 + "x-disabled": true,
3977 + "x-enabled-name": "Remove underscore prefix to enable",
3978 + "errorMessage": "⚠️ DISABLED SETTING - This setting is currently disabled. Remove the underscore (_) prefix to enable it."
3979 + }
3980 }
3981 }
3982 },
@@ -4230,7 +4246,7 @@
4246 "description": "Twilio SID"
4247 },
4248 "auth": {
4233 - "type": "string",
4249 + "type": "string",
4250 "description": "Twilio Auth Token"
4251 },
4252 "from": {
@@ -4464,5 +4480,13 @@
4480 }
4481 }
4482 }
4483 + },
4484 + "patternProperties": {
4485 + "^_.*": {
4486 + "type": "null",
4487 + "x-disabled": true,
4488 + "x-enabled-name": "Remove underscore prefix to enable",
4489 + "errorMessage": "⚠️ DISABLED SECTION - This section is currently disabled. Remove the underscore (_) prefix to enable it."
4490 + }
4491 }
4492 }