Joi: Where is the documentation for `this.createError()`?

Created on 6 Oct 2016  路  7Comments  路  Source: sideway/joi

It is used in the examples for extend here, but is not mentioned anywhere else in the API document. Where is the this.createError() documented? I don't find it obvious what parameters shold be passed to it.

documentation

Most helpful comment

You're right it doesn't exist yet, will add that.

All 7 comments

You're right it doesn't exist yet, will add that.

ping 馃槃

@spalger We're always glad to review and accept PRs (as well as provide help to get them to a mergable state). If this is of importance to you then that would be a great way to contribute.

The createError function is defined here if you want the function signature.
https://github.com/hapijs/joi/blob/master/lib/types/any/index.js#L82

I guess no one likes docs so I'll do it :)

Let me know if the wording is clear enough or still confusing.

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.

Was this page helpful?
0 / 5 - 0 ratings