pub fn validate_optional_json_range(
field: &str,
value: &Value,
min: i64,
max: i64,
) -> Result<(), AwsServiceError>Expand description
Validate an optional numeric JSON value is within [min, max].
Unlike validate_optional_range_i64, this takes a raw serde_json::Value reference
so it can detect non-null, non-integer values (e.g. strings, large unsigned numbers)
that would silently become None via as_i64().