Skip to content

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

Open
mukul-tyagi wants to merge 1 commit intoePages-de:masterfrom
mukul-tyagi:fix/jackson-deserialization-for-data-class-Schema
Open

fix: update class signature to adapt Jackson 2.18 changes in deserialization of data class#279
mukul-tyagi wants to merge 1 commit intoePages-de:masterfrom
mukul-tyagi:fix/jackson-deserialization-for-data-class-Schema

Conversation

@mukul-tyagi
Copy link

@mukul-tyagi mukul-tyagi commented Jan 24, 2025

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 ##278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant