Skip to content

Commit

Permalink
chore: trying to reproduce springwolfGH-705
Browse files Browse the repository at this point in the history
Co-authored-by: David Müller <[email protected]>
  • Loading branch information
timonback and sam0r040 committed Apr 19, 2024
1 parent 1265e5e commit 50a817d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package io.github.springwolf.examples.kafka.consumers
import io.github.springwolf.core.asyncapi.annotations.AsyncListener
import io.github.springwolf.core.asyncapi.annotations.AsyncOperation
import io.github.springwolf.core.asyncapi.annotations.AsyncPublisher
import io.github.springwolf.plugins.kafka.asyncapi.annotations.KafkaAsyncOperationBinding
import org.springframework.stereotype.Component
import kotlinx.coroutines.*

Expand All @@ -24,6 +25,7 @@ class AsyncConsumerProducer {
payloadType = Output::class,
),
)
@KafkaAsyncOperationBinding
suspend fun consumeAndProduce(input: Input) = coroutineScope {
// suspend fun consumeAndProduce(@Payload input: Input) = coroutineScope {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,11 @@
},
"name": "io.github.springwolf.examples.kafka.consumers.Input",
"title": "Input",
"bindings": { }
"bindings": {
"kafka": {
"bindingVersion": "0.5.0"
}
}
},
"io.github.springwolf.examples.kafka.consumers.Output": {
"headers": {
Expand All @@ -1162,7 +1166,11 @@
},
"name": "io.github.springwolf.examples.kafka.consumers.Output",
"title": "Output",
"bindings": { }
"bindings": {
"kafka": {
"bindingVersion": "0.5.0"
}
}
},
"io.github.springwolf.examples.kafka.consumers.StringConsumer$StringEnvelope": {
"headers": {
Expand Down Expand Up @@ -1371,7 +1379,11 @@
},
"title": "INCOMING_REQUEST_receive",
"description": "Inbound message.",
"bindings": { },
"bindings": {
"kafka": {
"bindingVersion": "0.5.0"
}
},
"messages": [
{
"$ref": "#/channels/INCOMING_REQUEST/messages/io.github.springwolf.examples.kafka.consumers.Input"
Expand All @@ -1385,7 +1397,11 @@
},
"title": "OUTBOUND_RESPONSE_send",
"description": "Outbound message.",
"bindings": { },
"bindings": {
"kafka": {
"bindingVersion": "0.5.0"
}
},
"messages": [
{
"$ref": "#/channels/OUTBOUND_RESPONSE/messages/io.github.springwolf.examples.kafka.consumers.Output"
Expand Down

0 comments on commit 50a817d

Please sign in to comment.