-
Notifications
You must be signed in to change notification settings - Fork 192
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
Add Boom.internal() to API docs fixes #127 #129
Conversation
I think I'm going to pass on this. I don't think I've ever once seen this used in the wild. Plus it makes the documentation for this look really ugly. |
That was the old me. |
Well, thanks for at least considering, and I respect the fact that this hapi ecosystem is run as a tight ship (which is why I use it). 😉 FYI, I believe I got it from @geek who used it in his Nodevember 2015 presentation on Seneca: So he might have used it other places as well? My main concern for #127 is that ...it also looks like it's in one of the Hapi tests, but I don't know if that's enough of a reason to document it: |
@tribou if it's already an alias to |
@Marsup yep, you're right. I would just need to go back and change all of the places I had used it before realizing it wasn't in the API docs... But is it still an issue that |
I guess my question is why are you using it over |
@arb 500 is an internal server error, seems obvious to use the method named |
@@ -593,7 +593,7 @@ Generates the following response payload: | |||
|
|||
All 500 errors hide your message from the end user. Your message is recorded in the server log. | |||
|
|||
### `Boom.badImplementation([message], [data])` | |||
### `Boom.badImplementation([message], [data])` - alias: `internal` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this to
Boom.badImplementation([message], [data])
- (alias: internal
)
@@ -37,7 +37,7 @@ Lead Maintainer: [Adam Bretz](https://github.com/arb) | |||
- [`Boom.tooManyRequests([message], [data])`](#boomtoomanyrequestsmessage-data) | |||
- [`Boom.illegal([message], [data])`](#boomillegalmessage-data) | |||
- [HTTP 5xx Errors](#http-5xx-errors) | |||
- [`Boom.badImplementation([message], [data])`](#boombadimplementationmessage-data) | |||
- [`Boom.badImplementation([message], [data])` - alias: `internal`](#boombadimplementationmessage-data---alias-internal) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Undo this please. The TOC is automatically generated.
8a65bfb
to
1cd79ad
Compare
Both changes should now be updated. |
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
I followed the Joi API doc example and added
internal
as an alias forbadImplementation
since the returnedstatusCode
anderror
are the same.