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.
@@ -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.5";
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
- if (Array.isArray(items) && type === SCHEMA_TYPES$1.ARRAY) {
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 items) tupleContent.push(this.schemaParserFabric.createSchemaParser({
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-BTi82JcX.mjs.map
4229
+ //# sourceMappingURL=src-Dex5t5WU.mjs.map