forked from loafle/openapi-generator-original
Merge branch 'master' of github.com:swagger-api/swagger-codegen into csharp_List_to_ICollection
This commit is contained in:
@@ -38,6 +38,10 @@ public class CSharpClientOptionsTest extends AbstractOptionsTest {
|
||||
times = 1;
|
||||
clientCodegen.useDateTimeOffset(true);
|
||||
times = 1;
|
||||
clientCodegen.setOptionalProjectFileFlag(true);
|
||||
times = 1;
|
||||
clientCodegen.setPackageGuid(CSharpClientOptionsProvider.PACKAGE_GUID_VALUE);
|
||||
times = 1;
|
||||
}};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ public class CSharpClientOptionsProvider implements OptionsProvider {
|
||||
public static final String PACKAGE_NAME_VALUE = "swagger_client_csharp";
|
||||
public static final String PACKAGE_VERSION_VALUE = "1.0.0-SNAPSHOT";
|
||||
public static final String SOURCE_FOLDER_VALUE = "src_csharp";
|
||||
public static final String PACKAGE_GUID_VALUE = "{894EAEBB-649A-498C-A735-10D0BD7B73E0}";
|
||||
|
||||
@Override
|
||||
public String getLanguage() {
|
||||
@@ -28,6 +29,8 @@ public class CSharpClientOptionsProvider implements OptionsProvider {
|
||||
.put(CodegenConstants.SOURCE_FOLDER, SOURCE_FOLDER_VALUE)
|
||||
.put(CodegenConstants.USE_COLLECTION, "false")
|
||||
.put(CodegenConstants.RETURN_ICOLLECTION, "false")
|
||||
.put(CodegenConstants.OPTIONAL_PROJECT_FILE, "true")
|
||||
.put(CodegenConstants.OPTIONAL_PROJECT_GUID, PACKAGE_GUID_VALUE)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user