swagger-typescript-api 13.2.14 → 13.2.15

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.
@@ -176,7 +176,7 @@ var ComponentTypeNameResolver = class extends NameResolver {
176
176
  //#endregion
177
177
  //#region package.json
178
178
  var name = "swagger-typescript-api";
179
- var version = "13.2.14";
179
+ var version = "13.2.15";
180
180
  var description = "Generate the API client for Fetch or Axios from an OpenAPI Specification";
181
181
  var homepage = "https://github.com/acacode/swagger-typescript-api";
182
182
  var bugs = "https://github.com/acacode/swagger-typescript-api/issues";
@@ -239,7 +239,7 @@ var devDependencies = {
239
239
  "@changesets/cli": "2.29.7",
240
240
  "@tsconfig/node20": "20.1.6",
241
241
  "@tsconfig/strictest": "2.0.6",
242
- "@types/node": "24.6.2",
242
+ "@types/node": "24.7.0",
243
243
  "@types/swagger2openapi": "7.0.4",
244
244
  "axios": "1.12.2",
245
245
  "tsdown": "0.15.6",
@@ -2743,6 +2743,8 @@ var CodeGenProcess = class {
2743
2743
  this.schemaWalker.addSchema("$original", swagger.originalSchema);
2744
2744
  consola.info("start generating your typescript api");
2745
2745
  this.config.update(this.config.hooks.onInit(this.config, this) || this.config);
2746
+ if (this.config.swaggerSchema) swagger.usageSchema = this.config.swaggerSchema;
2747
+ if (this.config.originalSchema) swagger.originalSchema = this.config.originalSchema;
2746
2748
  this.schemaComponentsMap.clear();
2747
2749
  lodash.each(swagger.usageSchema.components, (component, componentName) => lodash.each(component, (rawTypeData, typeName) => {
2748
2750
  this.schemaComponentsMap.createComponent(this.schemaComponentsMap.createRef([
@@ -3152,4 +3154,4 @@ async function generateApi(config) {
3152
3154
 
3153
3155
  //#endregion
3154
3156
  export { CodeGenConfig, HTTP_CLIENT, RequestContentKind, SCHEMA_TYPES, TemplatesGenConfig, constants_exports, generateApi, generateTemplates, package_default };
3155
- //# sourceMappingURL=src-keAwW8iT.js.map
3157
+ //# sourceMappingURL=src-CsGSW_U0.js.map