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
|
@@ -171,7 +171,7 @@ var ComponentTypeNameResolver = class extends NameResolver {
|
|
|
171
171
|
//#endregion
|
|
172
172
|
//#region package.json
|
|
173
173
|
var name = "swagger-typescript-api";
|
|
174
|
-
var version = "13.12.
|
|
174
|
+
var version = "13.12.6";
|
|
175
175
|
var description = "Generate the API client for Fetch or Axios from an OpenAPI Specification";
|
|
176
176
|
//#endregion
|
|
177
177
|
//#region src/constants.ts
|
|
@@ -1010,10 +1010,11 @@ var MonoSchemaParser = class {
|
|
|
1010
1010
|
var ArraySchemaParser = class extends MonoSchemaParser {
|
|
1011
1011
|
parse() {
|
|
1012
1012
|
let contentType;
|
|
1013
|
-
const { type, description, items } = this.schema || {};
|
|
1014
|
-
|
|
1013
|
+
const { type, description, items, prefixItems } = this.schema || {};
|
|
1014
|
+
const tupleItems = Array.isArray(prefixItems) ? prefixItems : Array.isArray(items) ? items : null;
|
|
1015
|
+
if (tupleItems && type === SCHEMA_TYPES$1.ARRAY) {
|
|
1015
1016
|
const tupleContent = [];
|
|
1016
|
-
for (const item of
|
|
1017
|
+
for (const item of tupleItems) tupleContent.push(this.schemaParserFabric.createSchemaParser({
|
|
1017
1018
|
schema: item,
|
|
1018
1019
|
schemaPath: this.schemaPath
|
|
1019
1020
|
}).getInlineParseContent());
|
|
@@ -4225,4 +4226,4 @@ async function generateApi(config) {
|
|
|
4225
4226
|
//#endregion
|
|
4226
4227
|
export { SCHEMA_TYPES as a, constants_exports as c, version as d, RequestContentKind as i, description as l, generateTemplates as n, CodeGenConfig as o, TemplatesGenConfig as r, HTTP_CLIENT as s, generateApi as t, name as u };
|
|
4227
4228
|
|
|
4228
|
-
//# sourceMappingURL=src-
|
|
4229
|
+
//# sourceMappingURL=src-Dex5t5WU.mjs.map
|