forked from loafle/openapi-generator-original
remove unnecessary code (#19159)
This commit is contained in:
parent
875fdb50bd
commit
c05bedb148
@ -208,11 +208,6 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen {
|
||||
instantiationTypes.put("array", "List");
|
||||
instantiationTypes.put("list", "List");
|
||||
instantiationTypes.put("map", "Dictionary");
|
||||
|
||||
this.setSortParamsByRequiredFlag(true);
|
||||
|
||||
// do it only on newer libraries to avoid breaking changes
|
||||
// this.setSortModelPropertiesByRequiredFlag(true);
|
||||
}
|
||||
|
||||
public void setUseCollection(boolean useCollection) {
|
||||
|
@ -745,8 +745,6 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
||||
if (GENERICHOST.equals(getLibrary())) {
|
||||
setLibrary(GENERICHOST);
|
||||
additionalProperties.put("useGenericHost", true);
|
||||
// all c# libraries should be doing this, but we only do it here to avoid breaking changes
|
||||
this.setSortModelPropertiesByRequiredFlag(true);
|
||||
} else if (RESTSHARP.equals(getLibrary())) {
|
||||
additionalProperties.put("useRestSharp", true);
|
||||
needsCustomHttpMethod = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user