janrain / raml-fleece

Tool for converting RAML to HTML documentation
MIT License
9 stars 2 forks source link

Fixes #19 template fails on null value for response code #20

Closed ghost closed 9 years ago

byron-janrain commented 9 years ago
bk-jmbp:sessionsd byron$ node ~/janrain/raml-fleece/src/main.js  ./raml/root.raml

/Users/byron/janrain/raml-fleece/src/main.js:129
  setTimeout(function() { throw e; }, 0);
                                ^
Error: Missing helper: "response_code"
    at Object.<anonymous> (/Users/byron/janrain/raml-fleece/node_modules/handlebars/dist/cjs/handlebars/base.js:86:13)
    at Object.eval (eval at createFunctionContext (/Users/byron/janrain/raml-fleece/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:221:23), <anonymous>:6:84)
    at prog (/Users/byron/janrain/raml-fleece/node_modules/handlebars/dist/cjs/handlebars/runtime.js:193:15)
    at execIteration (/Users/byron/janrain/raml-fleece/node_modules/handlebars/dist/cjs/handlebars/base.js:155:19)
    at Object.<anonymous> (/Users/byron/janrain/raml-fleece/node_modules/handlebars/dist/cjs/handlebars/base.js:182:11)
    at Object.eval (eval at createFunctionContext (/Users/byron/janrain/raml-fleece/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:221:23), <anonymous>:8:31)
    at prog (/Users/byron/janrain/raml-fleece/node_modules/handlebars/dist/cjs/handlebars/runtime.js:193:15)
    at Object.<anonymous> (/Users/byron/janrain/raml-fleece/node_modules/handlebars/dist/cjs/handlebars/base.js:227:14)
    at Object.eval (eval at createFunctionContext (/Users/byron/janrain/raml-fleece/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:221:23), <anonymous>:8:34)
    at Object.prog [as fn] (/Users/byron/janrain/raml-fleece/node_modules/handlebars/dist/cjs/handlebars/runtime.js:193:15)
byron-janrain commented 9 years ago

@bmock Current pushed version works. :shipit: