Skip to content

Commit b1f91cd

Browse files
Copilotmrlubos
andcommitted
chore: update snapshots and examples with Array.isArray fix
Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
1 parent 86ee54a commit b1f91cd

252 files changed

Lines changed: 252 additions & 252 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/openapi-ts-angular-common/src/client/core/params.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ interface Params {
9696

9797
const stripEmptySlots = (params: Params) => {
9898
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) {
100100
delete params[slot as Slot];
101101
}
102102
}

examples/openapi-ts-angular/src/client/core/params.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ interface Params {
9696

9797
const stripEmptySlots = (params: Params) => {
9898
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) {
100100
delete params[slot as Slot];
101101
}
102102
}

examples/openapi-ts-axios/src/client/core/params.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ interface Params {
9696

9797
const stripEmptySlots = (params: Params) => {
9898
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) {
100100
delete params[slot as Slot];
101101
}
102102
}

examples/openapi-ts-fastify/src/client/core/params.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ interface Params {
9696

9797
const stripEmptySlots = (params: Params) => {
9898
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) {
100100
delete params[slot as Slot];
101101
}
102102
}

examples/openapi-ts-fetch/src/client/core/params.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ interface Params {
9696

9797
const stripEmptySlots = (params: Params) => {
9898
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) {
100100
delete params[slot as Slot];
101101
}
102102
}

examples/openapi-ts-ky/src/client/core/params.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ interface Params {
9696

9797
const stripEmptySlots = (params: Params) => {
9898
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) {
100100
delete params[slot as Slot];
101101
}
102102
}

examples/openapi-ts-next/src/client/core/params.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ interface Params {
9696

9797
const stripEmptySlots = (params: Params) => {
9898
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) {
100100
delete params[slot as Slot];
101101
}
102102
}

examples/openapi-ts-ofetch/src/client/core/params.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ interface Params {
9696

9797
const stripEmptySlots = (params: Params) => {
9898
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) {
100100
delete params[slot as Slot];
101101
}
102102
}

examples/openapi-ts-openai/src/client/core/params.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ interface Params {
9696

9797
const stripEmptySlots = (params: Params) => {
9898
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) {
100100
delete params[slot as Slot];
101101
}
102102
}

examples/openapi-ts-pinia-colada/src/client/core/params.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ interface Params {
9696

9797
const stripEmptySlots = (params: Params) => {
9898
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) {
100100
delete params[slot as Slot];
101101
}
102102
}

0 commit comments

Comments
 (0)