Skip to content

Commit b13b3b5

Browse files
authored
add allowed header type to service generator (#1266)
Co-authored-by: Brian Caswell <[email protected]>
1 parent 0164434 commit b13b3b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/autorust/codegen/src/codegen_operations.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@ impl HeaderCode {
706706
("string", Some("byte")) => Ok(TypeName::String), // base64-encoded
707707
("string", Some("duration")) => Ok(TypeName::String),
708708
("string", Some("uuid")) => Ok(TypeName::String),
709+
("string", Some("uri")) => Ok(TypeName::String),
709710
("string", Some("date-time-rfc1123")) => Ok(TypeName::DateTimeRfc1123),
710711
("integer", None) => Ok(TypeName::Int32),
711712
("integer", Some("int32")) => Ok(TypeName::Int32),

0 commit comments

Comments
 (0)