File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,8 @@ public class TypeScriptClientCodegen extends AbstractTypeScriptClientCodegen imp
100100 private final DateTimeFormatter iso8601Date = DateTimeFormatter .ISO_DATE ;
101101 private final DateTimeFormatter iso8601DateTime = DateTimeFormatter .ISO_DATE_TIME ;
102102
103+ protected String apiDocPath = "docs/" ;
104+
103105 public TypeScriptClientCodegen () {
104106 super ();
105107
@@ -400,6 +402,11 @@ public ModelsMap postProcessModels(ModelsMap objs) {
400402 return objs ;
401403 }
402404
405+ @ Override
406+ public String apiDocFileFolder () {
407+ return (outputFolder + "/" + apiDocPath ).replace ('/' , File .separatorChar );
408+ }
409+
403410 private List <Map <String , String >> toTsImports (CodegenModel cm , Set <String > imports ) {
404411 List <Map <String , String >> tsImports = new ArrayList <>();
405412 for (String im : imports ) {
@@ -432,6 +439,8 @@ public void processOpts() {
432439 apiPackage = this .apiPackage + ".apis" ;
433440 testPackage = this .testPackage + ".tests" ;
434441
442+ additionalProperties .put ("apiDocPath" , apiDocPath );
443+
435444 additionalProperties .putIfAbsent (FRAMEWORK_SWITCH , FRAMEWORKS [0 ]);
436445 supportingFiles .add (new SupportingFile ("index.mustache" , "index.ts" ));
437446
You can’t perform that action at this time.
0 commit comments