v0.18.3
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
- Add Tests to Confirm Empty Body Fixes by @lewisjkl in #1257
- Update fs2-data-xml to 1.9.1 by @scala-steward in #1261
- Update nscplugin, sbt-scala-native, ... to 0.4.16 by @scala-steward in #1262
- Cleanup some codegen code by @kubukoz in #1259
- Fix AwsInstanceMetadata decoding by @msosnicki in #1266
- Move change to the right place in the changelog by @kubukoz in #1269
- Update jsoniter-scala-macros to 2.24.2 by @scala-steward in #1271
- Render more explicit type annotations by @kubukoz in #1272
- Update jsoniter-scala-macros to 2.24.3 by @scala-steward in #1278
- Update jsoniter-scala-macros to 2.24.4 by @scala-steward in #1281
- Update webjars-locator to 0.48 by @scala-steward in #1276
- Update smithy-build, smithy-model to 1.40.0 by @scala-steward in #1268
- Documentation website updates by @daddykotex in #1286
- Misc fixes: OptionDefaultVisitor and InputOutput on OperationSchema by @daddykotex in #1284
- Throwable toString override by @daddykotex in #1263
- Update swagger-ui-dist to 5.9.1 by @scala-steward in #1277
- Update jsoniter-scala-core to 2.24.4 by @scala-steward in #1280
- Support range/length refinement providers for enums by @Baccata in #1283
Full Changelog: v0.18.2...v0.18.3