Skip to content

Commit 0603f32

Browse files
Jorrinclaude
andcommitted
chore: regenerate example clients
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 307ff98 commit 0603f32

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
@@ -178,6 +178,12 @@ export const createClient = (config: Config = {}): Client => {
178178
}
179179

180180
if (opts.throwOnError) {
181+
if (opts.responseStyle === 'fields') {
182+
throw {
183+
error: finalError,
184+
...result,
185+
};
186+
}
181187
throw finalError;
182188
}
183189

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

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

180180
if (opts.throwOnError) {
181+
if (opts.responseStyle === 'fields') {
182+
throw {
183+
error: finalError,
184+
...result,
185+
};
186+
}
181187
throw finalError;
182188
}
183189

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

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

232232
if (opts.throwOnError) {
233+
if (opts.responseStyle === 'fields') {
234+
throw {
235+
error: finalError,
236+
...result,
237+
};
238+
}
233239
throw finalError;
234240
}
235241

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

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

232232
if (opts.throwOnError) {
233+
if (opts.responseStyle === 'fields') {
234+
throw {
235+
error: finalError,
236+
...result,
237+
};
238+
}
233239
throw finalError;
234240
}
235241

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

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

112112
if (opts.throwOnError) {
113+
if (opts.responseStyle === 'fields') {
114+
throw {
115+
error: finalError,
116+
...result,
117+
};
118+
}
113119
throw finalError;
114120
}
115121

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

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

232232
if (opts.throwOnError) {
233+
if (opts.responseStyle === 'fields') {
234+
throw {
235+
error: finalError,
236+
...result,
237+
};
238+
}
233239
throw finalError;
234240
}
235241

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
@@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
230230
finalError = finalError || ({} as string);
231231

232232
if (opts.throwOnError) {
233+
if (opts.responseStyle === 'fields') {
234+
throw {
235+
error: finalError,
236+
...result,
237+
};
238+
}
233239
throw finalError;
234240
}
235241

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
@@ -230,6 +230,12 @@ export const createClient = (config: Config = {}): Client => {
230230
finalError = finalError || ({} as string);
231231

232232
if (opts.throwOnError) {
233+
if (opts.responseStyle === 'fields') {
234+
throw {
235+
error: finalError,
236+
...result,
237+
};
238+
}
233239
throw finalError;
234240
}
235241

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
@@ -178,6 +178,12 @@ export const createClient = (config: Config = {}): Client => {
178178
}
179179

180180
if (opts.throwOnError) {
181+
if (opts.responseStyle === 'fields') {
182+
throw {
183+
error: finalError,
184+
...result,
185+
};
186+
}
181187
throw finalError;
182188
}
183189

0 commit comments

Comments
 (0)