I am using Wildfly and have this code:
Response xxxxDetailsResponse =
clientDetailsClient.target(targetForxxxxDetailsService)
.queryParam(propertiesService.getSystemProperty("xxxx_details_including_xxxxxxx"),
"true")
.request(MediaType.APPLICATION_XML)
.header("jwt", jWTObject.getJwt())
.get(Response.class);
int statusCode = xxxxDetailsResponse .getStatus();
logger.info("Status = " + statusCode);
if (statusCode != 200) {
logger.severe( xxxxDetailsResponse .getStatusInfo().getReasonPhrase());
logger.severe( xxxxDetailsResponse .readEntity(String.class));
} else {
logger.info("Media Type:" + xxxxDetailsResponse .getMediaType());
xxxxDetailsProfileWrapper xxxxDetailsProfileWrapper =
xxxxDetailsResponse.readEntity(xxxxDetailsProfileWrapper.class);
The problem is that the "spec" I inteact with has fields added over time
(albeit optional)...
The unmarshalling fails and then I have to update the Entites I am
unmarshalling into to add the new fields...
I can't seem to find an Annotation or a setting that says "Ignore unknown
fields arriving in supplied Json"....
Please can you advise what I am missing here...
Thx
<
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&...
Virus-free.
www.avast.com
<
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&...
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>