Fix toJSON responses #24

Merged
joeybaker merged 1 commits from use-json into master 2016-09-08 18:33:48 +00:00
joeybaker commented 2016-09-08 04:06:46 +00:00 (Migrated from github.com)

This is a non-obvious one. Hapi is happy to convert raw sequelize
instances to proper JSON (likely because Sequelize does nice things),
but we do that, we can't use config.response.schema, because it
receives the full sequelize instance instead of JSON.

This is a patch release.

This is a non-obvious one. Hapi is happy to convert raw sequelize instances to proper JSON (likely because Sequelize does nice things), but we do that, we can't use `config.response.schema`, because it receives the full sequelize instance instead of JSON. This is a patch release.
joeybaker commented 2016-09-08 04:07:08 +00:00 (Migrated from github.com)

cc @mdibaiee

cc @mdibaiee
mdibaiee commented 2016-09-08 14:19:38 +00:00 (Migrated from github.com)

Thanks! 👍

Thanks! :+1:
joeybaker commented 2016-09-08 20:28:40 +00:00 (Migrated from github.com)

Published as part of 2.6.2 (tag created for 2.6.1 which is just this change)

Published as part of 2.6.2 (tag created for 2.6.1 which is just this change)
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: thereadme/hapi-sequelize-crud#24
No description provided.