Skip to content

v0.10.0-rc.1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 01 Nov 19:30
· 26 commits to main since this release
6c81f7f

Highlights

  • Fix: a queue name that uses the channel address's parameters but differs from the address, such as {tenant}.audit-log on {tenant}.orders.created, was generated as the literal string "{tenant}.audit-log", so the subscriber read from the wrong queue. It's now built from the Subscribe arguments, as the routing key is: queueName := tenant + ".audit-log". A typed parameter gets its string() conversion.
  • A queue name that uses a parameter the address doesn't have stops the generator with an error.
  • Payload types come from go-jsonschema v0.27.0; v0.9.0 used v0.26.0. Generated code now:
    • decodes integers written as 2.0 or 1e2;
    • writes a required array or object left nil as [] or {}, not null;
    • checks the values that arrays and maps hold, such as each item's maxLength, and uniqueItems;
    • declares a constant for a property's const, such as OrderPlacedSchemaVersion.
  • Three of the test suite's specs change, only in those ways; the others generate byte-identical code to v0.9.0's.

Changelog

  • 6c81f7f Merge pull request #18 from plheide/fix/parameterised-queue-name
  • d3cd4f0 build: move to go-jsonschema v0.27.0
  • 54522f9 fix: fill in the address's parameters in a queue name