Open szareiangm opened 5 years ago
@szareiangm Did you ever figure out a workaround for this issue? I have exactly the same problem.
BTW - I'm using SchemaVer and wanted to say thank you!
UPDATE
Turns out it was a case of not paying close attention to the documentation. You have to pass in the metaschema as a separate argument. This mostly worked for me:
jsonschema2md --metaSchema schemas/metaschema/1-0-0.schema.json -d schemas/error/1-0-0.schema.json
I still hit another Error can't resolve reference http://json-schema.org/draft/2019-09/schema# from id https://schemas.tf/json/metaschema/1-0-0#
. But after I referenced the metaschema, I was able to generate the markdown files without any problems.
I opened another issue #178 to see if jsonschema2md can dereference schemas before parsing.
What did you do
I am trying to generate documentations for snowplow/iglu-central: https://github.com/snowplow/iglu-central/tree/master/schemas
Since Snowplow schemas have no file extension, (i.e. 1-0-0) I had to add the extension myself:
Then it gave me this error:
So I had to replace the main schema file path and I decided to have local address because I could not change the one on Iglu Server:
Again, I have the same problem, so probably my solution was not right. This is the error message:
What did you expect to happen
The documentation to be generated
What happened
It didn't work. I have pasted the errors above.
What's your environment
Do you have example files:
https://github.com/snowplow/iglu-central/blob/master/schemas/com.adjust/install/jsonschema/1-0-0