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.
- package/CHANGELOG.md +6 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-wBxKO8QY.cjs → src-CgtuxwSo.cjs} +5 -3
- package/dist/{src-wBxKO8QY.cjs.map → src-CgtuxwSo.cjs.map} +1 -1
- package/dist/{src-keAwW8iT.js → src-CsGSW_U0.js} +5 -3
- package/dist/{src-keAwW8iT.js.map → src-CsGSW_U0.js.map} +1 -1
- package/package.json +2 -2
|
@@ -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.
|
|
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.
|
|
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-
|
|
3157
|
+
//# sourceMappingURL=src-CsGSW_U0.js.map
|