Releases: disneystreaming/smithy4s
v0.18.17
What's Changed
- Constraints applied to list or map members are now correctly rendered in the generated code (#1498) by @miguel-vila
- Fixes an issue with duplicated entries in generated smithy-build.json file (#1491) by @daddykotex
- Add support for passing custom OpenAPI config via a
smithy-build.json
file by @astridej - Fix a bug when using
adt
with mixins, see #1457 / #1510 by @daddykotex
Additional changes
- Update 01-serialisation.md by @kubukoz in #1493
- Fix a broken link to Weaver test example by @meldmy in #1509
New Contributors
Full Changelog: v0.18.16...v0.18.17
v0.18.16
What's changed
- Adds a
smithy4s-protobuf
module, containing derivation logic for protobuf codecs. See #1455 and documentation - Fixes bug leading to refined case-class fields being rendered with default values of the wrong type: #1487
- Add support for converting smithy4s services and schemas to smithy models (see documentation) in #1470
- Add
smithy4s.meta#only
annotation allowing to filter operations in services, intended to reduce the amount of code generated from AWS specs. See documentation (by @keynmol) - Speed up Dynamic module loading in #1458 by @ghostbuster91
Other changes
- Update sbt-bloop to 1.5.16 by @scala-steward in #1460
- Update fs2-core, fs2-io to 3.10.2 by @scala-steward in #1461
- Update alloy-core, alloy-openapi, ... to 0.3.5 by @scala-steward in #1462
- Update sbt-buildinfo to 0.12.0 by @scala-steward in #1463
- Update alloy-core, alloy-openapi, ... to 0.3.6 by @scala-steward in #1475
- Update sbt-bloop to 1.5.17 by @scala-steward in #1474
- Fix typo assocaited => associated by @lenguyenthanh in #1473
- Switch out uPickle for Circe in codegen by @astridej in #1486
New Contributors
- @lenguyenthanh made their first contribution in #1473
Full Changelog: v0.18.15...v0.18.16
v0.18.15 : AWS credentials file bugfix / AWS middlewares
- Fixes a parsing bug of AWS credential files : #1453
- Add a mechanism to plug endpoint-specific middlewares to AWS clients : #1452
What's Changed
- Update scala3-library, ... to 3.3.3 by @scala-steward in #1448
- Update cats-effect to 3.5.4 by @scala-steward in #1449
- Add a mechanism to plug endpoint-specific middlewares to AWS clients by @Baccata in #1452
- Update fs2-core, fs2-io to 3.10.0 by @scala-steward in #1447
Full Changelog: v0.18.14...v0.18.15
v0.18.14 : bug fixes
- Sets maxArity of JSON decoders to Int.MaxValue in AWS clients. See #1445
- Support "untagged union" decoding for Documents
What's Changed
- Update alloy-core, alloy-openapi, ... to 0.3.4 by @scala-steward in #1440
- Update smithytranslate-proto to 0.5.2 by @scala-steward in #1441
- Update http4s-circe, http4s-client, ... to 0.23.26 by @scala-steward in #1443
- Update jsoniter-scala-macros to 2.28.4 by @scala-steward in #1442
- aws json client max arity to Int.MaxValue by @lewisjkl in #1445
- support for untagged in DocumentDecoderSchemaVisitor by @lewisjkl in #1446
Full Changelog: v0.18.13...v0.18.14
v0.18.13 : respect enum ordering / protobuf setup
- Generated enumeration members now follow the same order as the smithy specification
- Protobuf files are now generated in the managed resources of a project when some smithy shapes are annotated with "alloy.proto#protoEnabled"
What's Changed
- Respect enum values ordering by @Baccata in #1437
- Bump alloy to 0.3.3 by @Baccata in #1439
- Wire protobuf generation in codegen plugin by @Baccata in #1435
- Update upickle to 3.2.0 by @scala-steward in #1415
Full Changelog: v0.18.12...v0.18.13
v0.18.12: Fix for schema rendering in large structs
Fixes an issue with field ordering in the schemas of large structures (over 22 fields). See #1433 for more info.
What's Changed
Full Changelog: v0.18.11...v0.18.12
v0.18.11 : original field ordering in schemas / alloy.proto
This release contains the following noteworthy items :
- Structure schemas are now abiding by the original field order from the spec. This detail finds its importance in some protocols.
- Shapes defined in the
alloy.proto
namespace are now code-generated and packaged with smithy4s-core. - A new schema combinator,
transformTransitivelyK
, is now present, facilitating some schema transformations.
What's Changed
- Update alloy-core, alloy-openapi, ... to 0.3.2 by @scala-steward in #1429
- Update jsoniter-scala-macros to 2.28.3 by @scala-steward in #1431
- Add transformTransitivelyK by @kubukoz in #1426
- Update sbt-projectmatrix to 0.10.0 by @scala-steward in #1430
- Update sbt-scalafix to 0.12.0 by @scala-steward in #1428
- Retain original field ordering in schemas by @Baccata in #1427
- Enable code generation of alloy.proto in core by @Baccata in #1432
Full Changelog: v0.18.10...v0.18.11
v0.18.10 : update alloy to 0.3.1
Updated alloy to 0.3.1. This warrants a release because of this change, which smithy4s leverages to let @nullable
hints through when compiling interpreters, which impacts serialisation.
Without this upgrade, the SimpleRestJsonBuilder
doesn't know that nullable
should be taken into consideration, and filters the corresponding hints out before compiling the schema into json codecs.
What's Changed
- Update scala-library, scala-reflect to 2.12.19 by @scala-steward in #1420
- Update alloy to 0.3.1 by @Baccata in #1423
Full Changelog: v0.18.9...v0.18.10
v0.18.9 : support for alloy#nullable
Features
Support for alloy#nullable
This release adds support for alloy#nullable
. This trait can be used to signal the fact that the absence of value in a serialised payload and the presence of an explicit null
value in a similar payload have different meanings. In particular, this is useful in the case of json-merge-patch, where null
denotes that a value ought to be removed, and the absence of value denotes that a value ought to stay the same.
See https://github.com/disneystreaming/smithy4s/pulls?q=is%3Apr+is%3Aclosed
Allow for customising whether XML attributes should be escaped during serialisation
AWS protocols escape xml attributes to be escaped. However, the fact that XML attributes are quoted implies that the escaping is not always necessary. In some usecases (notably ivy.xml), the escaping results in invalid payloads. Therefore, an option is added to customise the behaviour, and the default is now set to non-escaped XML attributes.
See #1410
Other
- fix infinite recursion when calling Bijection.identity by @benoitlouy in #1401
- Support dynamic status code in error responses by @miguel-vila in #1399
- Update jsoniter-scala-macros to 2.28.1 by @scala-steward in #1394
- Update swagger-ui-dist to 5.11.0 by @scala-steward in #1366
- Add changelog entry and test for bijection fix by @daddykotex in #1403
- Document/Hints/Schema convenience methods by @Baccata in #1404
- Update jsoniter-scala-macros to 2.28.2 by @scala-steward in #1412
- Update upickle to 3.1.5 by @scala-steward in #1413
- Update coursier to 2.1.9 by @scala-steward in #1414
- Update kind-projector to 0.13.3 by @scala-steward in #1417
- Update swagger-ui-dist to 5.11.8 by @scala-steward in #1418
- Add support for @nullable trait in order to support MergePatch usecases by @astridej in #1408
- Update aws smithy version by @miguel-vila in #1419
New Contributors
- @benoitlouy made their first contribution in #1401
- @astridej made their first contribution in #1408
Full Changelog: v0.18.8...v0.18.9
v0.18.8
What's Changed
- Expose RefinementProvider methods by @msosnicki in #1388
Allows constructing refinement schemas manually in more flexible ways than before.
Fixes the collision avoidance algorithm to cover Scala 3 keywords.
Other changes
- Update sbt-bloop to 1.5.14 by @scala-steward in #1387
- Update sbt-bloop to 1.5.15 by @scala-steward in #1393
- Update mill-main, mill-main-api, ... to 0.11.7 by @scala-steward in #1395
New Contributors
Full Changelog: v0.18.7...v0.18.8