Skip to content

Commit

Permalink
feat: adapt Kafka bindings to v3 - take 2 (#226)
Browse files Browse the repository at this point in the history
Co-authored-by: Dale Lane <[email protected]>
  • Loading branch information
lbroudoux and dalelane authored Dec 4, 2023
1 parent bc067c5 commit 383865f
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions kafka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ This object MUST contain only the properties defined above.

##### Example

This example is valid for any Confluent compatible schema registry. Here we describe the implementation using the first 4 bytes in payload to store schema identifier.

```yaml
channels:
user-signedup:
Expand Down Expand Up @@ -122,16 +120,18 @@ This object MUST contain only the properties defined above.
```yaml
channels:
user-signedup:
subscribe:
bindings:
kafka:
groupId:
type: string
enum: ['myGroupId']
clientId:
type: string
enum: ['myClientId']
bindingVersion: '0.4.0'
operations:
userSignup:
action: receive
bindings:
kafka:
groupId:
type: string
enum: ['myGroupId']
clientId:
type: string
enum: ['myClientId']
bindingVersion: '0.4.0'
```


Expand All @@ -158,8 +158,9 @@ This example is valid for any Confluent compatible schema registry. Here we desc
```yaml
channels:
test:
publish:
message:
address: test-topic
messages:
testMessage:
bindings:
kafka:
key:
Expand All @@ -175,8 +176,9 @@ This is another example that describes the use if Apicurio schema registry. We d
```yaml
channels:
test:
publish:
message:
address: test-topic
messages:
testMessage:
bindings:
kafka:
key:
Expand All @@ -188,5 +190,5 @@ channels:
bindingVersion: '0.4.0'
```

[schemaObject]: https://www.asyncapi.com/docs/specifications/2.4.0/#schemaObject
[referenceObject]: https://www.asyncapi.com/docs/specifications/2.4.0/#referenceObject
[schemaObject]: https://www.asyncapi.com/docs/reference/specification/v3.0.0-next-major-spec.15#schemaObject
[referenceObject]: https://www.asyncapi.com/docs/reference/specification/v3.0.0-next-major-spec.15#referenceObject

0 comments on commit 383865f

Please sign in to comment.