Skip to content
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ export const createClient = (config: Config = {}): Client => {
}

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
6 changes: 6 additions & 0 deletions examples/openapi-ts-angular/src/client/client/client.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ export const createClient = (config: Config = {}): Client => {
}

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
6 changes: 6 additions & 0 deletions examples/openapi-ts-fastify/src/client/client/client.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
6 changes: 6 additions & 0 deletions examples/openapi-ts-fetch/src/client/client/client.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
6 changes: 6 additions & 0 deletions examples/openapi-ts-ky/src/client/client/client.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
6 changes: 6 additions & 0 deletions examples/openapi-ts-nestjs/src/client/client/client.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
6 changes: 6 additions & 0 deletions examples/openapi-ts-ofetch/src/client/client/client.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = (finalError as any) || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
6 changes: 6 additions & 0 deletions examples/openapi-ts-openai/src/client/client/client.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ export const createClient = (config: Config = {}): Client => {
}

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ export const createClient = (config: Config = {}): Client => {
}

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ export const createClient = (config: Config = {}): Client => {
}

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
finalError = finalError || ({} as string);

if (opts.throwOnError) {
if (opts.responseStyle === 'fields') {
throw {
error: finalError,
...result,
};
}
throw finalError;
}

Expand Down
Loading
Loading