When executing command ramlev a.raml, it failed with
TypeError: Cannot read property 'body' of null
at Context.<anonymous> (/Users/quanlong/projects/raml-example-validator/lib/generate-tests.js:67:53)
at callFn (/Users/quanlong/projects/raml-example-validator/node_modules/mocha/lib/runnable.js:250:21)
at Test.Runnable.run (/Users/quanlong/projects/raml-example-validator/node_modules/mocha/lib/runnable.js:243:7)
at Runner.runTest (/Users/quanlong/projects/raml-example-validator/node_modules/mocha/lib/runner.js:373:10)
at /Users/quanlong/projects/raml-example-validator/node_modules/mocha/lib/runner.js:451:12
at next (/Users/quanlong/projects/raml-example-validator/node_modules/mocha/lib/runner.js:298:14)
at /Users/quanlong/projects/raml-example-validator/node_modules/mocha/lib/runner.js:308:7
at next (/Users/quanlong/projects/raml-example-validator/node_modules/mocha/lib/runner.js:246:23)
at Object._onImmediate (/Users/quanlong/projects/raml-example-validator/node_modules/mocha/lib/runner.js:275:5)
at processImmediate [as _immediateCallback] (timers.js:336:15)
When executing command
ramlev a.raml
, it failed with