Zod config validation (#635)
* Zod WIP * Zod form validation * DynamicForm testing * Fix linting * Delete rasterSource.ts --------- Co-authored-by: philon- <philon-@users.noreply.github.com>
This commit is contained in:
co-authored by
philon-
parent
df036d3904
commit
1cbd98ec53
@@ -69,5 +69,34 @@
|
||||
},
|
||||
"nodeUnknownPrefix": "!",
|
||||
"unset": "UNSET",
|
||||
"fallbackName": "Meshtastic {{last4}}"
|
||||
"fallbackName": "Meshtastic {{last4}}",
|
||||
"formValidation": {
|
||||
"tooBig": {
|
||||
"string": "Too long, expected less than or equal to {{maximum}} characters.",
|
||||
"number": "Too big, expected a number smaller than or equal to {{maximum}}.",
|
||||
"bytes": "Too big, expected less than or equal to {{params.maximum}} bytes."
|
||||
},
|
||||
"tooSmall": {
|
||||
"string": "Too short, expected more than or equal to {{minimum}} characters.",
|
||||
"number": "Too small, expected a number larger than or equal to {{minimum}}."
|
||||
},
|
||||
"invalidFormat": {
|
||||
"ipv4": "Invalid format, expected an IPv4 address.",
|
||||
"key": "Invalid format, expected a Base64 encoded pre-shared key (PSK)."
|
||||
},
|
||||
"invalidType": {
|
||||
"number": "Invalid type, expected a number."
|
||||
},
|
||||
"pskLength": {
|
||||
"0bit": "Key is required to be empty.",
|
||||
"8bit": "Key is required to be an 8 bit pre-shared key (PSK).",
|
||||
"128bit": "Key is required to be a 128 bit pre-shared key (PSK).",
|
||||
"256bit": "Key is required to be a 256 bit pre-shared key (PSK)."
|
||||
},
|
||||
"required": {
|
||||
"generic": "This field is required.",
|
||||
"managed": "At least one admin key is requred if the node is managed.",
|
||||
"key": "Key is required."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,11 +68,6 @@
|
||||
"pin": {
|
||||
"description": "Pin to use when pairing",
|
||||
"label": "Pin"
|
||||
},
|
||||
"validation": {
|
||||
"pinCannotStartWithZero": "Bluetooth Pin cannot start with 0",
|
||||
"pinMustBeSixDigits": "Pin must be 6 digits",
|
||||
"pinRequired": "Bluetooth Pin is required"
|
||||
}
|
||||
},
|
||||
"display": {
|
||||
@@ -428,15 +423,6 @@
|
||||
"loggingSettings": {
|
||||
"description": "Settings for Logging",
|
||||
"label": "Logging Settings"
|
||||
},
|
||||
"validation": {
|
||||
"adminKeyMustBe256BitPsk": "Admin Key is required to be a 256 bit pre-shared key (PSK)",
|
||||
"adminKeyRequiredWhenManaged": "At least one admin key is requred if the node is managed.",
|
||||
"enterValid256BitPsk": "Please enter a valid 256 bit PSK",
|
||||
"invalidAdminKeyFormat": "Invalid Admin Key format",
|
||||
"invalidPrivateKeyFormat": "Invalid Private Key format",
|
||||
"privateKeyMustBe256BitPsk": "Private Key is required to be a 256 bit pre-shared key (PSK)",
|
||||
"privateKeyRequired": "Private Key is required"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,9 +144,9 @@
|
||||
"label": "Monitor Pin",
|
||||
"description": "The GPIO pin to monitor for state changes"
|
||||
},
|
||||
"detectionTriggeredHigh": {
|
||||
"label": "Detection Triggered High",
|
||||
"description": "Whether or not the GPIO pin state detection is triggered on HIGH (1), otherwise LOW (0)"
|
||||
"detectionTriggerType": {
|
||||
"label": "Detection Triggered Type",
|
||||
"description": "The type of trigger event to be used"
|
||||
},
|
||||
"usePullup": {
|
||||
"label": "Use Pullup",
|
||||
|
||||
Reference in New Issue
Block a user