Skip to content

Commit

Permalink
fix(enum): fix doc generation for enums that contain arrays
Browse files Browse the repository at this point in the history
fixes #219
  • Loading branch information
trieloff committed Apr 14, 2020
1 parent 84129fe commit 667a106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/markdownBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ function build({
]),
...schema[keyword`enum`].map(value => tableRow([
tableCell(inlineCode(JSON.stringify(value))),
tableCell(text(metas[value] || '')),
tableCell(text(metas[Array.isArray(value) ? JSON.stringify(value) : value] || '')),
])),
]));
}
Expand Down

0 comments on commit 667a106

Please sign in to comment.