{"_id":"node-restify-swagger","_rev":"26-0fa0b2cb905ba0bbcc084f469a23f041","name":"node-restify-swagger","description":"node-restify-swagger =======================","dist-tags":{"latest":"0.1.8"},"versions":{"0.0.1":{"name":"node-restify-swagger","version":"0.0.1","author":{"name":"Timo Behrmann"},"license":"MIT","keywords":["rest","api","restify","validation"],"repository":{"type":"git","url":"git://github.com/z0mt3c/node-restify-swagger.git"},"bugs":{"url":"https://github.com/z0mt3c/node-restify-swagger/issues"},"scripts":{"test":"grunt test"},"main":"lib/index","dependencies":{"underscore":"1.5.1","underscore.string":"2.3.3","swagger-doc":"0.2.0","lingo":"*","path":"*"},"devDependencies":{"restify":"2.6.0","grunt":"~0.4.1","grunt-contrib-jshint":"~0.6.0","grunt-contrib-watch":"~0.4.4","grunt-mocha-cli":"~1.0.1","matchdep":"~0.1.1","should":"~1.2.2","sinon":"~1.7.3","grunt-mocha-cov":"0.0.7"},"description":"node-restify-swagger =======================","_id":"node-restify-swagger@0.0.1","dist":{"shasum":"ec59785ab4d7d4c7af08b5f57322747902be73bc","tarball":"https://registry.npmjs.org/node-restify-swagger/-/node-restify-swagger-0.0.1.tgz","integrity":"sha512-42JhM2Q5gLgRvmAIwsaqZui+itEgUbZksfr4v11dbD3/y23AMwDQUD1cgfqKayQdbkL1rfXQ1xvTcDpe9Mamwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDdEWGqA7LPTy1rcKAKw2fXzVumldTNXHEmNHR3Mh1+bAiEAmYbuR35nb13OEkCcq7E2dOyLSZpIVWuTcRa0NI/JfdE="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"z0mt3c","email":"timo.behrmann@gmail.com"},"maintainers":[{"name":"z0mt3c","email":"timo.behrmann@gmail.com"}],"directories":{}},"0.0.2":{"name":"node-restify-swagger","version":"0.0.2","author":{"name":"Timo Behrmann"},"license":"MIT","keywords":["rest","api","restify","validation"],"repository":{"type":"git","url":"git://github.com/z0mt3c/node-restify-swagger.git"},"bugs":{"url":"https://github.com/z0mt3c/node-restify-swagger/issues"},"scripts":{"test":"grunt test"},"main":"lib/index","dependencies":{"underscore":"1.5.1","underscore.string":"2.3.3","swagger-doc":"0.2.0","lingo":"*","path":"*"},"devDependencies":{"restify":"2.6.0","grunt":"~0.4.1","grunt-contrib-jshint":"~0.6.0","grunt-contrib-watch":"~0.5.1","grunt-mocha-cli":"~1.0.1","matchdep":"~0.1.1","should":"~1.2.2","sinon":"~1.7.3","grunt-mocha-cov":"0.0.7","grunt-release":"~0.3.5"},"description":"node-restify-swagger =======================","_id":"node-restify-swagger@0.0.2","dist":{"shasum":"ea8956e3f7bc79c935b9024a9af5bd8c9eb443cd","tarball":"https://registry.npmjs.org/node-restify-swagger/-/node-restify-swagger-0.0.2.tgz","integrity":"sha512-gCaSmL+2HVyiCLQsEWnfUA2u8uY5Ynm3crGED8Rz1zXp6a+Aa9b7SWkZG7qrb0UPLVZTjwX5s1SGB472g7xkIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAOKrRsePpzTtBjvtYlHpDDce9958Re4ArEbTkCFbvyQAiEA2lO8cbgVqe/OC12FtHEtyHVqvac124105yiiq2vIJ5c="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"z0mt3c","email":"timo.behrmann@gmail.com"},"maintainers":[{"name":"z0mt3c","email":"timo.behrmann@gmail.com"}],"directories":{}},"0.1.0":{"name":"node-restify-swagger","version":"0.1.0","author":{"name":"Timo Behrmann"},"license":"MIT","keywords":["rest","api","restify","validation"],"repository":{"type":"git","url":"git://github.com/z0mt3c/node-restify-swagger.git"},"bugs":{"url":"https://github.com/z0mt3c/node-restify-swagger/issues"},"scripts":{"test":"grunt test"},"main":"lib/index","dependencies":{"underscore":"1.5.1","underscore.string":"2.3.3","swagger-doc":"0.2.0","lingo":"*","path":"*","node-restify-validation":"0.0.x"},"devDependencies":{"restify":"2.6.0","grunt":"~0.4.1","grunt-contrib-jshint":"~0.6.0","grunt-contrib-watch":"~0.5.1","grunt-mocha-cli":"~1.0.1","matchdep":"~0.1.1","should":"~1.2.2","sinon":"~1.7.3","grunt-mocha-cov":"0.0.7","grunt-release":"~0.5.1"},"description":"node-restify-swagger =======================","_id":"node-restify-swagger@0.1.0","dist":{"shasum":"038bd7bfee7140f152ba22612cf6e13fc7d825c6","tarball":"https://registry.npmjs.org/node-restify-swagger/-/node-restify-swagger-0.1.0.tgz","integrity":"sha512-gYNFGyh0/3OSD8qds1Jr3+3hIA8uwqo90gWKqAU0G6q45wXiPTdyctAh+v0nj41k99wgxkSRIHB2FzLrIvA8kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID7E8XVkCkmyxzHO8WDSrJyBz4fNLFXju8HOJzencHZcAiEAv+OysBsAOYA8+lUdgg4HKPd1UbO9q7RgOzQ/JrjiPK8="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"z0mt3c","email":"timo.behrmann@gmail.com"},"maintainers":[{"name":"z0mt3c","email":"timo.behrmann@gmail.com"}],"directories":{}},"0.1.1":{"name":"node-restify-swagger","version":"0.1.1","author":{"name":"Timo Behrmann"},"license":"MIT","keywords":["rest","api","restify","validation"],"repository":{"type":"git","url":"git://github.com/z0mt3c/node-restify-swagger.git"},"bugs":{"url":"https://github.com/z0mt3c/node-restify-swagger/issues"},"scripts":{"test":"grunt test"},"main":"lib/index","dependencies":{"underscore":"~1.5.2","underscore.string":"~2.3.3","swagger-doc":"~0.2.0","node-restify-validation":"0.0.x","lingo":"0.0.5"},"devDependencies":{"restify":"2.6.0","grunt":"~0.4.1","grunt-contrib-jshint":"~0.7.0","grunt-contrib-watch":"~0.5.1","grunt-mocha-cli":"~1.3.0","matchdep":"~0.3.0","should":"~2.0.2","sinon":"~1.7.3","grunt-mocha-cov":"~0.0.7","grunt-release":"~0.6.0"},"description":"node-restify-swagger =======================","_id":"node-restify-swagger@0.1.1","dist":{"shasum":"fa4a72578883fed9c0a787003be2c0916659ac4c","tarball":"https://registry.npmjs.org/node-restify-swagger/-/node-restify-swagger-0.1.1.tgz","integrity":"sha512-ehOhCsqqk+P+nvW0OC+mlcZHwpUpRCBFxhL9uevbR68NsoO43Gfoo3NjOPaJvYeYnacm5+I3FaTJa4XNIGSy0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUgSRG1IpZh/5tofhY3vIn0MisZOiY2Oyqd6r712pjFwIgdVBEA9WgNcrt26N6fYzbZk6kIf5MM24J5y0RFyk3CE8="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"z0mt3c","email":"timo.behrmann@gmail.com"},"maintainers":[{"name":"z0mt3c","email":"timo.behrmann@gmail.com"}],"directories":{}},"0.1.2":{"name":"node-restify-swagger","version":"0.1.2","author":{"name":"Timo Behrmann"},"license":"MIT","keywords":["rest","api","restify","validation"],"repository":{"type":"git","url":"git://github.com/z0mt3c/node-restify-swagger.git"},"bugs":{"url":"https://github.com/z0mt3c/node-restify-swagger/issues"},"scripts":{"test":"grunt test"},"main":"lib/index","dependencies":{"underscore":"~1.5.2","underscore.string":"~2.3.3","swagger-doc":"~0.2.0","node-restify-validation":"0.0.x","lingo":"0.0.5"},"devDependencies":{"restify":"2.6.0","grunt":"~0.4.1","grunt-contrib-jshint":"~0.7.0","grunt-contrib-watch":"~0.5.1","grunt-mocha-cli":"~1.3.0","matchdep":"~0.3.0","should":"~2.0.2","sinon":"~1.7.3","grunt-mocha-cov":"~0.0.7","grunt-release":"~0.6.0"},"description":"node-restify-swagger =======================","homepage":"https://github.com/z0mt3c/node-restify-swagger","_id":"node-restify-swagger@0.1.2","dist":{"shasum":"b1502b369aa40d32d7f616dbb0580ccb604c88d6","tarball":"https://registry.npmjs.org/node-restify-swagger/-/node-restify-swagger-0.1.2.tgz","integrity":"sha512-NfONkUWLz5XPZkZ/gFnukS4wd1ebOqeHLfOAkfplLMC5cooklNbx7F7zfVJgL3y/5DT+eiTJC25Oay/IiLR5Pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF1xSMaFtOI1xjz62dUx7sXlrZFP6uPzWQJgbw2O7oS7AiBCAOTvcIFi5K9in+RBQaX4YQR2kuJwz/+5l8ElNWPMsA=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"z0mt3c","email":"timo.behrmann@gmail.com"},"maintainers":[{"name":"z0mt3c","email":"timo.behrmann@gmail.com"}],"directories":{}},"0.1.3":{"name":"node-restify-swagger","version":"0.1.3","author":{"name":"Timo Behrmann"},"license":"MIT","keywords":["rest","api","restify","validation"],"repository":{"type":"git","url":"git://github.com/z0mt3c/node-restify-swagger.git"},"bugs":{"url":"https://github.com/z0mt3c/node-restify-swagger/issues"},"scripts":{"test":"grunt test"},"main":"lib/index","dependencies":{"underscore":"~1.5.2","underscore.string":"~2.3.3","node-restify-validation":"0.0.x","lingo":"0.0.5"},"devDependencies":{"restify":"2.6.0","grunt":"~0.4.1","grunt-contrib-jshint":"~0.7.0","grunt-contrib-watch":"~0.5.1","grunt-mocha-cli":"~1.3.0","matchdep":"~0.3.0","should":"~2.0.2","sinon":"~1.7.3","grunt-mocha-cov":"~0.0.7","grunt-release":"~0.6.0"},"description":"node-restify-swagger =======================","homepage":"https://github.com/z0mt3c/node-restify-swagger","_id":"node-restify-swagger@0.1.3","dist":{"shasum":"77676b2526feccdaa44bad8b2e497b2f02c99a04","tarball":"https://registry.npmjs.org/node-restify-swagger/-/node-restify-swagger-0.1.3.tgz","integrity":"sha512-Bb+J5Qi2YdZAjIrgNLBzIWloZZS8lABbR8sYlBdENPnrAe93idspD2P2o6sEzBm7IjzkV9wPr6ZdssIx62WLJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG6ZrDELQm1ET341HC5iiIp2ddfiVT85sMkLeklfjfhoAiEAlvJCu9RZc5kIw2HceeeSwDUF7lDmK5Ihnu37qHYy/Uc="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"z0mt3c","email":"timo.behrmann@gmail.com"},"maintainers":[{"name":"z0mt3c","email":"timo.behrmann@gmail.com"}],"directories":{}},"0.1.4":{"name":"node-restify-swagger","version":"0.1.4","author":{"name":"Timo Behrmann"},"license":"MIT","keywords":["rest","api","restify","validation"],"repository":{"type":"git","url":"git://github.com/z0mt3c/node-restify-swagger.git"},"bugs":{"url":"https://github.com/z0mt3c/node-restify-swagger/issues"},"scripts":{"test":"grunt test"},"main":"lib/index","dependencies":{"underscore":"~1.5.2","underscore.string":"~2.3.3","node-restify-validation":"0.0.x","lingo":"0.0.5"},"devDependencies":{"restify":"2.6.0","grunt":"~0.4.1","grunt-contrib-jshint":"~0.7.0","grunt-contrib-watch":"~0.5.1","grunt-mocha-cli":"~1.3.0","matchdep":"~0.3.0","should":"~2.0.2","sinon":"~1.7.3","grunt-mocha-cov":"~0.0.7","grunt-release":"~0.6.0"},"description":"node-restify-swagger =======================","homepage":"https://github.com/z0mt3c/node-restify-swagger","_id":"node-restify-swagger@0.1.4","dist":{"shasum":"aad400f839a9cdaeac6463bb478d3d5c65453418","tarball":"https://registry.npmjs.org/node-restify-swagger/-/node-restify-swagger-0.1.4.tgz","integrity":"sha512-TqLzU2bCMXfaZkMSPgcR4zdspMbzYfPwC8donW4ouIX7WNzZQVzrQ9wXopwH5mCIa1oBGM6i2c6eXGaAVnvlIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAYQDUosBWYSHNTokym4Ms/izKDITzZI9qCof1j90NwvAiBQhefuWYAZHU0wVG6jy4Qe9Tw5KUVYqYhCwXbCrlZdFA=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"z0mt3c","email":"timo.behrmann@gmail.com"},"maintainers":[{"name":"z0mt3c","email":"timo.behrmann@gmail.com"}],"directories":{}},"0.1.5":{"name":"node-restify-swagger","version":"0.1.5","author":{"name":"Timo Behrmann"},"license":"MIT","keywords":["rest","api","restify","validation"],"repository":{"type":"git","url":"git://github.com/z0mt3c/node-restify-swagger.git"},"bugs":{"url":"https://github.com/z0mt3c/node-restify-swagger/issues"},"scripts":{"test":"grunt test"},"main":"lib/index","dependencies":{"underscore":"~1.5.2","underscore.string":"~2.3.3","node-restify-validation":"0.0.x","lingo":"0.0.5"},"devDependencies":{"restify":"2.6.0","grunt":"~0.4.1","grunt-contrib-jshint":"~0.7.0","grunt-contrib-watch":"~0.5.1","grunt-mocha-cli":"~1.3.0","matchdep":"~0.3.0","should":"~2.0.2","sinon":"~1.7.3","grunt-mocha-cov":"~0.0.7","grunt-release":"~0.6.0"},"description":"node-restify-swagger =======================","homepage":"https://github.com/z0mt3c/node-restify-swagger","_id":"node-restify-swagger@0.1.5","dist":{"shasum":"5c3209c83d62e9a69d306fe21ffc6a6b4061885f","tarball":"https://registry.npmjs.org/node-restify-swagger/-/node-restify-swagger-0.1.5.tgz","integrity":"sha512-ST1YnQhftyQrmSns+2Njau4GUddmx/YMWcglTBWNm1oaZlyjRGD+X+xIZZ2PZ3OPDM9QNhlHAwDuHm390HN5DQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA+tRPoKbPAdAHItikGlzliu9ZxHr/J8+0A0N0BwsrOwAiEAxwa+xg3tGnq8Sv+4A0iQmMAFbU1+4K7bYqWuH9DfqAs="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"z0mt3c","email":"timo.behrmann@gmail.com"},"maintainers":[{"name":"z0mt3c","email":"timo.behrmann@gmail.com"}],"directories":{}},"0.1.6":{"name":"node-restify-swagger","version":"0.1.6","author":{"name":"Timo Behrmann"},"license":"MIT","keywords":["rest","api","restify","validation"],"repository":{"type":"git","url":"git://github.com/z0mt3c/node-restify-swagger.git"},"bugs":{"url":"https://github.com/z0mt3c/node-restify-swagger/issues"},"scripts":{"test":"grunt test"},"main":"lib/index","dependencies":{"underscore":"~1.5.2","underscore.string":"~2.3.3","node-restify-validation":"0.0.x","lingo":"0.0.5"},"devDependencies":{"restify":"2.6.0","grunt":"~0.4.1","grunt-contrib-jshint":"~0.7.0","grunt-contrib-watch":"~0.5.1","grunt-mocha-cli":"~1.3.0","matchdep":"~0.3.0","should":"~2.0.2","sinon":"~1.7.3","grunt-mocha-cov":"~0.0.7","grunt-release":"~0.6.0"},"description":"node-restify-swagger =======================","homepage":"https://github.com/z0mt3c/node-restify-swagger","_id":"node-restify-swagger@0.1.6","dist":{"shasum":"a6ba7587336189522b2b80e4262b7b86e73b6c4c","tarball":"https://registry.npmjs.org/node-restify-swagger/-/node-restify-swagger-0.1.6.tgz","integrity":"sha512-qZB8illRvYL92lo8ja8cnPFwe1bu4WLPNBI+vbT3Bges5YvsbKHSuIDQlM78Wnp1jG/GVuwzA8FPJ78vdKv2uQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+VZyPOVMDWRXTpSRnMyM1dxJn58BOuJeiwyMIZB/KUwIhAPLglEjrVX8KkVjTCxI53cAY0AAJKheyithovF9dhHx8"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"z0mt3c","email":"timo.behrmann@gmail.com"},"maintainers":[{"name":"z0mt3c","email":"timo.behrmann@gmail.com"}]},"0.1.7":{"name":"node-restify-swagger","version":"0.1.7","author":{"name":"Timo Behrmann"},"license":"MIT","keywords":["rest","api","restify","validation"],"repository":{"type":"git","url":"git://github.com/z0mt3c/node-restify-swagger.git"},"bugs":{"url":"https://github.com/z0mt3c/node-restify-swagger/issues"},"scripts":{"test":"grunt test"},"main":"lib/index","dependencies":{"underscore":"~1.7.0","underscore.string":"~2.3.3","node-restify-validation":"~0.1.0","lingo":"0.0.5"},"devDependencies":{"restify":"2.8.3","grunt":"~0.4.1","grunt-contrib-jshint":"~0.10.0","grunt-contrib-watch":"~0.6.1","grunt-mocha-cli":"~1.10.0","matchdep":"~0.3.0","should":"~4.2.1","sinon":"~1.11.1","grunt-mocha-cov":"~0.3.0","grunt-release":"~0.7.0"},"gitHead":"b405bcae11f8dc01a8201c4ada28cc1db9ab5e17","description":"node-restify-swagger =======================","homepage":"https://github.com/z0mt3c/node-restify-swagger","_id":"node-restify-swagger@0.1.7","_shasum":"67a1aff5e71db0af241c545fdec1056a536c5cd5","_from":".","_npmVersion":"2.1.8","_nodeVersion":"0.10.32","_npmUser":{"name":"z0mt3c","email":"timo.behrmann@gmail.com"},"maintainers":[{"name":"z0mt3c","email":"timo.behrmann@gmail.com"}],"dist":{"shasum":"67a1aff5e71db0af241c545fdec1056a536c5cd5","tarball":"https://registry.npmjs.org/node-restify-swagger/-/node-restify-swagger-0.1.7.tgz","integrity":"sha512-sBywFCJgAHp/1Il/NGLvZz9mQiRvnFoXWt9lzL9i6NWdSOD3BNTsNm7d3l6uCish4yTxNlouy736b3g3lh/b9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICWcHA1V3CUNPXzigrxRBB4pxAkUuUzZsu+NRyW4KWklAiEA7gDr4pRD0DqiJUrTiYAaBkHcOJHQMY9G0P49RMRbgsE="}]}},"0.1.8":{"name":"node-restify-swagger","version":"0.1.8","author":{"name":"Timo Behrmann"},"license":"MIT","keywords":["rest","api","restify","validation"],"repository":{"type":"git","url":"git://github.com/z0mt3c/node-restify-swagger.git"},"bugs":{"url":"https://github.com/z0mt3c/node-restify-swagger/issues"},"scripts":{"test":"grunt test"},"main":"lib/index","dependencies":{"underscore":"~1.7.0","underscore.string":"~2.3.3","node-restify-validation":"~0.1.0","lingo":"0.0.5"},"devDependencies":{"restify":"2.8.3","grunt":"~0.4.1","grunt-contrib-jshint":"~0.10.0","grunt-contrib-watch":"~0.6.1","grunt-mocha-cli":"~1.10.0","matchdep":"~0.3.0","should":"~4.2.1","sinon":"~1.11.1","grunt-mocha-cov":"~0.3.0","grunt-release":"~0.7.0"},"gitHead":"76625cfdd82f7e8127b49b2af553a92d054ff970","description":"node-restify-swagger =======================","homepage":"https://github.com/z0mt3c/node-restify-swagger","_id":"node-restify-swagger@0.1.8","_shasum":"65c94677f3525406fe5637df001b8ce599324518","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.35","_npmUser":{"name":"z0mt3c","email":"timo.behrmann@gmail.com"},"maintainers":[{"name":"z0mt3c","email":"timo.behrmann@gmail.com"}],"dist":{"shasum":"65c94677f3525406fe5637df001b8ce599324518","tarball":"https://registry.npmjs.org/node-restify-swagger/-/node-restify-swagger-0.1.8.tgz","integrity":"sha512-0Tf1uDiSMnfenR4IO4uF7MtWnNAwWg/Jp5Tyf50sqJ5KDHpsdXqp0im8tKLO/GPSHU5Zsg/AeZMXG6pA0xE8XA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuB0oZ3YlSLleN60KPwBoxsdx5SMwPFAU8+M1ShpA02gIgJFcvrq88grbvMoVgEdX/SlMoTkAPsk7UEgrCQ/mgclI="}]}}},"readme":"node-restify-swagger\n=======================\n\n[![Build Status](https://travis-ci.org/z0mt3c/node-restify-swagger.png)](https://travis-ci.org/z0mt3c/node-restify-swagger)\n[![Coverage Status](https://coveralls.io/repos/z0mt3c/node-restify-swagger/badge.png?branch=master)](https://coveralls.io/r/z0mt3c/node-restify-swagger?branch=master)\n[![Dependency Status](https://gemnasium.com/z0mt3c/node-restify-swagger.png)](https://gemnasium.com/z0mt3c/node-restify-swagger)\n\n## Requirements\nThis project depends on https://github.com/z0mt3c/node-restify-validation.\n\n## Example\n\n    var restify = require('restify');\n    var restifySwagger = require('node-restify-swagger');\n    var restifyValidation = require('node-restify-validation');\n\n    var server = restify.createServer();\n    server.use(restify.queryParser());\n    server.use(restifyValidation.validationPlugin({\n        errorsAsArray: false,\n    }));\n    restifySwagger.configure(server, {\n        description: 'Description of my API',\n        title: 'Title of my API',\n        allowMethodInModelNames: true\n    });\n\n    server.post({\n        url: '/animals',\n        swagger: {\n                summary: 'Add animal',\n                docPath: 'zoo'\n        },\n        validation: {\n            name: { isRequired: true, isAlpha:true, scope: 'body' },\n            locations: { isRequired: true, type:'array', swaggerType: 'Location', scope: 'body' }\n        },\n        models: {\n            Location: {\n                id: 'Location',\n                properties: {\n                    name: { type: 'string' },\n                    continent: { type: 'string' }\n                }\n            },\n        }\n    }, function (req, res, next) {\n        res.send(req.params);\n    });\n\n    restifySwagger.loadRestifyRoutes();\n    server.listen(8001, function () {\n        console.log('%s listening at %s', server.name, server.url);\n    });\n\n\nAbove will validate and accept at POST /animals:\n\n    {\n        \"name\": \"Tiger\",\n        \"location\": [\n            { \"name\": \"India\", continent: \"Asia\" },\n            { \"name\": \"China\", continent: \"Asia\" }\n        ]\n    }\n\nAnd produce swagger spec doc at http://localhost:8001/swagger/resources.json\n\n    {\n      \"swaggerVersion\": \"1.2\",\n      \"apiVersion\": [],\n      \"basePath\": \"http://localhost:8001\",\n      \"apis\": [\n        {\n          \"path\": \"/swagger/zoo\",\n          \"description\": \"\"\n        }\n      ]\n    }\n\nAnd endpoint documentation at http://localhost:8001/swagger/zoo\n\n    {\n      \"swaggerVersion\": \"1.2\",\n      \"apiVersion\": [],\n      \"basePath\": \"http://localhost:8001\",\n      \"resourcePath\": \"/swagger/zoo\",\n      \"apis\": [\n        {\n          \"path\": \"/animals\",\n          \"description\": \"\",\n          \"operations\": [\n            {\n              \"notes\": null,\n              \"nickname\": \"Animals\",\n              \"produces\": [\n                \"application/json\"\n              ],\n              \"consumes\": [\n                \"application/json\"\n              ],\n              \"responseMessages\": [\n                {\n                  \"code\": 500,\n                  \"message\": \"Internal Server Error\"\n                }\n              ],\n              \"parameters\": [\n                {\n                  \"name\": \"Body\",\n                  \"required\": true,\n                  \"dataType\": \"POSTAnimals\",\n                  \"paramType\": \"body\"\n                }\n              ],\n              \"summary\": \"Add animal\",\n              \"httpMethod\": \"POST\",\n              \"method\": \"POST\"\n            }\n          ]\n        }\n      ],\n      \"models\": {\n        \"Location\": {\n          \"id\": \"Location\",\n          \"properties\": {\n            \"name\": {\n              \"type\": \"string\"\n            },\n            \"continent\": {\n              \"type\": \"string\"\n            }\n          }\n        },\n        \"POSTAnimals\": {\n          \"properties\": {\n            \"name\": {\n              \"type\": \"string\",\n              \"dataType\": \"string\",\n              \"name\": \"name\",\n              \"required\": true\n            },\n            \"locations\": {\n              \"type\": \"array\",\n              \"dataType\": \"Location\",\n              \"name\": \"locations\",\n              \"items\": {\n                \"$ref\": \"Location\"\n              },\n              \"required\": true\n            }\n          }\n        }\n      }\n    }\n\n\n## Install\n\n    npm install node-restify-swagger\n\n\n## License\n\n\nThe MIT License (MIT)\n\nCopyright (c) 2013 Timo Behrmann\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","maintainers":[{"name":"z0mt3c","email":"timo.behrmann@gmail.com"}],"time":{"modified":"2022-06-21T21:05:22.831Z","created":"2013-07-16T20:44:26.702Z","0.0.1":"2013-07-16T20:44:29.617Z","0.0.2":"2013-07-23T07:10:00.921Z","0.1.0":"2013-08-16T22:41:23.500Z","0.1.1":"2013-10-24T06:59:06.207Z","0.1.2":"2013-11-20T13:44:25.378Z","0.1.3":"2013-11-21T13:24:05.287Z","0.1.4":"2013-11-21T13:25:22.258Z","0.1.5":"2013-12-02T21:37:35.233Z","0.1.6":"2014-01-16T12:29:17.117Z","0.1.7":"2014-11-25T14:08:39.590Z","0.1.8":"2015-02-04T08:49:54.620Z"},"author":{"name":"Timo Behrmann"},"repository":{"type":"git","url":"git://github.com/z0mt3c/node-restify-swagger.git"},"readmeFilename":"README.md","homepage":"https://github.com/z0mt3c/node-restify-swagger","keywords":["rest","api","restify","validation"],"bugs":{"url":"https://github.com/z0mt3c/node-restify-swagger/issues"},"license":"MIT","users":{"vparaskevas":true}}