google / jsonapi

jsonapi.org style payload serializer and deserializer
http://godoc.org/github.com/google/jsonapi
MIT License
1.42k stars 211 forks source link

Polymorphic relationships #192

Closed gadelkareem closed 4 years ago

gadelkareem commented 4 years ago

Are there any plans to include polymorphic relationships? Or is there any workarounds away from using a relation?

ref https://github.com/google/jsonapi/issues/45

aren55555 commented 4 years ago

There are no plans to add this. Once Contracts are released there is probably a strong case to rewrite this library to make use of them to make adding features such as this much more easy.