Skip to content

Commit f8a8082

Browse files
committed
Merge conflicts
1 parent 074520a commit f8a8082

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ junit.xml
88
.idea
99
.vscode
1010
*.iml
11+
dist
1112
coverage
1213
test/generated
1314
test/e2e/generated

src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ export const generate = async ({
141141
useOptions,
142142
useUnionTypes,
143143
indent,
144-
postfix,
145-
serviceTemplate
144+
postfixServices,
145+
postfixModels,
146+
serviceTemplate,
146147
);
147148
}
148149
};

src/utils/writeClient.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import { writeClientServices } from './writeClientServices';
2626
* @param exportServices Generate services
2727
* @param exportModels Generate models
2828
* @param exportSchemas Generate schemas
29-
* @param exportSchemas Generate schemas
3029
* @param indent Indentation options (4, 2 or tab)
3130
* @param postfixServices Service name postfix
3231
* @param postfixModels Model name postfix

src/utils/writeClientServicesCustomTemplate.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export const writeClientServicesCustomTemplate = async (
1717
useOptions: boolean,
1818
useUnionTypes: boolean,
1919
indent: Indent,
20-
postfix: string,
20+
postfixServices: string,
21+
postfixModels: string,
2122
templatePath: string
2223
) => {
2324
registerHandlebarTemplates({
@@ -37,14 +38,15 @@ export const writeClientServicesCustomTemplate = async (
3738
await mkdir(servicesDir);
3839

3940
for (const service of client.services) {
40-
const file = resolve(outputPath, `services/${service.name}${postfix}.ts`);
41+
const file = resolve(outputPath, `services/${service.name}${postfixServices}.ts`);
4142
const templateResult = serviceTemplate({
4243
...service,
4344
serviceBaseUrl: client.server,
4445
httpClient,
4546
useUnionTypes,
4647
useOptions,
47-
postfix,
48+
postfixServices,
49+
postfixModels,
4850
});
4951
await writeFile(file, formatIndentation(formatCode(templateResult), indent));
5052
}

0 commit comments

Comments
 (0)