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
Copy file name to clipboardExpand all lines: docs/configuration/customizing.md
+41-1Lines changed: 41 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ All default implementations are Spring managed beans, which can be overridden.
23
23
24
24
## `AsyncApiCustomizer` - Full AsyncAPI document
25
25
26
-
By implementing the `AsyncApiCustomizer`, the AsyncAPI document can be modified after Springwolf has done all the scanning and has built the document.
26
+
By implementing the `AsyncApiCustomizer` interface, the AsyncAPI document can be modified after Springwolf has done all the scanning and has built the document.
27
27
It's the final interception point before the document is available to the user.
28
28
29
29
For example, the title can be adjusted - although this should be done through the configuration:
@@ -38,6 +38,33 @@ public class AsyncApiTitleCustomizer implements AsyncApiCustomizer {
38
38
}
39
39
```
40
40
41
+
## `OperationCustomizer` - Operation object
42
+
43
+
By implementing the `OperationCustomizer` interface, the Operation object can be modified after Springwolf has scanned an
44
+
annotated method and extracted the data.
45
+
46
+
It's possible to create multiple implementations of `OperationCustomizer`.
47
+
The order of execution can be controlled by the `@Order` annotation of Spring.
48
+
49
+
An example to conditionally add a custom AsyncAPI `tag` for Kafka batch listeners is shown below:
0 commit comments