Skip to content

v0.3.0-beta.1

Pre-release
Pre-release

Choose a tag to compare

@mlilback mlilback released this 19 Jun 00:08
· 5 commits to release/0.3.0 since this release

Bug Fixes

  • Bring Parameter object into AsyncAPI 3.0 compliance — schema_type/format replaced with default, enum_values, examples, location (reported by @pureions, #5)
  • ToAsyncApiMessage no longer panics on enums containing serde_json::Value fields (reported by @csells, #4)
  • Per-variant payload schema for tagged enums — each message now carries only its own variant schema instead of the whole-enum oneOf. Works with any serde(tag = "...") field name, not just "type". Shared $defs are embedded per-variant for self-contained payloads. (#6, #2)

Breaking Changes

#[asyncapi_channel(...)] parameter attributes no longer accept schema_type or format (removed from the AsyncAPI 3.0 Parameter object). Use examples, default, enum_values, or location instead.

Testing this beta

Add to your Cargo.toml:

asyncapi-rust = { git = "https://github.com/mlilback/asyncapi-rust", tag = "v0.3.0-beta.1" }