Skip to content

Commit af7c706

Browse files
committed
improve documentation (#412)
1 parent 9f10086 commit af7c706

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

docs/modules/ROOT/pages/processor/requestbody.adoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,15 @@ the processor does *destructure* an `application/x-www-form-urlencoded` request
192192

193193
It _destructures_ the request body by default to make it behave like the multipart request described in the previous section.
194194

195-
To receive the request body as a single object parameter, add a `body-style` mapping. `body-style` supports all the usual mapping level, global, endpoint and endpoint method.
195+
To receive the request body as a single object parameter, add a `body-style` mapping. `body-style` supports all the usual mapping levels: global, endpoint and endpoint method.
196196

197197
[source,yaml,subs=attributes+]
198198
----
199+
openapi-processor-mapping: {var-mapping-version}
200+
201+
options:
202+
package-name: io.openapiprocessor.openapi
203+
199204
map:
200205
# global
201206
body-style: object
@@ -213,6 +218,6 @@ map:
213218
----
214219

215220
[NOTE]
216-
Currently, the `body-style` mapping is only supported on `application/x-www-form-urlencoded`
221+
Currently, the `body-style` mapping is only supported on `application/x-www-form-urlencoded`.
217222

218223

0 commit comments

Comments
 (0)