mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-06 20:33:03 -05:00
fix(schema): correct formatting and add patternProperties for disabled settings (#7402)
This commit is contained in:
@@ -889,7 +889,7 @@
|
|||||||
"mongoDumpArgs": {
|
"mongoDumpArgs": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"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)"
|
"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)"
|
||||||
},
|
},
|
||||||
"mysqlDumpPath": {
|
"mysqlDumpPath": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "mysqldump",
|
"default": "mysqldump",
|
||||||
@@ -1172,6 +1172,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"patternProperties": {
|
||||||
|
"^_.*": {
|
||||||
|
"type": "null",
|
||||||
|
"x-disabled": true,
|
||||||
|
"x-enabled-name": "Remove underscore prefix to enable",
|
||||||
|
"errorMessage": "⚠️ DISABLED SETTING - This setting is currently disabled. Remove the underscore (_) prefix to enable it."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"domaindefaults": {
|
"domaindefaults": {
|
||||||
@@ -1326,7 +1334,7 @@
|
|||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"description": "When set, new accounts will be added to these groups."
|
"description": "When set, new accounts will be added to these groups."
|
||||||
},
|
},
|
||||||
"userNameIsEmail": {
|
"userNameIsEmail": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
@@ -1793,11 +1801,11 @@
|
|||||||
"default": null,
|
"default": null,
|
||||||
"description": "Maximum number of FIDO/YubikeyOTP hardware 2FA keys that can be setup in a user account."
|
"description": "Maximum number of FIDO/YubikeyOTP hardware 2FA keys that can be setup in a user account."
|
||||||
},
|
},
|
||||||
"fidopininput": {
|
"fidopininput": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "preferred",
|
"default": "preferred",
|
||||||
"enum": ["preferred", "required", "discouraged"],
|
"enum": ["preferred", "required", "discouraged"],
|
||||||
"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'."
|
"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'."
|
||||||
},
|
},
|
||||||
"allowaccountreset": {
|
"allowaccountreset": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
@@ -3328,7 +3336,7 @@
|
|||||||
},
|
},
|
||||||
"newAccountsUserGroups": {
|
"newAccountsUserGroups": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "When set, new accounts will be created for users that authenticate with Azure and added to the specified groups.",
|
"description": "When set, new accounts will be created for users that authenticate with Azure and added to the specified groups.",
|
||||||
"uniqueItems": true,
|
"uniqueItems": true,
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@@ -3961,6 +3969,14 @@
|
|||||||
"bottom"
|
"bottom"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"patternProperties": {
|
||||||
|
"^_.*": {
|
||||||
|
"type": "null",
|
||||||
|
"x-disabled": true,
|
||||||
|
"x-enabled-name": "Remove underscore prefix to enable",
|
||||||
|
"errorMessage": "⚠️ DISABLED SETTING - This setting is currently disabled. Remove the underscore (_) prefix to enable it."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -4230,7 +4246,7 @@
|
|||||||
"description": "Twilio SID"
|
"description": "Twilio SID"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Twilio Auth Token"
|
"description": "Twilio Auth Token"
|
||||||
},
|
},
|
||||||
"from": {
|
"from": {
|
||||||
@@ -4464,5 +4480,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"patternProperties": {
|
||||||
|
"^_.*": {
|
||||||
|
"type": "null",
|
||||||
|
"x-disabled": true,
|
||||||
|
"x-enabled-name": "Remove underscore prefix to enable",
|
||||||
|
"errorMessage": "⚠️ DISABLED SECTION - This section is currently disabled. Remove the underscore (_) prefix to enable it."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user