Skip to content

Commit

Permalink
fixed indentation on schema2markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
maoo committed Apr 11, 2024
1 parent f74e8b0 commit a956cec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions schema2Markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ function processProperty(propertyName, propertyDetails, schemaExamples, required
// console.log("Sub props for "+propertyName+" - ",propertyDetails.properties.entries())
markdownContent += '#### Subproperties\n';
for (const [subpropertyName, subpropertyDetails] of Object.entries(propertyDetails.properties)) {
markdownContent += `Name: \`${subpropertyName}\`\n`;
markdownContent += `Type: \`${subpropertyDetails.type}\`\n`;
markdownContent += `Description: \`${subpropertyDetails.description}\`\n\n`;
markdownContent += `##### ${subpropertyName}\n`;
markdownContent += `- Type: \`${subpropertyDetails.type}\`\n`;
markdownContent += `- Description: \`${subpropertyDetails.description}\`\n`;
};
}

Expand Down

0 comments on commit a956cec

Please sign in to comment.