Skip to content

Commit 65c8763

Browse files
author
Fransis Young
committed
chore(client): updates snapshots
1 parent 244304d commit 65c8763

File tree

139 files changed

+139
-556
lines changed

Some content is hidden

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

139 files changed

+139
-556
lines changed

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/body-response-text-plain/client/client.gen.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ export const createClient = (config: Config = {}): Client => {
6565
}
6666

6767
// remove Content-Type header if body is empty to avoid sending invalid requests
68-
if (
69-
opts.body === undefined ||
70-
(opts.serializedBody !== undefined && opts.serializedBody === '')
71-
) {
68+
if (opts.body === undefined || opts.serializedBody === '') {
7269
opts.headers.delete('Content-Type');
7370
}
7471

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/form-data/client/client.gen.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ export const createClient = (config: Config = {}): Client => {
6565
}
6666

6767
// remove Content-Type header if body is empty to avoid sending invalid requests
68-
if (
69-
opts.body === undefined ||
70-
(opts.serializedBody !== undefined && opts.serializedBody === '')
71-
) {
68+
if (opts.body === undefined || opts.serializedBody === '') {
7269
opts.headers.delete('Content-Type');
7370
}
7471

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/client-fetch/sdk-nested-classes-instance/client/client.gen.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ export const createClient = (config: Config = {}): Client => {
6565
}
6666

6767
// remove Content-Type header if body is empty to avoid sending invalid requests
68-
if (
69-
opts.body === undefined ||
70-
(opts.serializedBody !== undefined && opts.serializedBody === '')
71-
) {
68+
if (opts.body === undefined || opts.serializedBody === '') {
7269
opts.headers.delete('Content-Type');
7370
}
7471

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/client-fetch/sdk-nested-classes/client/client.gen.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ export const createClient = (config: Config = {}): Client => {
6565
}
6666

6767
// remove Content-Type header if body is empty to avoid sending invalid requests
68-
if (
69-
opts.body === undefined ||
70-
(opts.serializedBody !== undefined && opts.serializedBody === '')
71-
) {
68+
if (opts.body === undefined || opts.serializedBody === '') {
7269
opts.headers.delete('Content-Type');
7370
}
7471

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/default/client/client.gen.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ export const createClient = (config: Config = {}): Client => {
6565
}
6666

6767
// remove Content-Type header if body is empty to avoid sending invalid requests
68-
if (
69-
opts.body === undefined ||
70-
(opts.serializedBody !== undefined && opts.serializedBody === '')
71-
) {
68+
if (opts.body === undefined || opts.serializedBody === '') {
7269
opts.headers.delete('Content-Type');
7370
}
7471

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/instance/client/client.gen.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ export const createClient = (config: Config = {}): Client => {
6565
}
6666

6767
// remove Content-Type header if body is empty to avoid sending invalid requests
68-
if (
69-
opts.body === undefined ||
70-
(opts.serializedBody !== undefined && opts.serializedBody === '')
71-
) {
68+
if (opts.body === undefined || opts.serializedBody === '') {
7269
opts.headers.delete('Content-Type');
7370
}
7471

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/throwOnError/client/client.gen.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ export const createClient = (config: Config = {}): Client => {
6565
}
6666

6767
// remove Content-Type header if body is empty to avoid sending invalid requests
68-
if (
69-
opts.body === undefined ||
70-
(opts.serializedBody !== undefined && opts.serializedBody === '')
71-
) {
68+
if (opts.body === undefined || opts.serializedBody === '') {
7269
opts.headers.delete('Content-Type');
7370
}
7471

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/transformers/type-format-valibot/client/client.gen.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ export const createClient = (config: Config = {}): Client => {
6565
}
6666

6767
// remove Content-Type header if body is empty to avoid sending invalid requests
68-
if (
69-
opts.body === undefined ||
70-
(opts.serializedBody !== undefined && opts.serializedBody === '')
71-
) {
68+
if (opts.body === undefined || opts.serializedBody === '') {
7269
opts.headers.delete('Content-Type');
7370
}
7471

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/transformers/type-format-zod/client/client.gen.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ export const createClient = (config: Config = {}): Client => {
6565
}
6666

6767
// remove Content-Type header if body is empty to avoid sending invalid requests
68-
if (
69-
opts.body === undefined ||
70-
(opts.serializedBody !== undefined && opts.serializedBody === '')
71-
) {
68+
if (opts.body === undefined || opts.serializedBody === '') {
7269
opts.headers.delete('Content-Type');
7370
}
7471

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/typescript/transforms-read-write-custom-name/client/client.gen.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ export const createClient = (config: Config = {}): Client => {
6565
}
6666

6767
// remove Content-Type header if body is empty to avoid sending invalid requests
68-
if (
69-
opts.body === undefined ||
70-
(opts.serializedBody !== undefined && opts.serializedBody === '')
71-
) {
68+
if (opts.body === undefined || opts.serializedBody === '') {
7269
opts.headers.delete('Content-Type');
7370
}
7471

0 commit comments

Comments
 (0)