@kubb/plugin-zod 5.9.0-canary.20261111T122006 → 5.9.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.
- package/dist/index.cjs +760 -806
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +761 -807
- package/dist/index.js.map +1 -1
- package/docs/guides/customization.md +31 -23
- package/docs/options.md +2 -1
- package/kubb-extension.json +1 -1
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -287,9 +287,17 @@ type ResolverZod = Resolver & {
|
|
|
287
287
|
* Resolves the name for an operation response by status code.
|
|
288
288
|
*
|
|
289
289
|
* @example Response status names
|
|
290
|
-
* `resolver.response.status(node, 200) // → 'listPetsStatus200Schema'`
|
|
290
|
+
* `resolver.response.status(node, '200') // → 'listPetsStatus200Schema'`
|
|
291
291
|
*/
|
|
292
292
|
status(node: ast.OperationNode, statusCode: ast.StatusCode): string;
|
|
293
|
+
/**
|
|
294
|
+
* Resolves the name for the headers a response declares. The schema holds the spec's header names and types,
|
|
295
|
+
* so it does not parse a fetch `Headers` object, whose names are lower case and whose values are strings.
|
|
296
|
+
*
|
|
297
|
+
* @example Response headers names
|
|
298
|
+
* `resolver.response.headers(node, '200') // → 'listPetsStatus200HeadersSchema'`
|
|
299
|
+
*/
|
|
300
|
+
headers(node: ast.OperationNode, statusCode: ast.StatusCode): string;
|
|
293
301
|
/**
|
|
294
302
|
* Resolves the request body schema name.
|
|
295
303
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -287,9 +287,17 @@ type ResolverZod = Resolver & {
|
|
|
287
287
|
* Resolves the name for an operation response by status code.
|
|
288
288
|
*
|
|
289
289
|
* @example Response status names
|
|
290
|
-
* `resolver.response.status(node, 200) // → 'listPetsStatus200Schema'`
|
|
290
|
+
* `resolver.response.status(node, '200') // → 'listPetsStatus200Schema'`
|
|
291
291
|
*/
|
|
292
292
|
status(node: ast.OperationNode, statusCode: ast.StatusCode): string;
|
|
293
|
+
/**
|
|
294
|
+
* Resolves the name for the headers a response declares. The schema holds the spec's header names and types,
|
|
295
|
+
* so it does not parse a fetch `Headers` object, whose names are lower case and whose values are strings.
|
|
296
|
+
*
|
|
297
|
+
* @example Response headers names
|
|
298
|
+
* `resolver.response.headers(node, '200') // → 'listPetsStatus200HeadersSchema'`
|
|
299
|
+
*/
|
|
300
|
+
headers(node: ast.OperationNode, statusCode: ast.StatusCode): string;
|
|
293
301
|
/**
|
|
294
302
|
* Resolves the request body schema name.
|
|
295
303
|
*
|