Open pgnaleen opened 6 years ago
i added template directory like following but not working in eclipse
anyone please help me.
<templateDirectory>
should be the at same level as <generatorName>
<configOptions>
refers to generator-specified options
this is pom again
still not working
OAuth.mustache file like below.
{{>licenseInfo}}
package {{invokerPackage}}.auth;
import {{invokerPackage}}.Pair;
import java.util.Map; import java.util.List;
{{>generatedAnnotation}} public class OAuth implements Authentication { private String accessToken;
public String getAccessToken() { return accessToken123; }
public void setAccessToken(String accessToken) { this.accessToken = accessToken; }
@Override
public void applyToParams(List
hello i created java custom generator. please send me how can i use that in pom.xml to generate apiClient
this is command i used. java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar meta \ -o out/generators/my-codegen -n my-codegen -p com.my.company.codegen
then copied all java templates. then mvn package custom java-generator created but please kind enough to send me suitable pom to add this generator and generate apiClient. I think templateDirectory no need to add.
Description
there is a API gateway middle of the Rest Service and my client. So i need to connect to that API using access token. So that access token generation and refreshing part i need to add into auto generated client code. Also i need proper documentation for learn how to write mustache templates. Thanks in advance for your support.
openapi-generator version
3