Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support simple object serialization #101

Open
petermoore14 opened this issue Jun 12, 2018 · 0 comments
Open

Support simple object serialization #101

petermoore14 opened this issue Jun 12, 2018 · 0 comments

Comments

@petermoore14
Copy link

The MemoryHandler allows one to use joi.objects as attributes, for example:

position: jsonApi.Joi.object({
  x: jsonApi.Joi.number().required(),
  y: jsonApi.Joi.number().required()
}).required(),

Unfortunately, this explodes when using relationaldb (tested with postgres), which reflects the fact that the 'object' type doesn't seem to be properly handled. Ideally relationaldb would be able to handle simple objects like this in situations where relationals like one, many, ... aren't appropriate or would be overkill.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant