swagger-typescript-api 13.2.6 → 13.2.7

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.
@@ -203,7 +203,7 @@ var ComponentTypeNameResolver = class extends NameResolver {
203
203
  //#endregion
204
204
  //#region package.json
205
205
  var name = "swagger-typescript-api";
206
- var version = "13.2.6";
206
+ var version = "13.2.7";
207
207
  var description = "Generate the API client for Fetch or Axios from an OpenAPI Specification";
208
208
  var homepage = "https://github.com/acacode/swagger-typescript-api";
209
209
  var bugs = "https://github.com/acacode/swagger-typescript-api/issues";
@@ -1890,6 +1890,7 @@ var SchemaRoutes = class {
1890
1890
  ...refTypeInfo.rawTypeData,
1891
1891
  ...refTypeInfo.rawTypeData.schema || {}
1892
1892
  };
1893
+ if (parameter?.required && !routeParam.required) routeParam.required = parameter.required;
1893
1894
  } else {
1894
1895
  if (!parameter.in) return;
1895
1896
  if (!routeParams[parameter.in]) routeParams[parameter.in] = [];
@@ -3235,4 +3236,4 @@ Object.defineProperty(exports, 'package_default', {
3235
3236
  return package_default;
3236
3237
  }
3237
3238
  });
3238
- //# sourceMappingURL=src-CKol_ydn.cjs.map
3239
+ //# sourceMappingURL=src-DYNtMxii.cjs.map