File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
springwolf-examples/springwolf-kafka-example/src
main/java/io/github/stavshamir/springwolf/example/kafka/consumers Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
import io .github .stavshamir .springwolf .asyncapi .scanners .channels .operationdata .annotation .AsyncListener ;
5
5
import io .github .stavshamir .springwolf .asyncapi .scanners .channels .operationdata .annotation .AsyncOperation ;
6
+ import io .github .stavshamir .springwolf .asyncapi .scanners .channels .operationdata .annotation .KafkaAsyncOperationBinding ;
6
7
import io .github .stavshamir .springwolf .asyncapi .scanners .channels .payload .AsyncApiPayload ;
7
8
import io .swagger .v3 .oas .annotations .media .Schema ;
8
9
import lombok .Data ;
@@ -25,6 +26,7 @@ public class StringConsumer {
25
26
description =
26
27
"Final classes (like String) can be documented using an envelope class and the @AsyncApiPayload annotation." ,
27
28
payloadType = StringEnvelope .class ))
29
+ @ KafkaAsyncOperationBinding
28
30
public void receiveStringPayload (String stringPayload ) {
29
31
log .info ("Received new message in {}: {}" , TOPIC , stringPayload );
30
32
}
Original file line number Diff line number Diff line change 176
176
"publish" : {
177
177
"operationId" : " string-topic_publish" ,
178
178
"description" : " Final classes (like String) can be documented using an envelope class and the @AsyncApiPayload annotation." ,
179
- "bindings" : { },
179
+ "bindings" : {
180
+ "kafka" : {
181
+ "bindingVersion" : " 0.4.0"
182
+ }
183
+ },
180
184
"message" : {
181
185
"oneOf" : [
182
186
{
189
193
"headers" : {
190
194
"$ref" : " #/components/schemas/HeadersNotDocumented"
191
195
},
192
- "bindings" : { }
196
+ "bindings" : {
197
+ "kafka" : {
198
+ "bindingVersion" : " 0.4.0"
199
+ }
200
+ }
193
201
},
194
202
{
195
203
"schemaFormat" : " application/vnd.oai.openapi+json;version=3.0.0" ,
You can’t perform that action at this time.
0 commit comments