restdocs-api-spec icon indicating copy to clipboard operation
restdocs-api-spec copied to clipboard

fix: update class signature to adapt Jackson 2.18 changes in deserialization of data class

Open mukul-tyagi opened this issue 1 year ago • 0 comments

With Jackson 2.18.2, while deserializing the Schema class it gives below exception

Cannot construct instance of com.epages.restdocs.apispec.model.Schema (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator) at [Source: UNKNOWN; line: 83, column: 7] (through reference chain: com.epages.restdocs.apispec.model.ResourceModel["response"]->com.epages.restdocs.apispec.model.ResponseModel["schema"])

and to resolve it Jackson library provided the workaround used in the MR changes

Related to #https://github.com/ePages-de/restdocs-api-spec/issues/278

mukul-tyagi avatar Jan 24 '25 07:01 mukul-tyagi