Skip to content

Commit faf8463

Browse files
authored
Merge pull request OpenAPITools#4 from ronanwatkins/DEVENGAGE-898
DEVENGAGE-898: .NET SDK
2 parents ce611e5 + 8cc6d5d commit faf8463

File tree

59 files changed

+950
-9669
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+950
-9669
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenConstants.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,17 @@ public class CodegenConstants {
169169
public static final String PACKAGE_PRODUCTNAME_DESC = "Specifies an AssemblyProduct for the .NET Framework global assembly attributes stored in the AssemblyInfo file.";
170170
public static final String PACKAGE_DESCRIPTION = "packageDescription";
171171
public static final String PACKAGE_DESCRIPTION_DESC = "Specifies a AssemblyDescription for the .NET Framework global assembly attributes stored in the AssemblyInfo file.";
172+
public static final String PACKAGE_CONFIGURATION = "packageConfiguration";
172173
public static final String PACKAGE_COMPANY = "packageCompany";
173174
public static final String PACKAGE_COMPANY_DESC = "Specifies an AssemblyCompany for the .NET Framework global assembly attributes stored in the AssemblyInfo file.";
175+
public static final String PACKAGE_PRODUCT_NAME = "packageProductName";
174176
public static final String PACKAGE_AUTHORS = "packageAuthors";
175177
public static final String PACKAGE_AUTHORS_DESC = "Specifies Authors property in the .NET Core project file.";
176178
public static final String PACKAGE_URL = "packageUrl";
177179
public static final String PACKAGE_COPYRIGHT = "packageCopyright";
178180
public static final String PACKAGE_COPYRIGHT_DESC = "Specifies an AssemblyCopyright for the .NET Framework global assembly attributes stored in the AssemblyInfo file.";
181+
public static final String PACKAGE_TRADEMARK = "packageTrademark";
182+
public static final String PACKAGE_CULTURE = "packageCulture";
179183

180184
public static final String POD_VERSION = "podVersion";
181185

modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenParameter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,4 +671,3 @@ public Tuple(X item1, Y item2) {
671671
}
672672
}
673673
}
674-

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ public String toVarName(final String name) {
13481348
if (reservedWords.contains(name)) {
13491349
return escapeReservedWord(name);
13501350
} else if (name.chars().anyMatch(character -> specialCharReplacements.containsKey("" + ((char) character)))) {
1351-
return escape(name, specialCharReplacements, null, null);
1351+
return name;
13521352
}
13531353
return name;
13541354
}
@@ -1365,7 +1365,7 @@ public String toParamName(String name) {
13651365
if (reservedWords.contains(name)) {
13661366
return escapeReservedWord(name);
13671367
} else if (name.chars().anyMatch(character -> specialCharReplacements.containsKey("" + ((char) character)))) {
1368-
return escape(name, specialCharReplacements, null, null);
1368+
return escapeReservedWord(name);
13691369
}
13701370
return name;
13711371

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,6 @@ void generateModels(List<File> files, List<Object> allModels, List<String> unuse
498498
// generators may choose to make models for use case 2 + 3
499499
Schema refSchema = new Schema();
500500
refSchema.set$ref("#/components/schemas/"+name);
501-
Schema unaliasedSchema = config.unaliasSchema(refSchema, config.importMapping());
502501
} else if (ModelUtils.isMapSchema(schema)) { // check to see if it's a "map" model
503502
// A composed schema (allOf, oneOf, anyOf) is considered a Map schema if the additionalproperties attribute is set
504503
// for that composed schema. However, in the case of a composed schema, the properties are defined or referenced

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
4343
protected boolean optionalEmitDefaultValuesFlag = false;
4444
protected boolean optionalProjectFileFlag = true;
4545
protected boolean optionalMethodArgumentFlag = true;
46+
protected boolean optionalEmitDefaultValue = false;
4647
protected boolean useDateTimeOffsetFlag = false;
4748
protected boolean useCollection = false;
4849
protected boolean returnICollection = false;
@@ -1276,4 +1277,4 @@ public void postProcessFile(File file, String fileType) {
12761277
}
12771278
}
12781279
}
1279-
}
1280+
}

0 commit comments

Comments
 (0)