Skip to content

Commit

Permalink
fixed issue on enum rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJuanAndOnly99 committed Feb 13, 2024
1 parent 1a85911 commit d5464a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion schema2Markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function renderType(ref) {
}

function renderEnum(ref) {
return `**Possible values**: ${("\`" + ref + "\`").join(', ')}\n\n`;
// for each item in ref, wrap it in backticks and join with a comma
return `**Possible values**: ${ref.map((item) => `\`${item}\``).join(', ')}\n\n`;
}

function renderRef(contextRef) {
Expand Down

0 comments on commit d5464a7

Please sign in to comment.