@kubb/plugin-client 5.11.0 → 5.11.1
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -217,7 +217,7 @@ function getRequestGroupOptionality(node) {
|
|
|
217
217
|
hasRequiredPath,
|
|
218
218
|
hasRequiredQuery,
|
|
219
219
|
hasRequiredHeader,
|
|
220
|
-
isOptional: !hasRequiredPath && !hasRequiredQuery && !hasRequiredHeader && !groups.body
|
|
220
|
+
isOptional: !hasRequiredPath && !hasRequiredQuery && !hasRequiredHeader && !(groups.body && node.requestBody?.required === true)
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
223
|
function buildOperationComments(node, options = {}) {
|
|
@@ -508,7 +508,7 @@ var compatibility = {
|
|
|
508
508
|
"node": ">=22.22"
|
|
509
509
|
};
|
|
510
510
|
// package.json
|
|
511
|
-
var version = "5.11.
|
|
511
|
+
var version = "5.11.1";
|
|
512
512
|
// ../../internals/client/src/builders/validatorOptions.ts
|
|
513
513
|
/**
|
|
514
514
|
* Returns `true` when any direction of the validator uses zod (used for dependency checks).
|