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/modules/ROOT/pages/mapping/result-style.adoc
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,22 @@ The `result-style` configuration controls how the processor handles the return t
8
8
map:
9
9
#result-style: success # use the success result type, this is the default
10
10
result-style: all # use an Object return type
11
+
12
+
# result-style is available at endpoint & http method level.
13
+
/foo:
14
+
#result-style: success
15
+
16
+
get:
17
+
result-style: success
11
18
----
12
19
13
20
* **result-style** (optional).
14
21
15
-
**`success` (default since 2021.5): generates endpoint methods with the success response type even if it has error responses. This assumes that errors are reported by exceptions.
22
+
**`success` ([.badge .badge-since]+default since 2021.5+): generates endpoint methods with the success response type even if it has error responses. This assumes that errors are reported by exceptions.
16
23
17
24
**`all` (default before 2021.5): generates endpoint methods with an `Object` return type if it has error responses.
18
25
26
+
** [.badge .badge-since]+since 2025.2+`result-style` is available at the endpoint & http method level.
19
27
20
28
21
29
See xref:processor/endpoint-content.adoc[endpoint content types] for a more detailed description.
0 commit comments