Skip to content

v0.18.3

Compare
Choose a tag to compare
@Baccata Baccata released this 03 Nov 10:32
· 306 commits to series/0.18 since this release
45970f5

v0.18.3 : misc fixes

  • Support constraint traits on members targeting enums

Although it's weird to allow it, it is actually supported in Smithy.

  • Tweak operation schema *Input and *Output functions

Some schema visitor will adjust their behaviour if a shape is the input or the output of an operation. For this reason we have a InputOutput class with a Input and Output hint that you can add to schemas to adjust the behaviour. OperationSchema has functions to work on input schemas and output schemas of an operation. This change makes these functions automatically add the relevant hint.

See #1284

  • OptionDefaultVisitor supports bijection

When the schema for the member of a structure is a bijection, and the structure is meant to be decoded from metadata (like http headers), optionality was disregarded. This was making optional member required when decoding.

See #1284

  • Fixing AwsInstanceMetadata codec in #1266

Resolves an issue in which AWS credentials would be decoded using the wrong timestamp format, affecting AWS clients on EC2/ECS.

See #1266

  • Render explicit type annotations for some methods that were missing them in #1272

This resolves a problem in which type inference would have different results between Scala 2.13 and 3.x, causing an error on Scala 2.13 under the -Xsource:3 flag.

See #1272

  • Override toString on error shapes

Default toString implementation on Throwable prints the class name, instead, we decided to rely on a custom toString implementation.

See #1263

What's Changed

Full Changelog: v0.18.2...v0.18.3