Skip to content

Commit

Permalink
Support BlobShape
Browse files Browse the repository at this point in the history
  • Loading branch information
82marbag authored and Daniele Ahmed committed Nov 29, 2022
1 parent 7fd9538 commit 57c6ff5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import software.amazon.smithy.model.node.NullNode
import software.amazon.smithy.model.node.NumberNode
import software.amazon.smithy.model.node.ObjectNode
import software.amazon.smithy.model.node.StringNode
import software.amazon.smithy.model.shapes.BlobShape
import software.amazon.smithy.model.shapes.BooleanShape
import software.amazon.smithy.model.shapes.ByteShape
import software.amazon.smithy.model.shapes.DocumentShape
Expand Down Expand Up @@ -666,7 +667,7 @@ class ServerBuilderGenerator(
else -> rust(".unwrap_or_default()")
}
}

is BlobShape -> rust(".unwrap_or_default()")
else -> throw CodegenException("Default value for $name is unsupported or cannot exist")
}
}
Expand Down

0 comments on commit 57c6ff5

Please sign in to comment.