Releases: disneystreaming/alloy
v0.1.16: Data Examples Trait
What's Changed
- Update mill-main to 0.10.12 by @scala-steward in #70
- add data examples trait by @lewisjkl in #71
- Update scalafmt-core to 3.7.3 by @scala-steward in #72
Full Changelog: v0.1.15...v0.1.16
v0.1.15: Dependencies update
What's Changed
- Update smithy-aws-protocol-tests, ... to 1.28.1 by @scala-steward in #69
Full Changelog: v0.1.14...v0.1.15
v0.1.14: Update aws tests config and bump dependencies
Bump Smithy version and update aws tests config
What's Changed
- add alloy prefix to metadata by @yisraelU in #63
- Update scalafmt-core to 3.7.2 by @scala-steward in #65
- Add awstest config by @yisraelU in #64
- update Smithy model to latest version and update aws test configs by @yisraelU in #68
Full Changelog: v0.1.13...v0.1.14
Protocol tests metadata
test config added as metadata to the model
Publish Aws RestJson config
publishes config file that contains the aws restJson tests that are compatible with simpleRestJson
v0.1.11: Bug fix for protoIndex validator
In 0.1.0, we introduced protoInlinedOneOf
. This can affect how Union are rendered and we should have updated the protoIndex
validator. This is because the protoIndex
validator requires that either all or no members of a structure are annotated with @protoIndex
. This includes the union members that any member may target. Previously, because the default was to render the oneOf
within the host message
, the validation of it's member was the default. But with protoInlinedOneOf
, this behaviour is now a opt-in.
What's Changed
- Ensure protoIndex are valid along with
protoInlinedOneOf
by @daddykotex in #60
Full Changelog: v0.1.10...v0.1.11
v0.1.10: Protobuf feature: protoInlinedOneOf
This release introduce a new annotation related to Protobuf. Alloy contains a few annotation that you can add to your Smithy specification if you want to generate Protobuf models out of it. We introduce @protoInlinedOneOf
. See the README for more information but in a gist: it allows code that process Smithy specification to use a different encoding for Smithy's union.
Smithy's union are somewhat hard to encode to Protobuf because the natural way to do it is with a oneOf
, but oneOf
can only be defined within a message
. This is different from Smithy where Union is a top level data type. To encode Union, you basically have two choice:
- Create a top level
message
to contain the definition of theoneOf
, and use that top level message's FQN in places where the Union is used - Ensure the Union is only used once, within a structure, and embed that
oneOf
within this structure.
This new annotation allows code generation to produce one, or the other, depending on the presence of the annotation. If @protoInlinedOneOf
is used, we validate the Union is used exactly once, and then render the oneOf
inside the message
that uses it. Otherwise, we use encoding 1).
This release also includes a series of dependency update, see below.
What's Changed
- Update mill-main to 0.10.11 by @scala-steward in #55
- Update scalafmt-core to 3.7.1 by @scala-steward in #56
- Fix ToC by @kubukoz in #57
- Update smithy-aws-protocol-tests, ... to 1.27.2 by @scala-steward in #58
- Introduce protoInlinedOneOf annotation by @daddykotex in #59
Full Changelog: v0.1.9...v0.1.10
v0.1.9: Feature - Aws Protocol Tests
What's Changed
- Add default to the list of traits supported by simpleRestJson by @daddykotex in #43
- Update mill-tpolecat to 0.3.2 by @scala-steward in #51
- Update smithy-aws-protocol-tests, ... to 1.27.1 by @scala-steward in #52
- Add the aws protocol tests by @yisraelU in #53
- Update scalafmt-core to 3.7.0 by @scala-steward in #54
Full Changelog: v0.1.8...v0.1.9
Bug Fixes
Compliance tests bug fixes
Removal of trait specs from protocol-tests module
What's Changed
- fix compliance tests by @yisraelU in #48
- Move trait provider spec in the right place by @daddykotex in #49
- GetMenu test fix by @yisraelU in #50
Full Changelog: v0.1.7...v0.1.8
v0.1.7: Common data types format annotations
Small release that adds a few data type format annotations to alloy-core:
@countryCodeFormat
@emailFormat
@hexColorCodeFormat
@languageCodeFormat
@languageTagFormat
What's Changed
- Add common data types format by @daddykotex in #47
Full Changelog: v0.1.6...v0.1.7