Skip to content

Commit

Permalink
BugFix - deserialize ClassInstance source information
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbey committed Nov 28, 2024
1 parent 78d3bf7 commit 428525f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import java.io.IOException;
import java.util.Map;
import org.eclipse.collections.api.factory.Lists;
import org.finos.legend.engine.protocol.pure.v1.ProcessHelper;
import org.finos.legend.engine.protocol.pure.v1.PureProtocolObjectMapperFactory;
import org.finos.legend.engine.protocol.pure.v1.model.SourceInformation;
import org.finos.legend.engine.protocol.pure.v1.model.valueSpecification.ValueSpecification;
Expand Down Expand Up @@ -80,6 +81,7 @@ public ClassInstance deserialize(JsonParser jsonParser, DeserializationContext d
((ObjectNode) node.get("value")).set("_type", new TextNode(result.type)); // For backward compatibility
}
result.value = oc.treeToValue(node.get("value"), _class);
result.sourceInformation = ProcessHelper.processOne(node, "sourceInformation", SourceInformation.class, oc);
return result;
}
}
Expand Down

0 comments on commit 428525f

Please sign in to comment.