Skip to content

Commit

Permalink
Update schema2Markdown.js
Browse files Browse the repository at this point in the history
Co-authored-by: Kris West <kris.west@interop.io>
  • Loading branch information
TheJuanAndOnly99 and kriswest authored Apr 11, 2024
1 parent 86d994a commit 9cb323a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions schema2Markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ function processProperty(propertyName, propertyDetails, schemaExamples, required
let markdownContent = '';

if (propertyName === 'type') {
markdownContent += `### Type\n\n`;
markdownContent += `\`${propertyDetails.const}\`\n\n`;
//skip rendering the type property as it should be rendered at the top level
return markdownContent;
}
markdownContent += `### ${\`${propertyName}\`}\n\n`;
Expand Down

0 comments on commit 9cb323a

Please sign in to comment.