diff --git a/src/OCPI.Net.Validation/ValidationExtensions/OcpiGeolocationValidationExtensions.cs b/src/OCPI.Net.Validation/ValidationExtensions/OcpiGeolocationValidationExtensions.cs index 56405f1..32eed9e 100644 --- a/src/OCPI.Net.Validation/ValidationExtensions/OcpiGeolocationValidationExtensions.cs +++ b/src/OCPI.Net.Validation/ValidationExtensions/OcpiGeolocationValidationExtensions.cs @@ -27,7 +27,7 @@ public static bool ValidLatitude(string? value) => // OCPI has an error in documentation. It says the max length for Longitude is 11 but their regex says it is 12. public static IRuleBuilderOptions ValidLongitude(this IRuleBuilder ruleBuilder) => ruleBuilder - .Must(ValidLatitude) + .Must(ValidLongitude) .WithMessage($"'{{PropertyName}}' is not a valid longitude value. Must match Regex : {_longitudeRegexValue}") .MaximumLength(12);