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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # swagger-typescript-api
2
2
 
3
+ ## 13.2.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1308](https://github.com/acacode/swagger-typescript-api/pull/1308) [`36fc899`](https://github.com/acacode/swagger-typescript-api/commit/36fc899c9078e9df55ef97dfb83cbf654914fd7a) Thanks [@js2me](https://github.com/js2me)! - add missing required state for query param with $ref
8
+
3
9
  ## 13.2.6
4
10
 
5
11
  ### Patch Changes
package/dist/cli.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const require_src = require('./src-CKol_ydn.cjs');
2
+ const require_src = require('./src-DYNtMxii.cjs');
3
3
  const node_path = require_src.__toESM(require("node:path"));
4
4
  const c12 = require_src.__toESM(require("c12"));
5
5
  const citty = require_src.__toESM(require("citty"));
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { CodeGenConfig, HTTP_CLIENT, TemplatesGenConfig, generateApi, generateTemplates, package_default } from "./src-AKvd7SbK.js";
2
+ import { CodeGenConfig, HTTP_CLIENT, TemplatesGenConfig, generateApi, generateTemplates, package_default } from "./src-BgBqKQNC.js";
3
3
  import * as path$1 from "node:path";
4
4
  import { loadConfig } from "c12";
5
5
  import { defineCommand, runMain } from "citty";
package/dist/lib.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_src = require('./src-CKol_ydn.cjs');
1
+ const require_src = require('./src-DYNtMxii.cjs');
2
2
 
3
3
  Object.defineProperty(exports, 'constants', {
4
4
  enumerable: true,
package/dist/lib.js CHANGED
@@ -1,3 +1,3 @@
1
- import { constants_exports, generateApi, generateTemplates } from "./src-AKvd7SbK.js";
1
+ import { constants_exports, generateApi, generateTemplates } from "./src-BgBqKQNC.js";
2
2
 
3
3
  export { constants_exports as constants, generateApi, generateTemplates };
@@ -184,7 +184,7 @@ var ComponentTypeNameResolver = class extends NameResolver {
184
184
  //#endregion
185
185
  //#region package.json
186
186
  var name = "swagger-typescript-api";
187
- var version = "13.2.6";
187
+ var version = "13.2.7";
188
188
  var description = "Generate the API client for Fetch or Axios from an OpenAPI Specification";
189
189
  var homepage = "https://github.com/acacode/swagger-typescript-api";
190
190
  var bugs = "https://github.com/acacode/swagger-typescript-api/issues";
@@ -1871,6 +1871,7 @@ var SchemaRoutes = class {
1871
1871
  ...refTypeInfo.rawTypeData,
1872
1872
  ...refTypeInfo.rawTypeData.schema || {}
1873
1873
  };
1874
+ if (parameter?.required && !routeParam.required) routeParam.required = parameter.required;
1874
1875
  } else {
1875
1876
  if (!parameter.in) return;
1876
1877
  if (!routeParams[parameter.in]) routeParams[parameter.in] = [];
@@ -3169,4 +3170,4 @@ async function generateApi(config) {
3169
3170
 
3170
3171
  //#endregion
3171
3172
  export { CodeGenConfig, HTTP_CLIENT, TemplatesGenConfig, constants_exports, generateApi, generateTemplates, package_default };
3172
- //# sourceMappingURL=src-AKvd7SbK.js.map
3173
+ //# sourceMappingURL=src-BgBqKQNC.js.map