restdocs-api-spec
restdocs-api-spec copied to clipboard
fix: update class signature to adapt Jackson 2.18 changes in deserialization of data class
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