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 +6 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/lib.cjs +1 -1
- package/dist/lib.js +1 -1
- package/dist/{src-AKvd7SbK.js → src-BgBqKQNC.js} +3 -2
- package/dist/{src-AKvd7SbK.js.map → src-BgBqKQNC.js.map} +1 -1
- package/dist/{src-CKol_ydn.cjs → src-DYNtMxii.cjs} +3 -2
- package/dist/{src-CKol_ydn.cjs.map → src-DYNtMxii.cjs.map} +1 -1
- package/package.json +1 -1
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-
|
|
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-
|
|
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
package/dist/lib.js
CHANGED
|
@@ -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.
|
|
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-
|
|
3173
|
+
//# sourceMappingURL=src-BgBqKQNC.js.map
|