Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
astei committed Feb 14, 2025
1 parent 6db3728 commit 7b2e241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validators/uuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ impl Validator for UuidValidator {
}
let uuid = self.get_uuid(input)?;
// This block checks if the UUID version matches the expected version and
// if the UUID variant conforms to RFC 4122. When dealing with Python inputs,
// UUIDs must adhere to RFC 4122 standards.
// if the UUID variant conforms to RFC 9562 (superseding RFC 4122).
// When dealing with Python inputs, UUIDs must adhere to RFC 9562 standards.
if let Some(expected_version) = self.version {
if uuid.get_version_num() != expected_version || uuid.get_variant() != Variant::RFC4122 {
return Err(ValError::new(
Expand Down

0 comments on commit 7b2e241

Please sign in to comment.