Skip to content

Releases: disneystreaming/alloy

v0.1.16: Data Examples Trait

04 Apr 17:28
a243eb5
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.1.15...v0.1.16

v0.1.15: Dependencies update

13 Mar 14:17
e650b3d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.1.14...v0.1.15

v0.1.14: Update aws tests config and bump dependencies

28 Feb 20:04
26903dc
Compare
Choose a tag to compare

Bump Smithy version and update aws tests config

What's Changed

Full Changelog: v0.1.13...v0.1.14

Protocol tests metadata

22 Feb 20:44
80d1611
Compare
Choose a tag to compare

test config added as metadata to the model

Publish Aws RestJson config

21 Feb 20:48
036d47e
Compare
Choose a tag to compare

publishes config file that contains the aws restJson tests that are compatible with simpleRestJson

v0.1.11: Bug fix for protoIndex validator

06 Feb 21:44
35eed93
Compare
Choose a tag to compare

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

06 Feb 15:10
f842378
Compare
Choose a tag to compare

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:

  1. Create a top level message to contain the definition of the oneOf, and use that top level message's FQN in places where the Union is used
  2. 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

Full Changelog: v0.1.9...v0.1.10

v0.1.9: Feature - Aws Protocol Tests

20 Jan 04:34
f6cd704
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.1.8...v0.1.9

Bug Fixes

10 Jan 15:37
b31f9ae
Compare
Choose a tag to compare

Compliance tests bug fixes
Removal of trait specs from protocol-tests module

What's Changed

Full Changelog: v0.1.7...v0.1.8

v0.1.7: Common data types format annotations

09 Jan 16:24
3fa0ace
Compare
Choose a tag to compare

Small release that adds a few data type format annotations to alloy-core:

  • @countryCodeFormat
  • @emailFormat
  • @hexColorCodeFormat
  • @languageCodeFormat
  • @languageTagFormat

What's Changed

Full Changelog: v0.1.6...v0.1.7