fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #3451 from hey-api/copilot/fix-empty-array-sending

fix: preserve empty array as request body in stripEmptySlots

authored by

Lubos and committed by
GitHub
cf743278 320c30a4

+270 -253
+5
.changeset/fair-dolls-shout.md
··· 1 + --- 2 + "@hey-api/openapi-ts": patch 3 + --- 4 + 5 + **client**: fix: avoid removing empty arrays from flat arguments
+1 -1
examples/openapi-ts-angular-common/src/client/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
examples/openapi-ts-angular/src/client/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
examples/openapi-ts-axios/src/client/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
examples/openapi-ts-fastify/src/client/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
examples/openapi-ts-fetch/src/client/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
examples/openapi-ts-ky/src/client/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
examples/openapi-ts-next/src/client/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
examples/openapi-ts-ofetch/src/client/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
examples/openapi-ts-openai/src/client/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
examples/openapi-ts-pinia-colada/src/client/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
examples/openapi-ts-tanstack-angular-query-experimental/src/client/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
examples/openapi-ts-tanstack-react-query/src/client/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
examples/openapi-ts-tanstack-svelte-query/src/client/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
examples/openapi-ts-tanstack-vue-query/src/client/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/__snapshots__/plugins/@tanstack/meta/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/body-response-text-plain/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/form-data/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@angular/common/default-class/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@angular/common/default/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/client-fetch/sdk-nested-classes-instance/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/client-fetch/sdk-nested-classes/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/default/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/instance/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/throwOnError/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/transformers/type-format-valibot/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/transformers/type-format-zod/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/typescript/transforms-read-write-custom-name/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/typescript/transforms-read-write-ignore/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/name-builder/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/name-builder/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/name-builder/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/name-builder/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/name-builder/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/schema-unknown/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/security-api-key/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/security-basic/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/security-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/security-oauth2/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/servers-base-path/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/servers-host/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/servers/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/transforms-read-write/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/body-binary-format/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/body-response-text-plain/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/content-types/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/internal-name-conflict/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/parameter-explode-false-axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/parameter-explode-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@angular/common/default-class/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@angular/common/default/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/client-fetch/sdk-nested-classes-instance/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/client-fetch/sdk-nested-classes/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/default/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/instance/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/throwOnError/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/transformers/type-format-valibot/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/transformers/type-format-zod/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/typescript/transforms-read-write-custom-name/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/typescript/transforms-read-write-ignore/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/name-builder/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/name-builder/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/name-builder/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/name-builder/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/name-builder/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/security-api-key/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/security-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/security-http-bearer/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/security-oauth2/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/security-open-id-connect/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/servers/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transformers-all-of/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transformers-allof-response-wrapper/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transformers-any-of-null/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transformers-array/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transformers-recursive/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transforms-read-write/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/body-response-text-plain/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/base-url-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/base-url-number/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/base-url-strict/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/base-url-string/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/clean-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/default/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/import-file-extension-ts/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/sdk-client-optional/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/sdk-client-required/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/tsconfig-node16-sdk/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/tsconfig-nodenext-sdk/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-number/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-strict/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-string/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/clean-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/default/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/import-file-extension-ts/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-optional/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-required/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/tsconfig-node16-sdk/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/tsconfig-nodenext-sdk/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-number/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-strict/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-string/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/clean-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/default/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/import-file-extension-ts/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-optional/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-required/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/tsconfig-node16-sdk/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/tsconfig-nodenext-sdk/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/base-url-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/base-url-number/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/base-url-strict/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/base-url-string/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/clean-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/default/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/import-file-extension-ts/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/sdk-client-optional/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/sdk-client-required/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/tsconfig-node16-sdk/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/tsconfig-nodenext-sdk/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-number/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-strict/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-string/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/clean-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/default/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/import-file-extension-ts/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-optional/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-required/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/tsconfig-node16-sdk/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/tsconfig-nodenext-sdk/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-number/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-strict/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-string/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/clean-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/default/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/import-file-extension-ts/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-optional/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-required/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/tsconfig-node16-sdk/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/tsconfig-nodenext-sdk/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-number/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-strict/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-string/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/clean-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/default/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/import-file-extension-ts/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/sdk-client-optional/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/sdk-client-required/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/tsconfig-node16-sdk/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/tsconfig-nodenext-sdk/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/content-types/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/headers/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/internal-name-conflict/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/pagination-ref/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/parameter-explode-false-axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/parameter-explode-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@angular/common/default-class/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@angular/common/default/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/client-fetch/sdk-nested-classes-instance/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/client-fetch/sdk-nested-classes/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/default/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/instance/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/throwOnError/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/transformers/type-format-valibot/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/transformers/type-format-zod/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/typescript/transforms-read-write-custom-name/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/typescript/transforms-read-write-ignore/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/name-builder/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/name-builder/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/name-builder/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/name-builder/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/asClass/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/name-builder/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/security-api-key/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/security-false/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/security-http-bearer/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/security-oauth2/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/security-open-id-connect/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/servers/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/sse-angular/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/sse-axios/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/sse-fetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/sse-next/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/sse-nuxt/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/sse-ofetch/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transformers-all-of/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transformers-allof-response-wrapper/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transformers-any-of-null/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transformers-array/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transformers-one-of-discriminated/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transformers-recursive/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transforms-read-write/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/sdks/__snapshots__/method-class-conflict/class/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/sdks/__snapshots__/method-class-conflict/flat/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/sdks/__snapshots__/method-class-conflict/instance/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/sdks/__snapshots__/opencode/export-all/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/sdks/__snapshots__/opencode/flat/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+1 -1
packages/openapi-ts-tests/sdks/__snapshots__/opencode/grouped/core/params.gen.ts
··· 96 96 97 97 const stripEmptySlots = (params: Params) => { 98 98 for (const [slot, value] of Object.entries(params)) { 99 - if (value && typeof value === 'object' && !Object.keys(value).length) { 99 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 100 100 delete params[slot as Slot]; 101 101 } 102 102 }
+12
packages/openapi-ts/src/plugins/@hey-api/client-core/__tests__/params.test.ts
··· 344 344 description: 'strip empty slots', 345 345 params: {}, 346 346 }, 347 + { 348 + args: [[]], 349 + config: [ 350 + { 351 + in: 'body', 352 + }, 353 + ], 354 + description: 'empty array body', 355 + params: { 356 + body: [], 357 + }, 358 + }, 347 359 ]; 348 360 349 361 it.each(scenarios)('$description', async ({ args, config, params }) => {
+1 -1
packages/openapi-ts/src/plugins/@hey-api/client-core/bundle/params.ts
··· 94 94 95 95 const stripEmptySlots = (params: Params) => { 96 96 for (const [slot, value] of Object.entries(params)) { 97 - if (value && typeof value === 'object' && !Object.keys(value).length) { 97 + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { 98 98 delete params[slot as Slot]; 99 99 } 100 100 }