Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG][Customization] "folder" custom template parameter gets ignored #11794

Open
OnkelTem opened this issue Mar 4, 2022 · 1 comment · May be fixed by BitcoinOutput/openapi-generator#301
Open

Comments

@OnkelTem
Copy link

OnkelTem commented Mar 4, 2022

I use this configuration file to generate additional files for each API in a new "state" sub-directory:

templateDir: openapi-templates
files:
  asd.mustache:
    folder: state
    templateType: API
    destinationFilename: Asd.ts

But I get all the files right in the "api" directory. I also tried using relative path "../state" but it didn't work out.

At the same time, using SupportingFiles type does create custom folders, but it's useless in my case, as I need to create special files for each API: state, slice, sagaes etc.

Also, I couldn't find any formal docs on possible configuration options. There are no any references here: https://openapi-generator.tech/docs/customization/

@jeandonaldroselin
Copy link
Contributor

Hi,

Is there any news about this bug ?
I am still facing the same issue in march 2023 :/.

The folder is only custom-able for SupportingFiles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants