Closed pateketrueke closed 10 years ago
Update:
var raml_file = path.resolve(__dirname + '/../example/index.raml');
process.chdir(path.resolve(raml_file + '/..'));
new Ramlev({
ramlPath: raml_file
}).run();
Using process.chdir()
works, but is really required?
ramlev use raml-js-parser to load RAML, I think this is a bug of raml-js-parser
raml.load(source).then (raml) ->
It's caused by raml.load()
. I replace it with raml.loadFile()
, then it works.
Hi, I'm playing with ramlev to write a grunt-plugin but it can't load any relative file.
Output:
I did the same with raml4js and works perfectly.