Skip to content

Commit

Permalink
Merge pull request #220 from adobe/enum-arrays
Browse files Browse the repository at this point in the history
Enum arrays
  • Loading branch information
trieloff authored Apr 14, 2020
2 parents 290e2f0 + b13ab35 commit f36ef78
Show file tree
Hide file tree
Showing 5 changed files with 202 additions and 199 deletions.
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
Loading

0 comments on commit f36ef78

Please sign in to comment.