adobe / jsonschema2md

Convert Complex JSON Schemas into Markdown Documentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description extension not working if dot in username

sekistner opened this issue · comments

schema[s.filename].replace(/\..*$/, '.description.md'),

If your user has a dot in it like j.doe then it will cut it off at j and looks for the path with j.description.md at the end and fails with Error: ENOENT: no such file or directory, open '/Users/j.description.md'.

This way the descriptions extension are not imported.

You might want to try this with this tweaked regex:

schema[s.filename].replace(/\.[^.]*$/, '.description.md'), 

If it works for you, feel free to open a PR