Function: validateMonitorField()
validateMonitorField(
type:string,fieldName:string,value:unknown):ValidationResult
Defined in: shared/validation/monitorSchemas.ts:1027
Validates a specific field of a monitor using the appropriate schema.
Parametersโ
typeโ
string
Monitor discriminator key from monitorSchemas.
fieldNameโ
string
Name of the field to validate.
valueโ
unknown
Value provided for the field.
Returnsโ
The validation result object for the field.
Remarksโ
Useful for real-time validation during form input. Only validates the specified field and mirrors the logic used by validateMonitorData for warnings and metadata.
Throwsโ
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error If the field name is unknown for the given monitor type.