swagger-typescript-api 13.11.1 → 13.11.2
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.d.cts +2 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-dL4yFLYT.cjs → src-B2ssuwoK.cjs} +10 -2
- package/dist/{src-dL4yFLYT.cjs.map → src-B2ssuwoK.cjs.map} +1 -1
- package/dist/{src-CdwLmxYh.mjs → src-C0d8cMi-.mjs} +10 -2
- package/dist/{src-CdwLmxYh.mjs.map → src-C0d8cMi-.mjs.map} +1 -1
- package/package.json +1 -1
|
@@ -169,7 +169,7 @@ var ComponentTypeNameResolver = class extends NameResolver {
|
|
|
169
169
|
//#endregion
|
|
170
170
|
//#region package.json
|
|
171
171
|
var name = "swagger-typescript-api";
|
|
172
|
-
var version = "13.11.
|
|
172
|
+
var version = "13.11.2";
|
|
173
173
|
var description = "Generate the API client for Fetch or Axios from an OpenAPI Specification";
|
|
174
174
|
//#endregion
|
|
175
175
|
//#region src/constants.ts
|
|
@@ -3658,6 +3658,14 @@ var CodeGenProcess = class {
|
|
|
3658
3658
|
return parsed;
|
|
3659
3659
|
});
|
|
3660
3660
|
this.schemaRoutes.attachSchema(resolvedSwaggerSchema, parsedSchemas);
|
|
3661
|
+
if (!this.config.preferExistingSchemaNamesForExternalRefs) {
|
|
3662
|
+
this.typeNameFormatter.precommit(this.schemaComponentsMap.getComponents().map((component) => component.typeName));
|
|
3663
|
+
for (const component of componentsToParse) {
|
|
3664
|
+
component.typeData = null;
|
|
3665
|
+
delete component.$prepared;
|
|
3666
|
+
component.typeData = this.schemaParserFabric.parseSchema(component.rawTypeData, component.typeName);
|
|
3667
|
+
}
|
|
3668
|
+
}
|
|
3661
3669
|
const rawConfiguration = {
|
|
3662
3670
|
apiConfig: this.createApiConfig(resolvedSwaggerSchema.usageSchema),
|
|
3663
3671
|
config: this.config,
|
|
@@ -4052,4 +4060,4 @@ async function generateApi(config) {
|
|
|
4052
4060
|
//#endregion
|
|
4053
4061
|
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 };
|
|
4054
4062
|
|
|
4055
|
-
//# sourceMappingURL=src-
|
|
4063
|
+
//# sourceMappingURL=src-C0d8cMi-.mjs.map
|