File tree Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ impl<T> JsonSchemaAs<T> for hex::Hex<formats::Lowercase> {
420
420
SchemaObject {
421
421
instance_type : Some ( InstanceType :: String . into ( ) ) ,
422
422
string : Some ( Box :: new ( StringValidation {
423
- pattern : Some ( r"^(?:[0-9a -f]{2})*$" . to_owned ( ) ) ,
423
+ pattern : Some ( r"^(?:[0-9A-Fa -f]{2})*$" . to_owned ( ) ) ,
424
424
..Default :: default ( )
425
425
} ) ) ,
426
426
..Default :: default ( )
@@ -449,7 +449,7 @@ impl<T> JsonSchemaAs<T> for hex::Hex<formats::Uppercase> {
449
449
SchemaObject {
450
450
instance_type : Some ( InstanceType :: String . into ( ) ) ,
451
451
string : Some ( Box :: new ( StringValidation {
452
- pattern : Some ( r"^(?:[0-9A-F ]{2})*$" . to_owned ( ) ) ,
452
+ pattern : Some ( r"^(?:[0-9A-Fa-f ]{2})*$" . to_owned ( ) ) ,
453
453
..Default :: default ( )
454
454
} ) ) ,
455
455
..Default :: default ( )
Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ impl<T> JsonSchemaAs<T> for hex::Hex<formats::Lowercase> {
419
419
fn json_schema ( _: & mut SchemaGenerator ) -> Schema {
420
420
json_schema ! ( {
421
421
"type" : "string" ,
422
- "pattern" : r"^(?:[0-9a -f]{2})*$" ,
422
+ "pattern" : r"^(?:[0-9A-Fa -f]{2})*$" ,
423
423
} )
424
424
}
425
425
@@ -441,7 +441,7 @@ impl<T> JsonSchemaAs<T> for hex::Hex<formats::Uppercase> {
441
441
fn json_schema ( _: & mut SchemaGenerator ) -> Schema {
442
442
json_schema ! ( {
443
443
"type" : "string" ,
444
- "pattern" : r"^(?:[0-9A-F ]{2})*$" ,
444
+ "pattern" : r"^(?:[0-9A-Fa-f ]{2})*$" ,
445
445
} )
446
446
}
447
447
Original file line number Diff line number Diff line change @@ -421,7 +421,7 @@ impl<T> JsonSchemaAs<T> for hex::Hex<formats::Lowercase> {
421
421
fn json_schema ( _: & mut SchemaGenerator ) -> Schema {
422
422
json_schema ! ( {
423
423
"type" : "string" ,
424
- "pattern" : r"^(?:[0-9a -f]{2})*$" ,
424
+ "pattern" : r"^(?:[0-9A-Fa -f]{2})*$" ,
425
425
} )
426
426
}
427
427
@@ -443,7 +443,7 @@ impl<T> JsonSchemaAs<T> for hex::Hex<formats::Uppercase> {
443
443
fn json_schema ( _: & mut SchemaGenerator ) -> Schema {
444
444
json_schema ! ( {
445
445
"type" : "string" ,
446
- "pattern" : r"^(?:[0-9A-F ]{2})*$" ,
446
+ "pattern" : r"^(?:[0-9A-Fa-f ]{2})*$" ,
447
447
} )
448
448
}
449
449
Original file line number Diff line number Diff line change 31
31
"lowercase_hex" : {
32
32
"description" : " A vector of bytes that's serialized as a lowercase hex string." ,
33
33
"type" : " string" ,
34
- "pattern" : " ^(?:[0-9a -f]{2})*$"
34
+ "pattern" : " ^(?:[0-9A-Fa -f]{2})*$"
35
35
},
36
36
"same" : {
37
37
"description" : " Same does not implement `JsonSchema` directly so this checks that the correct schemars attribute was injected." ,
42
42
"uppercase_hex" : {
43
43
"description" : " A vector of bytes that's serialized as an uppercase hex string." ,
44
44
"type" : " string" ,
45
- "pattern" : " ^(?:[0-9A-F ]{2})*$"
45
+ "pattern" : " ^(?:[0-9A-Fa-f ]{2})*$"
46
46
},
47
47
"vec_same" : {
48
48
"description" : " Same thing, but with a Vec this time." ,
Original file line number Diff line number Diff line change 37
37
"lowercase_hex" : {
38
38
"description" : " A vector of bytes that's serialized as a lowercase hex string." ,
39
39
"type" : " string" ,
40
- "pattern" : " ^(?:[0-9a -f]{2})*$"
40
+ "pattern" : " ^(?:[0-9A-Fa -f]{2})*$"
41
41
},
42
42
"uppercase_hex" : {
43
43
"description" : " A vector of bytes that's serialized as an uppercase hex string." ,
44
44
"type" : " string" ,
45
- "pattern" : " ^(?:[0-9A-F ]{2})*$"
45
+ "pattern" : " ^(?:[0-9A-Fa-f ]{2})*$"
46
46
}
47
47
},
48
48
"required" : [
Original file line number Diff line number Diff line change 37
37
"lowercase_hex" : {
38
38
"description" : " A vector of bytes that's serialized as a lowercase hex string." ,
39
39
"type" : " string" ,
40
- "pattern" : " ^(?:[0-9a -f]{2})*$"
40
+ "pattern" : " ^(?:[0-9A-Fa -f]{2})*$"
41
41
},
42
42
"uppercase_hex" : {
43
43
"description" : " A vector of bytes that's serialized as an uppercase hex string." ,
44
44
"type" : " string" ,
45
- "pattern" : " ^(?:[0-9A-F ]{2})*$"
45
+ "pattern" : " ^(?:[0-9A-Fa-f ]{2})*$"
46
46
}
47
47
},
48
48
"required" : [
You can’t perform that action at this time.
0 commit comments