@rexeus/typeweaver-types 0.10.5 → 0.11.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 CHANGED
@@ -12843,6 +12843,7 @@ function generate$2(context) {
12843
12843
  function writeRequestValidator(templateFilePath, resourceName, operation, context) {
12844
12844
  const { operationId, request } = operation;
12845
12845
  const { body, query, param, header } = request ?? {};
12846
+ const hasRequestSchema = body !== void 0 || header !== void 0 || param !== void 0 || query !== void 0;
12846
12847
  const outputPaths = context.getOperationOutputPaths({
12847
12848
  resourceName,
12848
12849
  operationId
@@ -12859,6 +12860,7 @@ function writeRequestValidator(templateFilePath, resourceName, operation, contex
12859
12860
  query,
12860
12861
  param,
12861
12862
  header,
12863
+ hasRequestSchema,
12862
12864
  z: external_exports
12863
12865
  });
12864
12866
  const relativePath = node_path.default.relative(context.outputDir, outputPaths.requestValidationFile);
package/dist/index.mjs CHANGED
@@ -12822,6 +12822,7 @@ function generate$2(context) {
12822
12822
  function writeRequestValidator(templateFilePath, resourceName, operation, context) {
12823
12823
  const { operationId, request } = operation;
12824
12824
  const { body, query, param, header } = request ?? {};
12825
+ const hasRequestSchema = body !== void 0 || header !== void 0 || param !== void 0 || query !== void 0;
12825
12826
  const outputPaths = context.getOperationOutputPaths({
12826
12827
  resourceName,
12827
12828
  operationId
@@ -12838,6 +12839,7 @@ function writeRequestValidator(templateFilePath, resourceName, operation, contex
12838
12839
  query,
12839
12840
  param,
12840
12841
  header,
12842
+ hasRequestSchema,
12841
12843
  z: external_exports
12842
12844
  });
12843
12845
  const relativePath = path.relative(context.outputDir, outputPaths.requestValidationFile);