1.38.0 (2023-09-14)
Features
- Updated auto-formatting to use line breaks for some properties (#1939)
- Updated JSON-based AWS protocols to ignore the
__typefield when deserializingunions (#1945) - Added metadata key to
RemovedMetadatadiff events (#1940) - Improved equality comparison for
NumberNodeinstances (#1955, #1965) - Added
--autas a shortcut for--allow-unknown-traitsin the Smithy CLI (#1950) - Added a
--showoption to the Smithy CLI to include extra information like type, source location, and captured
variables. This deprecates the--show-varsoption (#1953) - Added validation to emit warnings when a member has an HTTP trait applied in a context where it is ignored (#1962,
#1969) - Added validation to check the consistency of IAM resource names and ARN resource names (#1954)
- Added a
RemoveInvalidDefaultstransform to remove@defaulttraits when their values conflict with applied@range
traits (#1964) - Added an
allowConstraintErrorsproperty to the@examplestrait for relaxing content validation requirements (#1949,
#1968) - Added several protocol tests for
@restXml(#1909, #1908,
#1574) - Added several protocol tests for
@restJson1(#1908)
Documentation
- Clarified how trait values are provided in the IDL (#1944)
- Added the
@lengthtrait to the specification's trait index (#1952) - Improved the ability to link to certain sections of the specification (#1958)
- Clarified behavior of
@sigv4and@optionalAuth(#1963, #1971)
Bug Fixes
- Fixed diff event messages for
ChangedNullabilityevents (#1972) - Fixed an NPE when auto-formatting certain types of trait values (#1942)
- Fixed an issue where exceptions thrown when creating traits were not emitted as validation events (#1947)
- Fixed an issue validating timestamp members in nodes where a
@timestampFormattrait was involved (#1948) - Fixed an issue where the
FlattenAndRemoveMixinstransform would not remove unused mixins (#1951) - Fixed a malformed request test for the
@restJson1protocol (#1959) - Fixed an issue where
NonInclusiveTermsvalidation events would be identical for different text paths. (#1975)