We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6655197 commit 83c3851Copy full SHA for 83c3851
javagen/src/main/java/com/azure/autorest/mapper/ModelMapper.java
@@ -73,6 +73,13 @@ public ClientModel map(ObjectSchema compositeType) {
73
}
74
75
76
+ if (usages.contains(ImplementationDetails.Usage.JSON_MERGE_PATCH)
77
+ && !usages.contains(ImplementationDetails.Usage.INPUT)) {
78
+ // Remove the usage of JSON merge patch if the model isn't used as INPUT to the service. JSON merge
79
+ // patch logic is only used for INPUT.
80
+ usages.remove(ImplementationDetails.Usage.JSON_MERGE_PATCH);
81
+ }
82
+
83
ClientModel.Builder builder = createModelBuilder().name(modelName)
84
.packageName(modelType.getPackage())
85
.type(modelType)
0 commit comments