You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description="Example payload model for sending messages"
29
+
)
30
+
))
31
+
publicvoid sendMessage(ExamplePayloadDto msg) {
32
+
// send
33
+
}
34
+
```
35
+
36
+
## Schema
37
+
38
+
Under the hood springwolf relies on swagger-core `ModelConverters` to define the message schema.
14
39
15
40
By default, the type and example values for the properties are guessed.
16
41
The default Jackson `ModelResolver` supports schema definitions via `@Schema` to overwrite the property definitions.
@@ -50,6 +75,10 @@ public class ExamplePayloadDto {
50
75
}
51
76
```
52
77
78
+
:::note
79
+
The `@AsyncMessage.description` field will always override the `@Schema` description if provided
80
+
:::
81
+
53
82
For a full example, take a look at [ExamplePayloadDto.java in springwolf-amqp-example](https://github.com/springwolf/springwolf-core/blob/master/springwolf-examples/springwolf-amqp-example/src/main/java/io/github/stavshamir/springwolf/example/amqp/dtos/ExamplePayloadDto.java)
0 commit comments