-
Bug
-
Resolution: Not a Bug
-
Major
-
None
-
4.7.2.Final
-
None
-
-
Workaround Exists
-
This happens with Java17, Wildly-25.0.1.Final
RESTeasy client can't deserialize a json with subtypes.
Client client = ResteasyClientBuilder.newBuilder().build();
client.target("http://localhost:3000/test")
.request()
.get(Resource.class);
JSON snippet (produced by jackson2):
{ "type": "agori.sample.dto.Concept", "id": "wmt_food_configuration_c0", "prefLabel": "Food Configuration" }
Error:
Could not resolve type id 'agori.sample.dto.Concept' as a subtype of `agori.sample.dto.Resource`: Configured `PolymorphicTypeValidator` (of type `com.fasterxml.jackson.databind.jsontype.BasicPolymorphicTypeValidator`) denied resolution at [Source: (org.jboss.resteasy.specimpl.AbstractBuiltResponse$InputStreamWrapper); line: 3, column: 11]
- is related to
-
RESTEASY-2411 resteasy-jackson2-provider: default white-list based PolymorphicTypeValidator extension
- Resolved