diet-raml-generator v1.0.9
Diet Raml Generator
diet-raml-generator is a code generator for resources found in a raml file. Raml version used is 0.8
Installation
$ npm install diet-raml-generator -g
Usage
$ diet-raml-generator
Options:
-t, --target root raml file directory [string] [required]
-d, --directory directory where to generate resources
[string] [default: "raml-resources"]
-h, --add-schemas Whether add schemas found in RAML file [boolean]
-n, --no-index Wheter omit index file generation [boolean]
-e, --no-errors wheter omit error and handler file generation [boolean]
Examples:
Usage: diet-raml-generator -t api.raml -d routes/raml-resources
Documentation
-d --directory default: raml-resources The directory where to save the generated routes.
-t --target default: null The target raml file to read.
-h --add-schemas default: false Whether add schemas found in RAML file
-n --no-index default: false Whether omit the index file generation
-e --no-errors default: false Whether omit the error.json and errorHandler.js file generation This also ignores the injection of errorHandler on all resource files
F.A.Q
Will the generator fully support to RAML 1.0? In time, when all bugs found from the parser which prevents the generator to fully work are fixed.. if i have time, i will work for 1.0 version, if anyone wants to help me with this project, i will gladly check and merge pull requests
##License M.I.T
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago