Skip to content

Commit

Permalink
Fixed imports of models in indexFile
Browse files Browse the repository at this point in the history
Fixes #291
  • Loading branch information
Luis Fernando Planella Gonzalez committed Oct 23, 2023
1 parent 8984924 commit ce7d4ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/index.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export { {{baseServiceClass}} } from './{{{baseServiceFile}}}';
export { {{requestBuilderClass}} } from './{{{requestBuilderFile}}}';
export { {{responseClass}} } from './{{{responseFile}}}';
export { {{moduleClass}} } from './{{{moduleFile}}}';
{{#modelIndex.imports}}export { {{{typeName}}}{{#useAlias}} as {{{qualifiedName}}}{{/useAlias}} } from '{{{file}}}';
{{#modelIndex.imports}}export { {{{typeName}}}{{#useAlias}} as {{{qualifiedName}}}{{/useAlias}} } from './models{{{file}}}';
{{/modelIndex.imports}}
{{#services}}export { {{typeName}} } from './services/{{{fileName}}}';
{{/services}}
5 changes: 3 additions & 2 deletions test/all-types.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "../ng-openapi-gen-schema.json",
"input": "all-types.json",
"output": "out/all-types/"
}
"output": "out/all-types/",
"indexFile": true
}

0 comments on commit ce7d4ae

Please sign in to comment.