forked from loafle/openapi-generator-original
[Dart/CSharp/Python] replace File.separator with slash (#16282)
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
3f8bce6695
commit
a3d14c87c4
@ -60,8 +60,8 @@ public abstract class AbstractDartCodegen extends DefaultCodegen {
|
||||
protected boolean useEnumExtension = false;
|
||||
protected String sourceFolder = "src";
|
||||
protected String libPath = "lib" + File.separator;
|
||||
protected String apiDocPath = "doc" + File.separator;
|
||||
protected String modelDocPath = "doc" + File.separator;
|
||||
protected String apiDocPath = "doc/";
|
||||
protected String modelDocPath = "doc/";
|
||||
protected String apiTestPath = "test" + File.separator;
|
||||
protected String modelTestPath = "test" + File.separator;
|
||||
|
||||
|
@ -99,8 +99,8 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
||||
protected String packageGuid = "{" + java.util.UUID.randomUUID().toString().toUpperCase(Locale.ROOT) + "}";
|
||||
protected String clientPackage = "Client";
|
||||
protected String authFolder = "Auth";
|
||||
protected String apiDocPath = "docs" + File.separator;
|
||||
protected String modelDocPath = "docs" + File.separator;
|
||||
protected String apiDocPath = "docs/";
|
||||
protected String modelDocPath = "docs/";
|
||||
|
||||
// Defines TargetFrameworkVersion in csproj files
|
||||
protected String targetFramework = latestFramework.name;
|
||||
|
@ -51,8 +51,8 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege
|
||||
public static final String DATE_FORMAT = "dateFormat";
|
||||
|
||||
protected String packageUrl;
|
||||
protected String apiDocPath = "docs" + File.separator;
|
||||
protected String modelDocPath = "docs" + File.separator;
|
||||
protected String apiDocPath = "docs/";
|
||||
protected String modelDocPath = "docs/";
|
||||
protected boolean useOneOfDiscriminatorLookup = false; // use oneOf discriminator's mapping for model lookup
|
||||
protected String datetimeFormat = "%Y-%m-%dT%H:%M:%S.%f%z";
|
||||
protected String dateFormat = "%Y-%m-%d";
|
||||
@ -236,8 +236,8 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege
|
||||
// tests in <package>/test
|
||||
testFolder = packagePath() + File.separatorChar + testFolder;
|
||||
// api/model docs in <package>/docs
|
||||
apiDocPath = packagePath() + File.separatorChar + apiDocPath;
|
||||
modelDocPath = packagePath() + File.separatorChar + modelDocPath;
|
||||
apiDocPath = packagePath() + "/" + apiDocPath;
|
||||
modelDocPath = packagePath() + "/" + modelDocPath;
|
||||
}
|
||||
// make api and model doc path available in mustache template
|
||||
additionalProperties.put("apiDocPath", apiDocPath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user