pub fn validate_optional_enum_value(
field: &str,
value: &Value,
allowed: &[&str],
) -> Result<(), AwsServiceError>Expand description
Validate an optional enum from a JSON value, rejecting non-string types.
Unlike validate_optional_enum, this takes a raw serde_json::Value so it can
distinguish between a missing/null field (ok to skip) and a non-string value (error).