Skip to content

Commit

Permalink
added ignore case exception for PortPriority class
Browse files Browse the repository at this point in the history
  • Loading branch information
tutkat committed Sep 30, 2024
1 parent fb7b628 commit 348bae8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/Java/libraries/okhttp-gson/JSON.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package {{invokerPackage}};

import com.equinix.openapi.fabric.v4.model.PortDeviceRedundancy;
import com.equinix.openapi.fabric.v4.model.PortEncapsulation;
import com.equinix.openapi.fabric.v4.model.PortPriority;
import com.fasterxml.jackson.databind.util.StdDateFormat;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
Expand Down Expand Up @@ -164,6 +165,7 @@ public class JSON {
{{/models}}
gsonBuilder.registerTypeAdapter(PortEncapsulation.TypeEnum.class,new UppercaseEnumAdapter());
gsonBuilder.registerTypeAdapter(PortDeviceRedundancy.PriorityEnum.class,new UppercaseEnumAdapter());
gsonBuilder.registerTypeAdapter(PortPriority.class, new UppercaseEnumAdapter());
gson = gsonBuilder.setPrettyPrinting().create();
}

Expand Down

0 comments on commit 348bae8

Please sign in to comment.