moshi-jsonapi icon indicating copy to clipboard operation
moshi-jsonapi copied to clipboard

JSON API v1.0 Specification in Moshi.

Results 20 moshi-jsonapi issues
Sort by recently updated
recently updated
newest added

How do I put null in the network model field? I have a model like this @JsonApi(type = "notes") data class Note( var name: String? = null, var description: String?...

My JSON response has 3 nested `relationships` in it which looks like this: ![image](https://user-images.githubusercontent.com/105695988/192487701-754d6e60-8a43-4457-beba-a171f7a0672e.png) lib can parse the `blue` and `red` layers but when it comes to the `green` layer....

question

Hi, I'm using Retrofit to make paged requests. I need to be able to get paging attributes contained in meta. The retrofit interface has a call like this: `@GET("appointments?include=service") Call...

Jitpack.io depends on jCenter that is deprecated. Do you plan to migrate the app to MavenCentral?

How to get data from one object, but that object have 2 different types? I have object named 'metric', but 'metric' have 2 different types ![Capture](https://user-images.githubusercontent.com/50199656/65414150-4a17c380-de1d-11e9-8e73-d4a1bc5a2835.PNG) ![Capture1](https://user-images.githubusercontent.com/50199656/65414151-4ab05a00-de1d-11e9-8f9b-3d5afb8d3640.PNG)

I have problems trying to do the following in my app in Kotlin I have 2 objects, User and UserRelationship ``` import moe.banana.jsonapi2.JsonApi import moe.banana.jsonapi2.Resource JsonApi(type = "users") class User...

For instance I have a data model where a Survey has many Questions and a question has many Choices. All of the Questions and Choices are included when I query...

enhancement

According to [this](https://discuss.jsonapi.org/t/cycles-in-relationships/1649/2) discussion on Json:API forums, resources in primary data may have relationships with other resources that are also there (e.g. two "people" type resources with HasOne relationships referencing...

`java.lang.RuntimeException: java.lang.Exception: com.squareup.moshi.JsonDataException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at path $.data[0].relationships` Retrofit call: ``` @GET("someApi/someModel") fun getSomeModel(): Single ``` Model: ``` @JsonApi(type = "some_model") public class SomeModel extends Resource {...

Hi, I receive this JSON: ```JSON { "data": [{ "type": "place", "id": "00d66be8-7315-4f75-9dc1-7dc737a055ef", "attributes": { "name": "Test Pharmacy", "lat": 42.394898, "lng": 2.151117, "image_url": "", "user_distance": 0.03 }, "relationships": { "place_address":...