Skip to content

Migrating from Restify 4.x to Restify 5.x. Closes #47#48

Open
mariopeixoto wants to merge 2 commits intodomenic:masterfrom
mariopeixoto:master
Open

Migrating from Restify 4.x to Restify 5.x. Closes #47#48
mariopeixoto wants to merge 2 commits intodomenic:masterfrom
mariopeixoto:master

Conversation

@mariopeixoto
Copy link
Copy Markdown

See #47.

Please review and let me know if this works for you. Since Restify 5.x removed the restify.errors property, I had to use the restify-errors package.

The most important change is that restify-errors don't allow the customization of the body, but it does allow the creation of new errors using the makeConstructor function. So the JSON output will change a little bit from { error: ..., errorDescription: ...} to { code: ..., message: ... }. Does that comply with the specification?

@itsdouges
Copy link
Copy Markdown

@domenic any word on reviewing at the PR? :)

@bialesdaniel
Copy link
Copy Markdown

Any update on whether this can be merged?

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

Successfully merging this pull request may close these issues.

3 participants