swagger-typescript-api 13.12.5 → 13.12.6
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/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-COCr3_qu.cjs → src-BY6Hz6vz.cjs} +6 -5
- package/dist/src-BY6Hz6vz.cjs.map +1 -0
- package/dist/{src-BTi82JcX.mjs → src-Dex5t5WU.mjs} +6 -5
- package/dist/src-Dex5t5WU.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/src-BTi82JcX.mjs.map +0 -1
- package/dist/src-COCr3_qu.cjs.map +0 -1
package/dist/cli.cjs
CHANGED
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { d as version, l as description, n as generateTemplates, o as CodeGenConfig, r as TemplatesGenConfig, s as HTTP_CLIENT, t as generateApi, u as name } from "./src-
|
|
2
|
+
import { d as version, l as description, n as generateTemplates, o as CodeGenConfig, r as TemplatesGenConfig, s as HTTP_CLIENT, t as generateApi, u as name } from "./src-Dex5t5WU.mjs";
|
|
3
3
|
import * as path$1 from "node:path";
|
|
4
4
|
import { loadConfig } from "c12";
|
|
5
5
|
import { defineCommand, runMain } from "citty";
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-BY6Hz6vz.cjs");
|
|
3
3
|
exports.RequestContentKind = require_src.RequestContentKind;
|
|
4
4
|
exports.SCHEMA_TYPES = require_src.SCHEMA_TYPES;
|
|
5
5
|
Object.defineProperty(exports, "constants", {
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SCHEMA_TYPES, c as constants_exports, i as RequestContentKind, n as generateTemplates, t as generateApi } from "./src-
|
|
1
|
+
import { a as SCHEMA_TYPES, c as constants_exports, i as RequestContentKind, n as generateTemplates, t as generateApi } from "./src-Dex5t5WU.mjs";
|
|
2
2
|
export { RequestContentKind, SCHEMA_TYPES, constants_exports as constants, generateApi, generateTemplates };
|
|
@@ -212,7 +212,7 @@ var ComponentTypeNameResolver = class extends NameResolver {
|
|
|
212
212
|
//#endregion
|
|
213
213
|
//#region package.json
|
|
214
214
|
var name = "swagger-typescript-api";
|
|
215
|
-
var version = "13.12.
|
|
215
|
+
var version = "13.12.6";
|
|
216
216
|
var description = "Generate the API client for Fetch or Axios from an OpenAPI Specification";
|
|
217
217
|
//#endregion
|
|
218
218
|
//#region src/constants.ts
|
|
@@ -1051,10 +1051,11 @@ var MonoSchemaParser = class {
|
|
|
1051
1051
|
var ArraySchemaParser = class extends MonoSchemaParser {
|
|
1052
1052
|
parse() {
|
|
1053
1053
|
let contentType;
|
|
1054
|
-
const { type, description, items } = this.schema || {};
|
|
1055
|
-
|
|
1054
|
+
const { type, description, items, prefixItems } = this.schema || {};
|
|
1055
|
+
const tupleItems = Array.isArray(prefixItems) ? prefixItems : Array.isArray(items) ? items : null;
|
|
1056
|
+
if (tupleItems && type === SCHEMA_TYPES$1.ARRAY) {
|
|
1056
1057
|
const tupleContent = [];
|
|
1057
|
-
for (const item of
|
|
1058
|
+
for (const item of tupleItems) tupleContent.push(this.schemaParserFabric.createSchemaParser({
|
|
1058
1059
|
schema: item,
|
|
1059
1060
|
schemaPath: this.schemaPath
|
|
1060
1061
|
}).getInlineParseContent());
|
|
@@ -4337,4 +4338,4 @@ Object.defineProperty(exports, "version", {
|
|
|
4337
4338
|
}
|
|
4338
4339
|
});
|
|
4339
4340
|
|
|
4340
|
-
//# sourceMappingURL=src-
|
|
4341
|
+
//# sourceMappingURL=src-BY6Hz6vz.cjs.map
|