resgateio / resgate

A Realtime API Gateway used with NATS to build REST, real time, and RPC APIs, where all your clients are synchronized seamlessly.
https://resgate.io
MIT License
689 stars 67 forks source link

Data value #165

Closed jirenius closed 4 years ago

jirenius commented 4 years ago

Issue

Allow values of arbitrary JSON.

Instead of implementing a completely new static resource type, a less obstructive/complex solution to allow arbitrary data would be to add a data value (similar to the resource reference value):

A data value would be an json object with a single property named "data". The value of the data property can be any valid JSON value, including deeply nested structures.

Example

{ "data": { "foo": [ "bar" ] }}

Notes

jirenius commented 4 years ago

Resolved in #166