We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 041f978 commit cba96c9Copy full SHA for cba96c9
1 file changed
src/main/java/com/skyflow/vault/controller/DetectController.java
@@ -70,7 +70,7 @@ public ReidentifyTextResponse reidentifyText(ReidentifyTextRequest reidentifyTex
70
ReidentifyStringResponse reidentifyStringResponse = super.getDetectTextApi().reidentifyString(request);
71
72
// Parse the response to ReidentifyTextResponse
73
- reidentifyTextResponse = new ReidentifyTextResponse(reidentifyStringResponse.getAdditionalProperties().get("text").toString());
+ reidentifyTextResponse = new ReidentifyTextResponse(reidentifyStringResponse.getText().orElse(null));
74
LogUtil.printInfoLog(InfoLogs.REIDENTIFY_TEXT_REQUEST_RESOLVED.getLog());
75
} catch (ApiClientApiException ex) {
76
LogUtil.printErrorLog(ErrorLogs.REIDENTIFY_TEXT_REQUEST_REJECTED.getLog());
0 commit comments