kamikat / moshi-jsonapi

JSON API v1.0 Specification in Moshi.
MIT License
156 stars 35 forks source link

Ignore includes #71

Closed Pedroalexandrelopes closed 6 years ago

Pedroalexandrelopes commented 6 years ago

The response from the server contains some included data that I don't need. I don't want to define these properties in my Resource object but I'm getting the error: "Unknown type of resource: ... ". How should I ignore these cases and just serialize the properties defined in the Resource? Thanks

kamikat commented 6 years ago

Refer https://github.com/kamikat/moshi-jsonapi#fallback to add the default type should solve your problem.

Pedroalexandrelopes commented 6 years ago

don't know how I missed that. Thank you, it's working now.