From 50e3a9bce2991152c28ffd04d4a8ed8a17a6cae5 Mon Sep 17 00:00:00 2001 From: soartec-lab Date: Sat, 31 Aug 2024 01:00:22 +0000 Subject: [PATCH] chore: add using `explode` test case --- tests/configs/fetch.config.ts | 10 ++++++++++ tests/specifications/parameters.yaml | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/tests/configs/fetch.config.ts b/tests/configs/fetch.config.ts index 810bccc97..ec8e88631 100644 --- a/tests/configs/fetch.config.ts +++ b/tests/configs/fetch.config.ts @@ -168,4 +168,14 @@ export default defineConfig({ target: '../specifications/form-url-encoded.yaml', }, }, + parameters: { + output: { + target: '../generated/fetch/parameters/endpoints.ts', + schemas: '../generated/fetch/parameters/model', + client: 'fetch', + }, + input: { + target: '../specifications/parameters.yaml', + }, + }, }); diff --git a/tests/specifications/parameters.yaml b/tests/specifications/parameters.yaml index 0f82dff00..ba70bc2ee 100644 --- a/tests/specifications/parameters.yaml +++ b/tests/specifications/parameters.yaml @@ -71,6 +71,15 @@ paths: required: false schema: type: boolean + - name: tag + in: query + description: include pets tag + required: false + explode: true + schema: + type: array + items: + type: string responses: '200': description: A paged array of pets