toedter / spring-hateoas-jsonapi

A JSON:API media type implementation for Spring HATEOAS
Apache License 2.0
107 stars 15 forks source link

@JsonApiMeta is not inherited #74

Closed fab29plou closed 1 year ago

fab29plou commented 1 year ago

If I use @JsonApiMeta on some field of a base class, then it is not seen when this base class is inherited on the real resource class.

Line 222 of of JsonApiData.java should use getAllDeclaredFields() and not getDeclaredFields()

toedter commented 1 year ago

Thx for reporting this. I will create a test and fix it asap.

toedter commented 1 year ago

released with version 2.0.4