infinum / kotlin-jsonapix

JsonApiX is an Android, annotation processor library that was made to transform regular Kotlin classes into their JSON API representations, with the ability to serialize or deserialize them to or from strings.
Apache License 2.0
38 stars 9 forks source link

Inherit from custom/default link classes when building main model class #63

Closed DrakslerT closed 9 months ago

DrakslerT commented 9 months ago

Task

Now the generate model will inherit form the custom link classes which the user has specified(for all placements). If there are no custom classes, the model will instead inherit form the DefaultLink class.

With this change multiple gemerated files needed to make this change as well(JsonApiXList_, JsonApiX_, ResourceObject_,JsonXExtensions) so this is done in their spec builders.

The project builds normally and I tested the serialisation/deserialisation of the person model in the sample view model.

sonarcloud[bot] commented 9 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

DrakslerT commented 9 months ago

Should I write some tests as well for this? Did not have the time currently.