Skip to content

[Document Conversion Service JDK API] omit Parent ID missing from the answer units  #428

@christianIreland

Description

@christianIreland

When using the Watson SDK-API to submit documents to the Document Conversion Service, the Answer Units generated are missing the Parent ID.

The issue is easily reproducible, just by using the Watson SDK. A snippet of code is reported below:

private Answers convertDocumentToAnswer(File document,  String mediaType) throws FileNotFoundException {
        ServiceCall<Answers> answersCall;
        JsonObject dcsConfigJson = loadDCSConfiguration();
        answersCall = getCoversionService().convertDocumentToAnswer(document, mediaType, dcsConfigJson);
        return answersCall.execute();
    }

The issue is reproducible in all the JDK versions available.
Java SDK version is 1.8.0_101

Apparently, the reason why the issue is happening is the ParentID field missing from the class Answer part of Answers

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions