Skip to content

Commit a040be3

Browse files
committed
update result style documentation (openapi-processor/openapi-processor-base#253)
1 parent 22bf6cf commit a040be3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/modules/ROOT/pages/mapping/result-style.adoc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,22 @@ The `result-style` configuration controls how the processor handles the return t
88
map:
99
#result-style: success # use the success result type, this is the default
1010
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
1118
----
1219

1320
* **result-style** (optional).
1421
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.
1623

1724
** `all` (default before 2021.5): generates endpoint methods with an `Object` return type if it has error responses.
1825

26+
** [.badge .badge-since]+since 2025.2+ `result-style` is available at the endpoint & http method level.
1927

2028

2129
See xref:processor/endpoint-content.adoc[endpoint content types] for a more detailed description.

0 commit comments

Comments
 (0)