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 f0af6ed commit 40be16cCopy full SHA for 40be16c
src/validators/union.rs
@@ -270,7 +270,7 @@ impl BuildValidator for TaggedUnionValidator {
270
if first {
271
first = false;
272
write!(tags_repr, "{tag_repr}").unwrap();
273
- descr.push_str(validator.get_name().clone());
+ descr.push_str(validator.get_name());
274
} else {
275
write!(tags_repr, ", {tag_repr}").unwrap();
276
// no spaces in get_name() output to make loc easy to read
@@ -346,7 +346,7 @@ impl Validator for TaggedUnionValidator {
346
}
347
Discriminator::SelfSchema => self.find_call_validator(
348
py,
349
- &self.self_schema_tag(py, input)?.as_ref(),
+ self.self_schema_tag(py, input)?.as_ref(),
350
input,
351
extra,
352
definitions,
0 commit comments