diff --git a/kafka/README.md b/kafka/README.md index c3ea466f..adc5606e 100644 --- a/kafka/README.md +++ b/kafka/README.md @@ -6,7 +6,7 @@ This document defines how to describe Kafka-specific information on AsyncAPI. ## Version -Current version is `0.1.0`. +Current version is `0.2.0`. @@ -69,7 +69,7 @@ This object contains information about the message representation in Kafka. Field Name | Type | Description ---|:---:|--- -`key` | [Schema Object][schemaObject] | The message key. +`key` | [Schema Object][schemaObject] \| [AVRO Schema Object](https://avro.apache.org/docs/current/spec.html) | The message key. **NOTE**: You can also use the [reference object](https://asyncapi.io/docs/specifications/v2.1.0#referenceObject) way. `bindingVersion` | string | The version of this binding. If omitted, "latest" MUST be assumed. This object MUST contain only the properties defined above. diff --git a/kafka/json_schemas/message.json b/kafka/json_schemas/message.json index 8509ebb7..701beaa4 100644 --- a/kafka/json_schemas/message.json +++ b/kafka/json_schemas/message.json @@ -31,6 +31,12 @@ ] }, "bindingVersion": "0.1.0" + }, + { + "key": { + "$ref": "path/to/user-create.avsc#/UserCreate" + }, + "bindingVersion": "0.2.0" } ] }