We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6db3728 commit 7b2e241Copy full SHA for 7b2e241
src/validators/uuid.rs
@@ -140,8 +140,8 @@ impl Validator for UuidValidator {
140
}
141
let uuid = self.get_uuid(input)?;
142
// This block checks if the UUID version matches the expected version and
143
- // if the UUID variant conforms to RFC 4122. When dealing with Python inputs,
144
- // 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.
145
if let Some(expected_version) = self.version {
146
if uuid.get_version_num() != expected_version || uuid.get_variant() != Variant::RFC4122 {
147
return Err(ValError::new(
0 commit comments