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 a0216b6 commit 4c49bb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions schema2Markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ function generateObjectMD(schema, title, schemaFolderName, filePath, version) {
markdownContent += renderEnum(schema.enum);
}

const url = filePath.replace("schemas/", `https://github.com/finos/FDC3/tree/main/schemas/`);
markdownContent += ``## Schema\n\n<${url}>\n\n`;
if (hasAllOf(schema.allOf) || hasProperties(schema)) {
// Extract properties, required fields, and $ref from the first allOf object
let root = schema;
Expand Down

0 comments on commit 4c49bb5

Please sign in to comment.