Open robogeek opened 1 month ago
I cloned the repository.
In bundler.js
I commented this out:
// try {
// validator.validateSync(bundledJSON, {});
// } catch (e) {
// console.error('Invalid OpenAPI file');
// console.error(e);
// return;
// }
With this commented out, the program ran correctly, and generated a Markdown file that looks good. With it uncommented, the failure shown above occurs.
I'm very intrigued by this tool, and am interested in using it. However, the demo described in the README throws a weird error.
I have a well defined specification that is successfully being used in a variety of OpenAPI tools. The specification is for OpenADR (https://www.openadr.org/). If you need to see the spec, it's freely available so long as you register.
This is the output. This output format is rather inscrutable since I have no idea what the actual error is. The only clue I get is that this uses
oas-validator
.Below, I show a quick zx script I wrote to use oas-validator directly. Below that is the JS object output by oas-validator. The JS object looks like oas-validator thinks it is valid, and the structure it generated looks correct per the spec.
I wrote a quick zx script to use oas-validator
And it gave this output: