Skip to content

Commit

Permalink
Remove warning for unused camel case vendor extension for Qt5 client …
Browse files Browse the repository at this point in the history
…and server (#5731)
  • Loading branch information
etherealjoy authored Mar 29, 2020
1 parent 77c1907 commit 94152c4
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,6 @@ public Map<String, Object> postProcessOperationsWithModels(Map<String, Object> o
List<Map<String, String>> imports = (List<Map<String, String>>) objs.get("imports");
Map<String, CodegenModel> codegenModels = new HashMap<String, CodegenModel>();

// TODO: 5.0: Remove the camelCased vendorExtension below and ensure templates use the newer property naming.
once(LOGGER).warn("4.3.0 has deprecated the use of vendor extensions which don't follow lower-kebab casing standards with x- prefix.");

for (Object moObj : allModels) {
CodegenModel mo = ((Map<String, CodegenModel>) moObj).get("model");
if (mo.isEnum) {
Expand All @@ -328,7 +325,6 @@ public Map<String, Object> postProcessOperationsWithModels(Map<String, Object> o
for (CodegenOperation operation : operations) {
if (operation.returnType != null) {
if (codegenModels.containsKey(operation.returnType)) {
operation.vendorExtensions.put("returnsEnum", true); // TODO: 5.0 Remove
operation.vendorExtensions.put("x-returns-enum", true);
}
}
Expand Down

0 comments on commit 94152c4

Please sign in to comment.