From d529fdd9377952f8627af855a07860b80409c0a4 Mon Sep 17 00:00:00 2001 From: Peter Van den Bosch Date: Wed, 27 Sep 2023 16:26:41 +0200 Subject: [PATCH] use array for OpenAPI 2.0 example of multi-value query param (#135) removed explicit style: form (already default) --- guide/src/main/asciidoc/resources.adoc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/guide/src/main/asciidoc/resources.adoc b/guide/src/main/asciidoc/resources.adoc index eb287cc..0c13de1 100644 --- a/guide/src/main/asciidoc/resources.adoc +++ b/guide/src/main/asciidoc/resources.adoc @@ -89,10 +89,12 @@ parameters: - name: embed in: query collectionFormat: multi - type: string - enum: - - employees - - mainAddress + type: array + items: + type: string + enum: + - employees + - mainAddress ``` .OpenAPI 3.0 definition @@ -100,7 +102,6 @@ parameters: parameters: - name: embed in: query - style: form explode: true schema: type: array