@kubb/plugin-fetch 5.13.1 → 5.13.2
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 +4 -4
package/dist/index.cjs
CHANGED
|
@@ -219,7 +219,7 @@ function getRequestGroupOptionality(node) {
|
|
|
219
219
|
hasRequiredPath,
|
|
220
220
|
hasRequiredQuery,
|
|
221
221
|
hasRequiredHeader,
|
|
222
|
-
isOptional: !hasRequiredPath && !hasRequiredQuery && !hasRequiredHeader && !groups.body
|
|
222
|
+
isOptional: !hasRequiredPath && !hasRequiredQuery && !hasRequiredHeader && !(groups.body && node.requestBody?.required === true)
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
225
|
function buildOperationComments(node, options = {}) {
|
|
@@ -1729,7 +1729,7 @@ var compatibility = {
|
|
|
1729
1729
|
"node": ">=22.22"
|
|
1730
1730
|
};
|
|
1731
1731
|
// package.json
|
|
1732
|
-
var version = "5.13.
|
|
1732
|
+
var version = "5.13.2";
|
|
1733
1733
|
// src/plugin.ts
|
|
1734
1734
|
/**
|
|
1735
1735
|
* Canonical plugin name for `@kubb/plugin-fetch`. Used for driver lookups and cross-plugin
|