Hi I am trying to deserialize `/aspects/` endpoint...
# troubleshoot
k
Hi I am trying to deserialize
/aspects/
endpoint for
?aspect=editableSchemaMetadata&version=0
format in Java. I noticed that for this we have to use LinkedIn's version of
EditableSchemaMetadata
(com.linkedin.schema.EditableSchemaMetadata) which does not work well with DataHub-GMS's response type; because eventually LinkedIn's version of this class is using
TagUrn
class where the constructor explicitly makes this call:
Copy code
super("tag", TupleKey.create(new Object[]{name}));
which causes tags to have duplicate namespace ie if tag is called
urn:li:tag:test
after deserializing with LinkedIn's
EditableSchemaMetadata
class; I am getting
urn:li:tag:urn:li:tag:test
I have tried to use DataHub's one (
io.datahubproject.openapi.generated.EditableSchemaMetadata
) however,
MetadataChangeProposalWrapper
's
aspect
method only accepts LinkedIn's
EditableSchemaMetadata
I'm wondering if I'm the only one that's ever hit this problem? Is there a way to get around with that issue? The only thing that comes to my mind is to write very complicated deserialization rule