@marcoturi/fastify-boilerplate 2.4.45 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/rest.d.ts +97 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoturi/fastify-boilerplate",
3
- "version": "2.4.45",
3
+ "version": "2.6.0",
4
4
  "description": "Auto-generated REST (OpenAPI) and GraphQL client types for fastify-boilerplate",
5
5
  "type": "module",
6
6
  "exports": {
package/rest.d.ts CHANGED
@@ -105,6 +105,24 @@ export interface paths {
105
105
  };
106
106
  };
107
107
  };
108
+ /** @description Error response. All errors share this shape; `correlationId` correlates it to logs. */
109
+ "4XX": {
110
+ headers: {
111
+ [name: string]: unknown;
112
+ };
113
+ content: {
114
+ "application/json": components["schemas"]["def-0"];
115
+ };
116
+ };
117
+ /** @description Error response. All errors share this shape; `correlationId` correlates it to logs. */
118
+ "5XX": {
119
+ headers: {
120
+ [name: string]: unknown;
121
+ };
122
+ content: {
123
+ "application/json": components["schemas"]["def-0"];
124
+ };
125
+ };
108
126
  };
109
127
  };
110
128
  put?: never;
@@ -160,6 +178,33 @@ export interface paths {
160
178
  };
161
179
  };
162
180
  };
181
+ /** @description Error response. All errors share this shape; `correlationId` correlates it to logs. */
182
+ 409: {
183
+ headers: {
184
+ [name: string]: unknown;
185
+ };
186
+ content: {
187
+ "application/json": components["schemas"]["def-0"];
188
+ };
189
+ };
190
+ /** @description Error response. All errors share this shape; `correlationId` correlates it to logs. */
191
+ "4XX": {
192
+ headers: {
193
+ [name: string]: unknown;
194
+ };
195
+ content: {
196
+ "application/json": components["schemas"]["def-0"];
197
+ };
198
+ };
199
+ /** @description Error response. All errors share this shape; `correlationId` correlates it to logs. */
200
+ "5XX": {
201
+ headers: {
202
+ [name: string]: unknown;
203
+ };
204
+ content: {
205
+ "application/json": components["schemas"]["def-0"];
206
+ };
207
+ };
163
208
  };
164
209
  };
165
210
  delete?: never;
@@ -198,6 +243,33 @@ export interface paths {
198
243
  };
199
244
  content?: never;
200
245
  };
246
+ /** @description Error response. All errors share this shape; `correlationId` correlates it to logs. */
247
+ 404: {
248
+ headers: {
249
+ [name: string]: unknown;
250
+ };
251
+ content: {
252
+ "application/json": components["schemas"]["def-0"];
253
+ };
254
+ };
255
+ /** @description Error response. All errors share this shape; `correlationId` correlates it to logs. */
256
+ "4XX": {
257
+ headers: {
258
+ [name: string]: unknown;
259
+ };
260
+ content: {
261
+ "application/json": components["schemas"]["def-0"];
262
+ };
263
+ };
264
+ /** @description Error response. All errors share this shape; `correlationId` correlates it to logs. */
265
+ "5XX": {
266
+ headers: {
267
+ [name: string]: unknown;
268
+ };
269
+ content: {
270
+ "application/json": components["schemas"]["def-0"];
271
+ };
272
+ };
201
273
  };
202
274
  };
203
275
  options?: never;
@@ -282,6 +354,24 @@ export interface paths {
282
354
  };
283
355
  };
284
356
  };
357
+ /** @description Error response. All errors share this shape; `correlationId` correlates it to logs. */
358
+ "4XX": {
359
+ headers: {
360
+ [name: string]: unknown;
361
+ };
362
+ content: {
363
+ "application/json": components["schemas"]["def-0"];
364
+ };
365
+ };
366
+ /** @description Error response. All errors share this shape; `correlationId` correlates it to logs. */
367
+ "5XX": {
368
+ headers: {
369
+ [name: string]: unknown;
370
+ };
371
+ content: {
372
+ "application/json": components["schemas"]["def-0"];
373
+ };
374
+ };
285
375
  };
286
376
  };
287
377
  put?: never;
@@ -306,11 +396,13 @@ export interface components {
306
396
  error: string;
307
397
  /** @example YevPQs */
308
398
  correlationId: string;
309
- /**
310
- * @description Optional list of sub-errors
311
- * @example incorrect email
312
- */
313
- subErrors?: string;
399
+ /** @description List of field-level validation errors */
400
+ subErrors?: {
401
+ /** @example /email */
402
+ path: string;
403
+ /** @example must match format "email" */
404
+ message: string;
405
+ }[];
314
406
  };
315
407
  };
316
408
  responses: never;