{"_id":"swaggerize-routes","_rev":"37-53b58d2db43c67c38ea9cda39e03d2a9","name":"swaggerize-routes","dist-tags":{"latest":"1.0.11","alpha":"2.0.0-alpha.1"},"versions":{"1.0.0":{"name":"swaggerize-routes","version":"1.0.0","author":{"name":"Trevor Livingston","email":"trlivingston@paypal.com"},"_id":"swaggerize-routes@1.0.0","maintainers":[{"name":"tlivings","email":"tlivings@gmail.com"}],"homepage":"https://github.com/krakenjs/swaggerize-builder","bugs":{"url":"http://github.com/krakenjs/swaggerize-builder/issues"},"dist":{"shasum":"8ee11e5b2a7719c582b8a5c38c17a52c7e811060","tarball":"https://registry.npmjs.org/swaggerize-routes/-/swaggerize-routes-1.0.0.tgz","integrity":"sha512-J3iUd7UGwNFF4tmqFAEaczPYKxJySc1zRH0WYETl6aQML6QRE6nlALu/GyOdMGUJW7idO2mNIpuDNwbnCgaZKw==","signatures":[{"sig":"MEUCIDT+Qq8dfaILbl/WNzwwhB9WwkMEBLKdzHGYlLSuyBH8AiEA0FrQTXwEAr39lLWb/3B5Nb5td4iGyOIDwCWUKB8sQYI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","_from":".","_shasum":"8ee11e5b2a7719c582b8a5c38c17a52c7e811060","engines":{"node":"0.10.x"},"gitHead":"d078217874becdd97c5f7a29fa943c45afd26767","scripts":{"lint":"jshint -c .jshintrc lib/*.js","test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js"},"_npmUser":{"name":"tlivings","email":"tlivings@gmail.com"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0.html","type":"Apache 2.0"}],"repository":{"url":"git://github.com/krakenjs/swaggerize-builder.git","type":"git"},"_npmVersion":"2.1.4","description":"Swagger based route building.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"enjoi":"^0.2.0","caller":"^0.0.1","debuglog":"^1.0.1","core-util-is":"^1.0.1"},"devDependencies":{"tape":"^2.4.2","jshint":"^2.4.1","istanbul":"^0.2.3"}},"1.0.1":{"name":"swaggerize-routes","version":"1.0.1","author":{"name":"Trevor Livingston","email":"trlivingston@paypal.com"},"_id":"swaggerize-routes@1.0.1","maintainers":[{"name":"tlivings","email":"tlivings@gmail.com"}],"homepage":"https://github.com/krakenjs/swaggerize-builder","bugs":{"url":"http://github.com/krakenjs/swaggerize-builder/issues"},"dist":{"shasum":"fad5f1e0067ce48c442a4b2b6f2c68b13361664a","tarball":"https://registry.npmjs.org/swaggerize-routes/-/swaggerize-routes-1.0.1.tgz","integrity":"sha512-hgQLr+snArtjp8WgXc7oxC/GyEM3uyY8k2fDk3UCEBncAuXdp9qPufp19it+PgXn9Fl7JJJUqojggc61rx76AQ==","signatures":[{"sig":"MEUCIQDBZavgBlm8fdcdc/tPN/UdYAjJhcbOFZcRJNHOeYk+QQIgQpnyHD/ec7CzYl1j+v4O3s2Iv5sTtwBUPSAW48SlSUo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","_from":".","_shasum":"fad5f1e0067ce48c442a4b2b6f2c68b13361664a","engines":{"node":"0.10.x"},"gitHead":"42ed0a9a561015b75170df6261bd374e54ce142e","scripts":{"lint":"jshint -c .jshintrc lib/*.js","test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js"},"_npmUser":{"name":"tlivings","email":"tlivings@gmail.com"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0.html","type":"Apache 2.0"}],"repository":{"url":"git://github.com/krakenjs/swaggerize-builder.git","type":"git"},"_npmVersion":"2.1.4","description":"Swagger based route building.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"enjoi":"^0.2.0","caller":"^0.0.1","debuglog":"^1.0.1","core-util-is":"^1.0.1"},"devDependencies":{"tape":"^2.4.2","jshint":"^2.4.1","istanbul":"^0.2.3"}},"1.0.2":{"name":"swaggerize-routes","version":"1.0.2","author":{"name":"Trevor Livingston","email":"trlivingston@paypal.com"},"_id":"swaggerize-routes@1.0.2","maintainers":[{"name":"tlivings","email":"tlivings@gmail.com"}],"homepage":"https://github.com/krakenjs/swaggerize-builder#readme","bugs":{"url":"http://github.com/krakenjs/swaggerize-builder/issues"},"dist":{"shasum":"9fccfe39d1f9afda281d5986ccec558eb34588ad","tarball":"https://registry.npmjs.org/swaggerize-routes/-/swaggerize-routes-1.0.2.tgz","integrity":"sha512-UhAULexVOAMu9W1vm2TLMw8dotfT9OcD5nKgDrs1bRlwwl/QKvBOKveQCrphNgwb+3EpxyqcZvN5MAv8iJQHew==","signatures":[{"sig":"MEUCIQDa5qz9G/tMXHQI2NnVgNvZ/7PgyHM7szOY1WO5xGU/ugIgH4jLQv1T5hi8YSUwd78tmFtklkhxEfMTP4/EzON+Yy4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","_from":".","_shasum":"9fccfe39d1f9afda281d5986ccec558eb34588ad","engines":{"node":"0.10.x"},"gitHead":"8b0b8d40ac9eae563b4146c7fd2b2faf923b58f2","scripts":{"lint":"jshint -c .jshintrc lib/*.js","test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js"},"_npmUser":{"name":"tlivings","email":"tlivings@gmail.com"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0.html","type":"Apache 2.0"}],"repository":{"url":"git://github.com/krakenjs/swaggerize-builder.git","type":"git"},"_npmVersion":"2.11.3","description":"Swagger based route building.","directories":{},"_nodeVersion":"0.12.7","dependencies":{"enjoi":"^1.0.0","caller":"^0.0.1","debuglog":"^1.0.1","core-util-is":"^1.0.1"},"devDependencies":{"tape":"^2.4.2","jshint":"^2.4.1","istanbul":"^0.2.3"}},"1.0.3":{"name":"swaggerize-routes","version":"1.0.3","author":{"name":"Trevor Livingston","email":"trlivingston@paypal.com"},"_id":"swaggerize-routes@1.0.3","maintainers":[{"name":"tlivings","email":"tlivings@gmail.com"}],"homepage":"https://github.com/krakenjs/swaggerize-builder#readme","bugs":{"url":"http://github.com/krakenjs/swaggerize-builder/issues"},"dist":{"shasum":"69cafb892adf670c16cb01f974696f5165c17390","tarball":"https://registry.npmjs.org/swaggerize-routes/-/swaggerize-routes-1.0.3.tgz","integrity":"sha512-z/6OeGFFS2lhhj7n4I79LE6/QQ37pX6Et574/k3Vw0UR8R230YOl7MCwqTaPHq+aD6KD0vydDWXmjRuovOBATQ==","signatures":[{"sig":"MEYCIQC2XfPubGdIaXOEmd3rImSXcZxaJnwRHaExAu8hm7jpBwIhAPkSuKKH+i28UswN1NZxpoNUR50Th4sQe1zcEzGhbjp9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","_from":".","_shasum":"69cafb892adf670c16cb01f974696f5165c17390","engines":{"node":"0.10.x"},"gitHead":"934b285c16235fe6f043df9273b9bb31a8d2f6cf","scripts":{"lint":"jshint -c .jshintrc lib/*.js","test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js"},"_npmUser":{"name":"tlivings","email":"tlivings@gmail.com"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0.html","type":"Apache 2.0"}],"repository":{"url":"git://github.com/krakenjs/swaggerize-builder.git","type":"git"},"_npmVersion":"2.11.3","description":"Swagger based route building.","directories":{},"_nodeVersion":"0.12.7","dependencies":{"enjoi":"^1.0.0","caller":"^0.0.1","debuglog":"^1.0.1","core-util-is":"^1.0.1","swagger-schema-official":"^2.0.0-"},"devDependencies":{"tape":"^2.4.2","jshint":"^2.4.1","istanbul":"^0.2.3"}},"1.0.4":{"name":"swaggerize-routes","version":"1.0.4","author":{"name":"Trevor Livingston","email":"trlivingston@paypal.com"},"_id":"swaggerize-routes@1.0.4","maintainers":[{"name":"tlivings","email":"tlivings@gmail.com"}],"homepage":"https://github.com/krakenjs/swaggerize-builder#readme","bugs":{"url":"http://github.com/krakenjs/swaggerize-builder/issues"},"dist":{"shasum":"3c393efb3987ad74b8fa49dc72ab70b1c0812ef7","tarball":"https://registry.npmjs.org/swaggerize-routes/-/swaggerize-routes-1.0.4.tgz","integrity":"sha512-kbpWRViowcOpURLSBXRXlGBKqlo3wFLC+ebfaqdQ9XtXPFToum5iOHaP2bQslYSc/IKf+TJKidGC6vPpqnQUFA==","signatures":[{"sig":"MEUCIDuMaZB0e+jD7HXWJI1W63b4jYlgbMwlJxoCKIdkyGhDAiEAgmneUIpcPgtQWu1kWaFOWv/LqvLw4uaBbbfU6HwAhVA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","_from":".","_shasum":"3c393efb3987ad74b8fa49dc72ab70b1c0812ef7","engines":{"node":"0.10.x"},"gitHead":"e8b1088d6074aede39c43d690dc046f8a9557c2f","scripts":{"lint":"jshint -c .jshintrc lib/*.js","test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js"},"_npmUser":{"name":"tlivings","email":"tlivings@gmail.com"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0.html","type":"Apache 2.0"}],"repository":{"url":"git://github.com/krakenjs/swaggerize-builder.git","type":"git"},"_npmVersion":"2.11.3","description":"Swagger based route building.","directories":{},"_nodeVersion":"0.12.7","dependencies":{"enjoi":"^1.0.0","caller":"^0.0.1","debuglog":"^1.0.1","core-util-is":"^1.0.1","swagger-schema-official":"^2.0.0-"},"devDependencies":{"tape":"^2.4.2","jshint":"^2.4.1","istanbul":"^0.2.3"}},"1.0.5":{"name":"swaggerize-routes","version":"1.0.5","author":{"name":"Trevor Livingston","email":"trlivingston@paypal.com"},"_id":"swaggerize-routes@1.0.5","maintainers":[{"name":"tlivings","email":"tlivings@gmail.com"}],"homepage":"https://github.com/krakenjs/swaggerize-builder#readme","bugs":{"url":"http://github.com/krakenjs/swaggerize-builder/issues"},"dist":{"shasum":"24dd93377fa462b8566b9b29516c26f42bf5a674","tarball":"https://registry.npmjs.org/swaggerize-routes/-/swaggerize-routes-1.0.5.tgz","integrity":"sha512-1Rjv9Hdd8JAgo587lwg8UMw0MBd9tA0DeDr7K+sMMzHVUU/F1xi0kPn0OQMc7pJSkxfgIaQooe7Id6jc9WDpmw==","signatures":[{"sig":"MEUCID/PbEH74t+MQyL2Td7p7Y6eS1ygDsE0vU5zaNmO81ApAiEAtTix2Y/KBId7bhRXzS3O0Gz1v2C1nhoZPqkn/O5rZPo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","_from":".","_shasum":"24dd93377fa462b8566b9b29516c26f42bf5a674","engines":{"node":"0.10.x"},"gitHead":"22881a2665f940d546cc6a2fe78f6404d875645d","scripts":{"lint":"jshint -c .jshintrc lib/*.js","test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js"},"_npmUser":{"name":"tlivings","email":"tlivings@gmail.com"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0.html","type":"Apache 2.0"}],"repository":{"url":"git://github.com/krakenjs/swaggerize-builder.git","type":"git"},"_npmVersion":"2.11.3","description":"Swagger based route building.","directories":{},"_nodeVersion":"0.12.7","dependencies":{"enjoi":"^1.0.0","caller":"^0.0.1","debuglog":"^1.0.1","core-util-is":"^1.0.1","swagger-schema-official":"^2.0.0-"},"devDependencies":{"tape":"^2.4.2","jshint":"^2.4.1","istanbul":"^0.2.3"}},"1.0.6":{"name":"swaggerize-routes","version":"1.0.6","author":{"name":"Trevor Livingston","email":"trlivingston@paypal.com"},"license":"Apache-2.0","_id":"swaggerize-routes@1.0.6","maintainers":[{"name":"tlivings","email":"tlivings@gmail.com"}],"contributors":[{"url":"http://fgribreau.com/","name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com"}],"homepage":"https://github.com/krakenjs/swaggerize-builder#readme","bugs":{"url":"http://github.com/krakenjs/swaggerize-builder/issues"},"dist":{"shasum":"ae1a73e493cfcf9a9d572d3fb970b4d281d68b0d","tarball":"https://registry.npmjs.org/swaggerize-routes/-/swaggerize-routes-1.0.6.tgz","integrity":"sha512-G6qowTj44nfizlpxA7QavxpEHlMN1wkyY/MAK4O029YNUL70OOX4DkjkrDt+BK1kvSWGLPZs1DH0AsezLGpN2Q==","signatures":[{"sig":"MEQCIHkc7qBZJ9QKeRShgEoDDVliwybV9JzXV6yba/fuwIUSAiAz4PpeKNkDj+PKyLGUxjT2dluQwWnyKO9mOaKCVXgXWw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","_from":".","_shasum":"ae1a73e493cfcf9a9d572d3fb970b4d281d68b0d","engines":{"node":"<=4.x"},"gitHead":"4fcfb89e3c79a0ccd582871688c93120ec97177a","scripts":{"lint":"jshint -c .jshintrc lib/*.js","test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js"},"_npmUser":{"name":"tlivings","email":"tlivings@gmail.com"},"repository":{"url":"git://github.com/krakenjs/swaggerize-builder.git","type":"git"},"_npmVersion":"2.11.3","description":"Swagger based route building.","directories":{},"_nodeVersion":"0.12.7","dependencies":{"enjoi":"^1.0.0","caller":"^1.0.1","debuglog":"^1.0.1","core-util-is":"^1.0.1","swagger-schema-official":"^2.0.0-"},"devDependencies":{"tape":"^4.2.2","jshint":"^2.4.1","istanbul":"^0.4.0"}},"1.0.7":{"name":"swaggerize-routes","version":"1.0.7","author":{"name":"Trevor Livingston","email":"trlivingston@paypal.com"},"license":"Apache-2.0","_id":"swaggerize-routes@1.0.7","maintainers":[{"name":"tlivings","email":"tlivings@gmail.com"}],"contributors":[{"url":"http://fgribreau.com/","name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com"}],"homepage":"https://github.com/krakenjs/swaggerize-builder#readme","bugs":{"url":"http://github.com/krakenjs/swaggerize-builder/issues"},"dist":{"shasum":"05db050084041ac76e582fec5f1560060f3a2aed","tarball":"https://registry.npmjs.org/swaggerize-routes/-/swaggerize-routes-1.0.7.tgz","integrity":"sha512-QzjFZ9d0uJp4OZTxDYgdWJAI1CBtMse36nqUUkE6qJq9u1REtlkZYNJh/ikOnC6XPajbZorLXPsgyUB00kgKtw==","signatures":[{"sig":"MEQCID86Wpc5ScDLIFgHwEsRUlsuslpeN+74B0vOIWEm4KbMAiB5WQC3ewd72+8AA8w12sys3JZhAO1ZFaY5E12cIZ/7bA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","_from":".","_shasum":"05db050084041ac76e582fec5f1560060f3a2aed","engines":{"node":"<=4.x"},"gitHead":"ade702238c78aab3e22d16ff2b5e4f3d44fdfec0","scripts":{"lint":"jshint -c .jshintrc lib/*.js","test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js"},"_npmUser":{"name":"tlivings","email":"tlivings@gmail.com"},"repository":{"url":"git://github.com/krakenjs/swaggerize-builder.git","type":"git"},"_npmVersion":"2.15.1","description":"Swagger based route building.","directories":{},"_nodeVersion":"4.4.3","dependencies":{"enjoi":"^1.0.0","caller":"^1.0.1","debuglog":"^1.0.1","core-util-is":"^1.0.1","swagger-schema-official":"^2.0.0-"},"devDependencies":{"tape":"^4.2.2","jshint":"^2.4.1","istanbul":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/swaggerize-routes-1.0.7.tgz_1461421076138_0.5512839900329709","host":"packages-12-west.internal.npmjs.com"}},"1.0.8":{"name":"swaggerize-routes","version":"1.0.8","author":{"name":"Trevor Livingston","email":"trlivingston@paypal.com"},"license":"Apache-2.0","_id":"swaggerize-routes@1.0.8","maintainers":[{"name":"tlivings","email":"tlivings@gmail.com"}],"contributors":[{"url":"http://fgribreau.com/","name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com"}],"homepage":"https://github.com/krakenjs/swaggerize-builder#readme","bugs":{"url":"http://github.com/krakenjs/swaggerize-builder/issues"},"dist":{"shasum":"01ccc53da0b33c7bc2a44d077f4c620567eb082e","tarball":"https://registry.npmjs.org/swaggerize-routes/-/swaggerize-routes-1.0.8.tgz","integrity":"sha512-/QeRl0Fa4dMoRD4j1d65xoysb6s88vQhAlwZZx/+YBh9nzYSWoUAypC5iz3mblXG+LjUjvIh16VDSqDV1YXuBQ==","signatures":[{"sig":"MEUCIQCD+1R/OIBwQHDDWWxGTopViUG5s3pnlDhCMLJZPy631AIgOKQMijOZrqctsqA9MFHCh7cVyfvNpIVCmfGpThuXSK0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","_from":".","_shasum":"01ccc53da0b33c7bc2a44d077f4c620567eb082e","engines":{"node":"<=4.x"},"gitHead":"910c3908b3986288c8b9f72870a9048bdeb535a0","scripts":{"lint":"jshint -c .jshintrc lib/*.js","test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js"},"_npmUser":{"name":"tlivings","email":"tlivings@gmail.com"},"repository":{"url":"git://github.com/krakenjs/swaggerize-builder.git","type":"git"},"_npmVersion":"2.15.1","description":"Swagger based route building.","directories":{},"_nodeVersion":"4.4.3","dependencies":{"enjoi":"^1.0.0","caller":"^1.0.1","debuglog":"^1.0.1","core-util-is":"^1.0.1","swagger-schema-official":"^2.0.0-"},"devDependencies":{"tape":"^4.2.2","jshint":"^2.4.1","istanbul":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/swaggerize-routes-1.0.8.tgz_1464886102509_0.194283964112401","host":"packages-12-west.internal.npmjs.com"}},"1.0.9":{"name":"swaggerize-routes","version":"1.0.9","author":{"name":"Trevor Livingston","email":"trlivingston@paypal.com"},"license":"Apache-2.0","_id":"swaggerize-routes@1.0.9","maintainers":[{"name":"subeeshcbabu","email":"subeeshcbabu@yahoo.co.in"},{"name":"tlivings","email":"tlivings@gmail.com"}],"contributors":[{"url":"http://fgribreau.com/","name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com"}],"homepage":"https://github.com/krakenjs/swaggerize-builder#readme","bugs":{"url":"http://github.com/krakenjs/swaggerize-builder/issues"},"dist":{"shasum":"d42a27c6fa1d6642c7e627a697f8f9b2c107dfc3","tarball":"https://registry.npmjs.org/swaggerize-routes/-/swaggerize-routes-1.0.9.tgz","integrity":"sha512-NwYP75BtWlU4iRbLwBMwJxLCLfCzHXQnfEBBLPXuzZjrXccuAlrrWFoN94Mj1NIrWkJ/kQ2FPkhV894l1W6ukg==","signatures":[{"sig":"MEUCIQDDtEH8308lFRELvdFAy5MGY5mIFY9i2bfuSUaC70nDlwIgCgRL/jwjo6SXVQ5jYID6wfp/uSTZN3XXIltfs1nXp3o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","_from":".","_shasum":"d42a27c6fa1d6642c7e627a697f8f9b2c107dfc3","engines":{"node":"<=4.x"},"gitHead":"8eded81908a15566355721ba1cc15dce21761b07","scripts":{"lint":"jshint -c .jshintrc lib/*.js","test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js"},"_npmUser":{"name":"subeeshcbabu","email":"subeeshcbabu@yahoo.co.in"},"repository":{"url":"git://github.com/krakenjs/swaggerize-builder.git","type":"git"},"_npmVersion":"2.9.1","description":"Swagger based route building.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"enjoi":"^1.0.0","caller":"^1.0.1","debuglog":"^1.0.1","core-util-is":"^1.0.1","swagger-schema-official":"^2.0.0-"},"devDependencies":{"tape":"^4.2.2","jshint":"^2.4.1","istanbul":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/swaggerize-routes-1.0.9.tgz_1473882841118_0.46299072867259383","host":"packages-16-east.internal.npmjs.com"}},"1.0.10":{"name":"swaggerize-routes","version":"1.0.10","author":{"name":"Trevor Livingston","email":"trlivingston@paypal.com"},"license":"Apache-2.0","_id":"swaggerize-routes@1.0.10","maintainers":[{"name":"subeeshcbabu","email":"subeeshcbabu@yahoo.co.in"},{"name":"tlivings","email":"tlivings@gmail.com"}],"contributors":[{"url":"http://fgribreau.com/","name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com"}],"homepage":"https://github.com/krakenjs/swaggerize-builder#readme","bugs":{"url":"http://github.com/krakenjs/swaggerize-builder/issues"},"dist":{"shasum":"fe6c0172ac5d4b1af2b842b4a01aa5361ede3784","tarball":"https://registry.npmjs.org/swaggerize-routes/-/swaggerize-routes-1.0.10.tgz","integrity":"sha512-0o67xUl13YdRbnyWSCOiFaBEbtkX1fRE7T2cvHpRQ+wNoDyRAHYaptoewuy2h4v7ZMSU9SFN+OHhg+OaW6mvIQ==","signatures":[{"sig":"MEQCIEB/cQFvDTHL/1ZzANB6t0werPYQ2Uk+tWuLN6VgS0FZAiAhTJgAwfUvhN9PJWF2C3RDqS1LPNWx31V5RTDKXZVvFg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","_from":".","_shasum":"fe6c0172ac5d4b1af2b842b4a01aa5361ede3784","engines":{"node":"<=4.x"},"gitHead":"b16aa6e860b8433400c1811a08506fbb7b920367","scripts":{"lint":"jshint -c .jshintrc lib/*.js","test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js"},"_npmUser":{"name":"subeeshcbabu","email":"subeeshcbabu@yahoo.co.in"},"repository":{"url":"git://github.com/krakenjs/swaggerize-builder.git","type":"git"},"_npmVersion":"3.10.3","description":"Swagger based route building.","directories":{},"_nodeVersion":"6.3.1","dependencies":{"enjoi":"^1.0.0","caller":"^1.0.1","debuglog":"^1.0.1","core-util-is":"^1.0.1","swagger-schema-official":"^2.0.0-"},"devDependencies":{"tape":"^4.2.2","jshint":"^2.4.1","istanbul":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/swaggerize-routes-1.0.10.tgz_1480900799506_0.2178831195924431","host":"packages-12-west.internal.npmjs.com"}},"1.0.11":{"name":"swaggerize-routes","version":"1.0.11","author":{"name":"Trevor Livingston","email":"trlivingston@paypal.com"},"license":"Apache-2.0","_id":"swaggerize-routes@1.0.11","maintainers":[{"name":"subeeshcbabu","email":"subeeshcbabu@yahoo.co.in"},{"name":"tlivings","email":"tlivings@gmail.com"}],"contributors":[{"url":"http://fgribreau.com/","name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com"}],"homepage":"https://github.com/krakenjs/swaggerize-builder#readme","bugs":{"url":"http://github.com/krakenjs/swaggerize-builder/issues"},"dist":{"shasum":"191302f3799a56c7c361093b7658ca2f4f22116d","tarball":"https://registry.npmjs.org/swaggerize-routes/-/swaggerize-routes-1.0.11.tgz","integrity":"sha512-Gmug5LjSXhN95jzmOmRd+rGXYuRyo18crsMaRkSiKxlvK2vRmfuiKRYX/UYFLB8ipg543rbiSNJem22V7NcnOw==","signatures":[{"sig":"MEQCIAs50dSiUmp4cMhM2bNZZ7gknQJWf88FZDRWSy9Ul2f/AiBUg96G2T8mE+If3oB+9xf6WV0tp0NuxsluX28zKbiOIw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh28l/CRA9TVsSAnZWagAAN3IP/1/kMN8cQ9nP6tn1hifq\ni7kzI/X4d22annEdzY7ZnDP+RSxgOwQVjJGVlS0uf/TO7zr1/AKuU1XUZR+y\n9cdssF79h9X7cqTptSsIav5JDUMIlh5VeJj7obBneMY/7JXRXNezSXq6q/Er\n4Ku6ukSLXBroHZ6R6xJ64f1Lp+BhfztKwhbQ4ooRzo7EUsfogv5YIc1mOkjz\n5Y5p/nY0vsra46xxaoaV2+SGkcKnHgq2tG5b4+IcDeEuO89XSHE5/+8W1bE9\nFnBUWqK6gtV/8eOlHikV4kLEM2mD/cZRMSyJLqD0OqOWDg7BTl2j/A124aPA\n9DjUCAbVeeZSGdDdXtCmRXYtbwzFaX21xrFtWLxFMURENXVMNitvutR69Yic\n5kpNsHtl8neAffxAxglxm1KZtBTm0v3BTJRFVt1T7ENJqxSJQx3IBXt5IeC6\nNnZcQs7jXbJnB8YSzFPr8M+4FY+kyAODfmLJdn8Qrw7Ablorx//w+NgIMjlP\nbe3b8X3IGahRhBEQwpE5+ZzLj/ljryQSdmbtZZ7RBiz8Hcdb6LJGg1wBlxoo\nmMbWWtHcVVevvfWz0rDI97xmM0j8jGsMKsoh0HM5xB/0RyX0Wy4/8K2uuF8y\nv+9b9W9qrUSdJFQKyV+8jsUJ//dMPyZvKOpz6URFLCWiledr8twJSBg18rA3\nlyZp\r\n=hSs/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index","_from":".","_shasum":"191302f3799a56c7c361093b7658ca2f4f22116d","engines":{"node":"<=4.x"},"gitHead":"fa01ea1fd7d3e564130f5229314f9a670a5f8752","scripts":{"lint":"jshint -c .jshintrc lib/*.js","test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js"},"_npmUser":{"name":"subeeshcbabu","email":"subeeshcbabu@yahoo.co.in"},"repository":{"url":"git://github.com/krakenjs/swaggerize-builder.git","type":"git"},"_npmVersion":"2.9.1","description":"Swagger based route building.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"enjoi":"^1.0.0","caller":"^1.0.1","debuglog":"^1.0.1","core-util-is":"^1.0.1","swagger-schema-official":"^2.0.0-"},"devDependencies":{"tape":"^4.2.2","jshint":"^2.4.1","istanbul":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/swaggerize-routes-1.0.11.tgz_1489638379998_0.4775857587810606","host":"packages-18-east.internal.npmjs.com"}},"2.0.0-alpha.1":{"name":"swaggerize-routes","version":"2.0.0-alpha.1","author":{"name":"Trevor Livingston","email":"trlivingston@paypal.com"},"license":"Apache-2.0","_id":"swaggerize-routes@2.0.0-alpha.1","maintainers":[{"name":"subeeshcbabu","email":"subeeshcbabu@yahoo.co.in"},{"name":"krakenjs","email":"medelman@paypal.com"},{"name":"tlivings","email":"tlivings@gmail.com"}],"contributors":[{"url":"http://fgribreau.com/","name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com"}],"homepage":"https://github.com/krakenjs/swaggerize-builder#readme","bugs":{"url":"http://github.com/krakenjs/swaggerize-builder/issues"},"dist":{"shasum":"c9aaa2263106758f9a798a4a9fb196d1a6462afd","tarball":"https://registry.npmjs.org/swaggerize-routes/-/swaggerize-routes-2.0.0-alpha.1.tgz","fileCount":12,"integrity":"sha512-elaB+eSgNjU3LKLgOlIpLAo2VEsTMKXgFKttcb2YODuypZqjrjE0yMrE9XE/+TlFhjVdsgA28ZicmamG5CqARg==","signatures":[{"sig":"MEUCIQCFABNySpp02BQsd649t9+bpauez1qtUhizNnD3Agi3BwIgM/WmAK3hCi/1OOZCE0WcjGkyaaMc30PwLchgQnmGeDQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29585,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUPU0CRA9TVsSAnZWagAARpMQAILe48In4mBrcra3+WR7\nIvOco/SGydWZuXfNuyuFBwZcjVBkWRkH7V9gfBhKK6ozZ4QOKpzdw1Ks9189\niCCO9KU9Oxpdy8aKrsWKmdlZCe9Qe5N4hDAPRZC32kJvdG9AGdEkDcxkAq3o\nGzjwLCKp6AaxsUD97p41di+jUJchXfGOSA1zEVgTSTVTgQIaBXifHSvsVwO9\nk926vda1T2ICqVk6Lkb/97F2RaKaGaISMblsKdKjfPd6xUfiV0uW9W99GE9j\ntOnZMj1DbATUFfq3pmzIW6T58/TTYc7CKClMbBW3oBA36BqpOwGXWZpq3gn0\nsfOasizVNnD/DBFTk/XvEYBQGk8rrGVvtytKEtAXNq9IlQJKSH9mMq1etGe9\njpfMYeTPELdbz4dsaPxfeQ5FcMUP1cBEUIKEU6Rj+FCNo43iITsE/WNLXLOK\nvl6bszch2AT4mTbFWdLzhwKdbxsD9YR1ZchDy0A+QfZUf4YOFPrBTQSkZkkS\nBTnS2WBfD4rSWxbWdUBqNMinwt2oGrrMzz8gc15k5O0+ol28AeIQ2vet+Q4i\nCquvwpvmolzafJiy8aekvRiE8T4kruoy72qC/67aGIfdq3Dk2IPbWjIDCHNn\ns3/a32GZ9QHP0kqP63KHmjPCIcrT7vHX4Szg/30H4K4k+RvRLQ8JYtWRgvki\npTp9\r\n=KJnb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index","readme":"# swaggerize-routes (formerly swaggerize-builder)\n\n[![Build Status](https://travis-ci.org/krakenjs/swaggerize-routes.svg?branch=master)](https://travis-ci.org/krakenjs/swaggerize-routes)\n[![NPM version](https://badge.fury.io/js/swaggerize-routes.png)](http://badge.fury.io/js/swaggerize-routes)  \n\n`swaggerize-routes` is a component used by [swaggerize-express](https://github.com/krakenjs/swaggerize-express) and [swaggerize-hapi](https://github.com/krakenjs/swaggerize-hapi) for parsing and building route definitions based on a [Swagger 2.0 document](https://github.com/wordnik/swagger-spec/blob/master/versions/2.0.md).\n\n`swaggerize-routes` provides the following features:\n\n- Schema validation.\n- Building route definitions from a Swagger 2.0 document.\n- Validation helpers for input parameters.\n\n### Usage\n\n```javascript\nvar builder = require('swaggerize-routes');\n\nvar routes = builder({\n    api: require('./api.json'),\n    handlers: './handlers',\n    security: './security' //Optional - security authorize handlers as per `securityDefinitions`\n}));\n```\n\nOptions:\n\n- `api` - a valid Swagger 2.0 object.\n- `handlers` - either a directory structure for route handlers or a premade object (see *Handlers Object* below).\n- `defaulthandler` - a handler function appropriate to the target framework, if used this will be the default handler for all generated routes (see *Default handler* below).\n- `basedir` - base directory to search for `handlers` path (defaults to `dirname` of caller).\n- `schemas` - an array of `{name: string, schema: string|object}` representing additional schemas to add to validation.\n- `security` - directory to scan for authorize handlers corresponding to `securityDefinitions`.\n\n**Returns:** An array of the processed routes.\n\n### Handlers Directory\n\nThe `options.handlers` option specifies a directory to scan for handlers. These handlers are bound to the api `paths` defined in the swagger document.\n\n```\nhandlers\n  |--foo\n  |    |--bar.js\n  |--foo.js\n  |--baz.js\n```\n\nWill route as:\n\n```\nfoo.js => /foo\nfoo/bar.js => /foo/bar\nbaz.js => /baz\n```\n\n### Path Parameters\n\nThe file and directory names in the handlers directory can also represent path parameters.\n\nFor example, to represent the path `/users/{id}`:\n\n```shell\nhandlers\n  |--users\n  |    |--{id}.js\n```\n\nThis works with directory names as well:\n\n```shell\nhandlers\n  |--users\n  |    |--{id}.js\n  |    |--{id}\n  |        |--foo.js\n```\n\nTo represent `/users/{id}/foo`.\n\n### Schema Extensions for Handlers\n\nAn alternative to automatically determining handlers based on a directory structure, handlers can be specified for both paths and/or operations.\n\nExample:\n\n```json\n{\n\n    \"/pets\": {\n        \"x-handler\": \"handlers/pets.js\"\n    }\n}\n```\n\nOr at the operation level:\n\n```json\n{\n\n    \"/pets\": {\n        \"GET\": {\n            \"x-handler\": \"handlers/pets.js\"\n        }\n    }\n}\n```\n\nThese paths are relative to the `options.basedir` and are used as fallbacks for missing handlers from directory scan.\n\nIf the `options.handlers` and `options.defaulthandler` is empty, then they will be used exclusively.\n\n### Handlers File\n\nEach provided javascript file should export an object containing functions with HTTP verbs as keys.\n\nExample:\n\n```javascript\nmodule.exports = {\n    get: function (...) { ... },\n    put: function (...) { ... },\n    ...\n}\n```\n\nWhere the function signature is a handler for the target framework (e.g. `express` or `hapi`).\n\nHandlers specified by `x-handler` can also be of the form:\n\n```javascript\nmodule.exports = function (...) {\n    ...\n};\n```\n\nIn the case where a different `x-handler` file is specified for each operation.\n\n### Handlers Object\n\nThe directory generation will yield this object, but it can be provided directly as `options.handlers`.\n\nNote that if you are programmatically constructing a handlers obj this way, you must namespace HTTP verbs with `$` to\navoid conflicts with path names. These keys should also be *lowercase*.\n\nExample:\n\n```javascript\n{\n    'foo': {\n        '$get': function (...) { ... },\n        'bar': {\n            '$get': function (...) { ... },\n            '$post': function (...) { ... }\n        }\n    }\n    ...\n}\n```\n\nHandler keys in files do *not* have to be namespaced in this way.\n\n### Default handler\n\nThe `options.defaulthandler` will set the handler function for all generated routes to one default handler.\n\n``` javascript\nvar routes = builder({\n    api: require('./api.json'),\n    defaulthandler: function (req, reply) {\n       reply('something');\n    }\n});\n```\n\n\n### Route Object\n\nThe `routes` array returned from the call to the builder will contain `route` objects. Each `route` has the following properties:\n\n- `path` - same as `path` from `api` definition.\n- `name` - same as `operationId` in `api` definition.\n- `description` - same as `description` in `path` for `api` definition.\n- `method` - same as `method` from `api` `operation` definition.\n- `security` - the security definition for this route, either pulled from the operation level or path level.\n- `validators` - an array of validation objects created from each `parameter` on the `operation`.\n- `handler` - a handler function appropriate to the target framework (e.g express).\n- `consumes` - same as `consumes` in `api` definition.\n- `produces` - same as `produces` in `api` definition.\n\n### Validator Object\n\nThe validator object in the `validators` array will have the following properties:\n\n- `parameter` - same as the `parameter` from the operation on `path`.\n- `validate(value, callback)` - a function for validating the input data against the `parameter` definition.\n- `schema` - the `joi` schema being validated against.\n\n### Security directory\n\nThe `options.security` option specifies a directory to scan for security authorize handlers. These authorize handlers are bound to the api `securityDefinitions` defined in the swagger document.\n\nThe name of the `securityDefinitions` should match the file name of the authorize handler.\n\nFor example, for the security definition :\n\n```json\n\"securityDefinitions\": {\n    \"default\": {\n        \"type\": \"oauth2\",\n        \"scopes\": {\n            \"read\": \"read pets.\",\n            \"write\": \"write pets.\"\n        }\n    },\n    \"secondary\": {\n        \"type\": \"oauth2\",\n        \"scopes\": {\n            \"read\": \"read secondary pets.\",\n            \"write\": \"write secondary pets.\"\n        }\n    }\n}\n```\n\nThe `options.security`, say `security` directory should have following files:\n\n```\n├── security\n   ├── default.js\n   ├── secondary.js\n\n```\n\n### Schema Extension for security authorize handler\n\nAn alternative approach to `options.security` option, is use swagger schema extension (^x-) and define `x-authorize` as part of the `securityDefinitions`.\n\n```json\n\"securityDefinitions\": {\n    \"default\": {\n        \"type\": \"oauth2\",\n        \"scopes\": {\n            \"read\": \"read pets.\",\n            \"write\": \"write pets.\"\n        },\n        \"x-authorize\": \"security/default_authorize.js\"\n    },\n    \"secondary\": {\n        \"type\": \"oauth2\",\n        \"scopes\": {\n            \"read\": \"read secondary pets.\",\n            \"write\": \"write secondary pets.\"\n        },\n        \"x-authorize\": \"security/secondary_authorize.js\"\n    }\n}\n```\n\n`x-authorize` will override any resolved authorize handlers defined by `options.security`.\n\n### Security Object\n\nThe security object in the `route` is an object containing keys corresponding to names found under the [Swagger Security Definitions](https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#securityDefinitionsObject).\n\nUnder each key will be an object containing the following properties:\n\n- `scopes` - an array of scopes accepted for this route.\n- `authorize` - a function scanned from the authorize handlers defined by the `options.security` directory. Or this may be provided by defining a `x-authorize` attribute to the security definition.\n","engines":{"node":">=12"},"gitHead":"35a9fc410c88610018b21b533c4dfea296c02257","scripts":{"lint":"eslint .","test":"tape test/*.js","cover":"nyc tape -- test/*.js","lint:fix":"eslint . --fix"},"_npmUser":{"name":"krakenjs","email":"medelman@paypal.com"},"repository":{"url":"git://github.com/krakenjs/swaggerize-builder.git","type":"git"},"_npmVersion":"6.14.8","description":"Swagger based route building.","directories":{},"_nodeVersion":"12.18.1","dependencies":{"joi":"^17.4.0","enjoi":"^9.0.0","caller":"^1.0.1","debuglog":"^1.0.1","core-util-is":"^1.0.1","swagger-schema-official":"^2.0.0-bab6bed"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^15.1.0","tape":"^5.2.2","eslint":"^7.21.0","eslint-plugin-import":"^2.22.1","eslint-config-airbnb-base":"^14.2.1"},"_npmOperationalInternal":{"tmp":"tmp/swaggerize-routes_2.0.0-alpha.1_1615918387721_0.7875713054641427","host":"s3://npm-registry-packages"}}},"time":{"created":"2015-04-10T17:58:39.718Z","modified":"2026-09-29T18:53:58.879Z","1.0.0":"2015-04-10T17:58:39.718Z","1.0.1":"2015-04-16T19:14:28.332Z","1.0.2":"2015-08-07T17:14:35.154Z","1.0.3":"2015-08-10T18:22:23.443Z","1.0.4":"2015-09-02T18:42:05.080Z","1.0.5":"2015-10-08T14:46:05.732Z","1.0.6":"2015-12-17T18:55:29.859Z","1.0.7":"2016-04-23T14:17:58.524Z","1.0.8":"2016-06-02T16:48:24.932Z","1.0.9":"2016-09-14T19:54:02.175Z","1.0.10":"2016-12-05T01:19:59.740Z","1.0.11":"2017-03-16T04:26:21.789Z","2.0.0-alpha.1":"2021-03-16T18:13:07.874Z"},"bugs":{"url":"http://github.com/krakenjs/swaggerize-builder/issues"},"author":{"name":"Trevor Livingston","email":"trlivingston@paypal.com"},"license":"Apache-2.0","homepage":"https://github.com/krakenjs/swaggerize-builder#readme","repository":{"url":"git://github.com/krakenjs/swaggerize-builder.git","type":"git"},"description":"Swagger based route building.","contributors":[{"url":"http://fgribreau.com/","name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com"}],"maintainers":[{"email":"medelman@paypal.com","name":"krakenjs-user"},{"email":"grjopa@gmail.com","name":"gregjopa"},{"email":"nbierdeman@paypal.com","name":"nbierdeman"},{"email":"mnicpt@gmail.com","name":"mnicpt"},{"email":"subeeshcbabu@yahoo.co.in","name":"subeeshcbabu"},{"email":"tlivings@gmail.com","name":"tlivings"}],"readme":"","readmeFilename":"","users":{"g940":true,"delacap":true}}