Skip to content

Commit

Permalink
added extension properties and objectmapper properties
Browse files Browse the repository at this point in the history
  • Loading branch information
aparnab93 committed Feb 21, 2022
1 parent 235a7a8 commit 2f039a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/fynd/extension/model/Extension.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public Extension initialize(ExtensionProperties extensionProperties, BaseStorage
ExtensionCallback callbacks) {
Extension extension = new Extension();
extension.setStorage(storage);
extension.setExtensionProperties(extensionProperties);

if (StringUtils.isEmpty(extensionProperties.getApi_key())) {
throw new FdkInvalidExtensionJson("Invalid apiKey");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.fynd.extension.service;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fynd.extension.model.Extension;
import com.fynd.extension.model.Option;
import com.fynd.extension.session.Session;
Expand Down Expand Up @@ -29,6 +30,7 @@ public class ExtensionService {
public PlatformClient getPlatformClient(String companyId){
PlatformClient client = null;
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
try {
if (!this.ext.isOnlineAccessMode()) {
log.info("CompanyId : "+companyId);
Expand Down

0 comments on commit 2f039a5

Please sign in to comment.