covalent-highlight-nightly icon indicating copy to clipboard operation
covalent-highlight-nightly copied to clipboard

Support different collection resource objects

Open ianqueue opened this issue 7 years ago • 0 comments

Feature Request

Support different object structures within a collection resource endpoint.

What is the expected behavior?

One would be able to create different object payloads randomly or programmatically that would produce something like the following...

[{
  "id": 1,
  "color": "red"
},
{
  "id": 2,
  "shape": "square"
},
{
  "id": 3,
  "size": 100
},
...
]

Having a simply null for unused properties is not always ideal as your resource may describe a collection of fundamentally different "things".

Which version of golang, and which browser and OS does this issue affect?

go version go1.8 darwin/amd64

ianqueue avatar Apr 26 '17 18:04 ianqueue