Skip to content

Commit 9ac306e

Browse files
Jorrinclaude
andcommitted
chore: regenerate example clients
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5ba48ec commit 9ac306e

13 files changed

Lines changed: 78 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ export const createClient = (config: Config = {}): Client => {
172172
}
173173

174174
if (opts.throwOnError) {
175+
if (opts.responseStyle === 'fields') {
176+
throw {
177+
error: finalError,
178+
...result,
179+
};
180+
}
175181
throw finalError;
176182
}
177183

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ export const createClient = (config: Config = {}): Client => {
172172
}
173173

174174
if (opts.throwOnError) {
175+
if (opts.responseStyle === 'fields') {
176+
throw {
177+
error: finalError,
178+
...result,
179+
};
180+
}
175181
throw finalError;
176182
}
177183

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,12 @@ export const createClient = (config: Config = {}): Client => {
222222
finalError = finalError || ({} as string);
223223

224224
if (opts.throwOnError) {
225+
if (opts.responseStyle === 'fields') {
226+
throw {
227+
error: finalError,
228+
...result,
229+
};
230+
}
225231
throw finalError;
226232
}
227233

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,12 @@ export const createClient = (config: Config = {}): Client => {
222222
finalError = finalError || ({} as string);
223223

224224
if (opts.throwOnError) {
225+
if (opts.responseStyle === 'fields') {
226+
throw {
227+
error: finalError,
228+
...result,
229+
};
230+
}
225231
throw finalError;
226232
}
227233

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ export const createClient = (config: Config = {}): Client => {
101101
finalError = finalError || ({} as string);
102102

103103
if (opts.throwOnError) {
104+
if (opts.responseStyle === 'fields') {
105+
throw {
106+
error: finalError,
107+
...result,
108+
};
109+
}
104110
throw finalError;
105111
}
106112

examples/openapi-ts-nestjs/src/client/client/client.gen.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,12 @@ export const createClient = (config: Config = {}): Client => {
222222
finalError = finalError || ({} as string);
223223

224224
if (opts.throwOnError) {
225+
if (opts.responseStyle === 'fields') {
226+
throw {
227+
error: finalError,
228+
...result,
229+
};
230+
}
225231
throw finalError;
226232
}
227233

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ export const createClient = (config: Config = {}): Client => {
202202
finalError = (finalError as any) || ({} as string);
203203

204204
if (opts.throwOnError) {
205+
if (opts.responseStyle === 'fields') {
206+
throw {
207+
error: finalError,
208+
...result,
209+
};
210+
}
205211
throw finalError;
206212
}
207213

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,12 @@ export const createClient = (config: Config = {}): Client => {
222222
finalError = finalError || ({} as string);
223223

224224
if (opts.throwOnError) {
225+
if (opts.responseStyle === 'fields') {
226+
throw {
227+
error: finalError,
228+
...result,
229+
};
230+
}
225231
throw finalError;
226232
}
227233

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,12 @@ export const createClient = (config: Config = {}): Client => {
222222
finalError = finalError || ({} as string);
223223

224224
if (opts.throwOnError) {
225+
if (opts.responseStyle === 'fields') {
226+
throw {
227+
error: finalError,
228+
...result,
229+
};
230+
}
225231
throw finalError;
226232
}
227233

examples/openapi-ts-tanstack-angular-query-experimental/src/client/client/client.gen.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ export const createClient = (config: Config = {}): Client => {
172172
}
173173

174174
if (opts.throwOnError) {
175+
if (opts.responseStyle === 'fields') {
176+
throw {
177+
error: finalError,
178+
...result,
179+
};
180+
}
175181
throw finalError;
176182
}
177183

0 commit comments

Comments
 (0)