From ec8a583e54bd4d8614770a6627830633af6bf6e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20K=C3=B6tter?= Date: Fri, 22 Sep 2023 13:28:51 +0200 Subject: [PATCH] v30x/parameter - complex formatting unit test data --- .../paths-parameter-format-complex.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 tests/fixtures/paths-parameter-format-complex.yaml diff --git a/tests/fixtures/paths-parameter-format-complex.yaml b/tests/fixtures/paths-parameter-format-complex.yaml new file mode 100644 index 00000000..071ec03c --- /dev/null +++ b/tests/fixtures/paths-parameter-format-complex.yaml @@ -0,0 +1,71 @@ +openapi: 3.0.3 +info: + title: '' + version: 0.0.0 +servers: + - url: http://127.0.0.1/api + +security: + - {} + +paths: + /form/query: + get: + operationId: FormQuery + parameters: + - $ref: "#/components/parameters/EmptyFormQuery" + + responses: &resp + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Test' + headers: + head: + $ref: "#/components/headers/ArraySimpleHeader" + description: '' + + + + +components: + schemas: + Test: + type: string + enum: + - test + + headers: + ArraySimpleHeader: + schema: + type: array + items: + type: string + style: simple + explode: false + + parameters: + EmptyFormQuery: + in: query + name: empty + required: true + content: + "application/json": + schema: + type: number + encoding: + "*": + style: form + explode: false + headers: + X-hrm: + description: hrm header + content: + "*": + schema: + type: string + format: date-time + encoding: + "application/x-www-form-urlencoded": + style: form