mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 22:20:56 +00:00
issue-2743 generating docs in root/docs(Api/Model)
This commit is contained in:
parent
ce6dd4b2c2
commit
9bf4e12056
@ -36,11 +36,12 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
protected String artifactVersion = "1.0.0";
|
protected String artifactVersion = "1.0.0";
|
||||||
protected String srcBasePath = "lib";
|
protected String srcBasePath = "lib";
|
||||||
protected String testBasePath = "test";
|
protected String testBasePath = "test";
|
||||||
|
protected String docsBasePath = "docs";
|
||||||
protected String apiDirName = "Api";
|
protected String apiDirName = "Api";
|
||||||
protected String modelDirName = "Model";
|
protected String modelDirName = "Model";
|
||||||
protected String variableNamingConvention= "snake_case";
|
protected String variableNamingConvention= "snake_case";
|
||||||
protected String apiDocPath = "docs/";
|
protected String apiDocPath = docsBasePath + "/" + apiDirName;
|
||||||
protected String modelDocPath = "docs/";
|
protected String modelDocPath = docsBasePath + "docs/" + modelDirName;
|
||||||
|
|
||||||
public PhpClientCodegen() {
|
public PhpClientCodegen() {
|
||||||
super();
|
super();
|
||||||
@ -271,13 +272,11 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String apiDocFileFolder() {
|
public String apiDocFileFolder() {
|
||||||
//return (outputFolder + "/" + apiDocPath).replace('/', File.separatorChar);
|
|
||||||
return (outputFolder + "/" + getPackagePath() + "/" + apiDocPath);
|
return (outputFolder + "/" + getPackagePath() + "/" + apiDocPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String modelDocFileFolder() {
|
public String modelDocFileFolder() {
|
||||||
//return (outputFolder + "/" + modelDocPath).replace('/', File.separatorChar);
|
|
||||||
return (outputFolder + "/" + getPackagePath() + "/" + modelDocPath);
|
return (outputFolder + "/" + getPackagePath() + "/" + modelDocPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user