@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.js CHANGED
@@ -193,7 +193,7 @@ function getRequestGroupOptionality(node) {
193
193
  hasRequiredPath,
194
194
  hasRequiredQuery,
195
195
  hasRequiredHeader,
196
- isOptional: !hasRequiredPath && !hasRequiredQuery && !hasRequiredHeader && !groups.body
196
+ isOptional: !hasRequiredPath && !hasRequiredQuery && !hasRequiredHeader && !(groups.body && node.requestBody?.required === true)
197
197
  };
198
198
  }
199
199
  function buildOperationComments(node, options = {}) {
@@ -1703,7 +1703,7 @@ var compatibility = {
1703
1703
  "node": ">=22.22"
1704
1704
  };
1705
1705
  // package.json
1706
- var version = "5.13.1";
1706
+ var version = "5.13.2";
1707
1707
  // src/plugin.ts
1708
1708
  /**
1709
1709
  * Canonical plugin name for `@kubb/plugin-fetch`. Used for driver lookups and cross-plugin