Skip to content

Commit

Permalink
v2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Feb 20, 2020
1 parent 0f37c42 commit 7184c24
Show file tree
Hide file tree
Showing 4 changed files with 309 additions and 307 deletions.
2 changes: 1 addition & 1 deletion lib/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const intern = (module.exports.intern = {
if (rule.isJoi || Joi.isSchema(rule)) {
var joidesc = rule.describe()
b.push(param_md + joidesc.type + self.joiflags(joidesc.flags))
if (null != joidesc.flags.description) {
if (joidesc.flags && null != joidesc.flags.description) {
b.push(' : ' + joidesc.flags.description)
}
} else {
Expand Down

0 comments on commit 7184c24

Please sign in to comment.