[Dart/CSharp/Python] replace File.separator with slash (#16282)

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-08-09 15:28:31 +09:00 committed by GitHub
parent 3f8bce6695
commit a3d14c87c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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);