Skip to content

Commit

Permalink
- Remove api version check
Browse files Browse the repository at this point in the history
  • Loading branch information
rathnapandi committed Oct 23, 2024
1 parent ac252eb commit 1598a2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,10 @@ public API createAPIProxy(API api) throws AppException {
public API updateAPIProxy(API api) throws AppException {
LOG.debug("Updating API-Proxy: {} {} ( {} )", api.getName(), api.getVersion(), api.getId());
mapper.setSerializationInclusion(Include.NON_NULL);
FilterProvider filter = new SimpleFilterProvider().setFailOnUnknownId(false);
mapper.registerModule(new SimpleModule().setSerializerModifier(new APIImportSerializerModifier()));
mapper.registerModule(new SimpleModule().setSerializerModifier(new PolicySerializerModifier(false)));
mapper.setFilterProvider(filter);
translateMethodIds(api, api.getId(), METHOD_TRANSLATION.AS_ID);
try {
URI uri = new URIBuilder(cmd.getAPIManagerURL()).setPath(cmd.getApiBasepath() + PROXIES + api.getId()).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -810,10 +810,9 @@ public void updateAPIProxyWithBasicAuthEmptyPassword() throws IOException {
System.out.println(baseConfig.getAuthenticationProfiles());

ObjectMapper objectMapper = new ObjectMapper();
String[] serializeAllExcept = apiManagerAPIAdapter.getSerializeAllExcept();

objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
FilterProvider filter = new SimpleFilterProvider().setDefaultFilter(
SimpleBeanPropertyFilter.serializeAllExcept(serializeAllExcept));
FilterProvider filter = new SimpleFilterProvider().setFailOnUnknownId(false);
objectMapper.setFilterProvider(filter);

System.out.println(objectMapper.writeValueAsString(baseConfig));
Expand Down

0 comments on commit 1598a2c

Please sign in to comment.