Welcome to jsonapi-resources Discussions! #1432
Replies: 1 comment
-
Hello! If this kind of question is not appropriate for this discussion area please let me know. JSON:API allows attributes to be objects, and I would like to be able to do this with jsonapi-resources. For example, instead of something like this, where the attributes section is completely flat:
I'd like to be able to do this, where I can group attributes with objects:
Using this example, I would not want addresses to be separate resources, and don't want a whole bunch of unique attribute names (using prefixes) to differentiate similar but different address parts - I'd rather group them. I can do this with vanilla Rails using ActiveRecord's UPDATE: |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions