{"_id":"@manifoldco/swagger-to-ts","_rev":"67-946a953d934e86405ef227fea55f4f55","name":"@manifoldco/swagger-to-ts","dist-tags":{"latest":"2.1.0","next":"2.0.0-alpha.6"},"versions":{"0.1.0":{"name":"@manifoldco/swagger-to-ts","version":"0.1.0","description":"Convert Swagger files to TypeScript","main":"dist/swaggerToTS.js","scripts":{"build":"node scripts/build","prepublish":"npm run build"},"engines":{"node":">= 8.0.0"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"keywords":["swagger","typescript","ts","openapi","node"],"author":{"name":"drew@pow.rs"},"license":"ISC","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","dependencies":{"prettier":"^1.15.1"},"devDependencies":{"@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","babel-eslint":"^8.2.6","eslint":"^5.7.0","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-prettier":"^3.0.0","rollup":"^0.66.6","rollup-plugin-babel":"^4.0.3","rollup-plugin-uglify":"^6.0.0"},"gitHead":"bb693d2026f1cf4b9daff0dc56957c6603a20a27","_id":"@manifoldco/swagger-to-ts@0.1.0","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"dist":{"integrity":"sha512-blpgE6oAWs6ITyMsoQmLu8Gz2PT5ix0/lAd4UVadA/cNS5WX5Cslf2IHLD3/x4NQlyugT9iq4lO+RNkQfnosbw==","shasum":"4be9fc691baddb3549111e06f24c23113154db9d","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-0.1.0.tgz","fileCount":8,"unpackedSize":12279,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEsF5CRA9TVsSAnZWagAAcoEP/iXB6Seag+hjrX19q92H\ng/9aE5CqRP7QNnAn5+Zdk7lMHwDQ6V0dsrrAHmG3a6M3QRuqd8peQ7vkERan\ngdPpLFLCsFqBk/TZ9/JBVmkc3XqGw9gNJuSjw3e0I2VzONks3B44f2ibU7mS\ndq6VMhkK+4DEFq4mGrcXRCAEGvJBaES/k2A+poEjluiyXqveEkJClNlk4U6U\nOiz3e1FnBsycpcbA0NDM6xTD5Xod7+9i4NuMBsEVnns0+bE74VHOP/aAZTgH\nAyF1M6YUOEdrGNaZ/4bhLPIaYTW0Rr2AIPrZrCC1jd9J4zWldKyGzZ8u2eid\nDHUuW1EiY7vTaYz1CI2nmlQppopSfeLjrrWiAYp7Dszyl1ELL4hdQE+Vl2JK\nKMURCvBJsRA+pzhpvFuSwiajcEkXjFVgu+uYhhzTeKvGmvfnjlNFWsuuPNHE\noFOrN532Ixf7eq0fnb2Qkmrr+rgjY4twbOSqIMGOwcZENGSOL/VOmX5PgzJc\nT3sL0eXBNjfv2VHExyENocXE9V9tmc8CxnOy4FJ6j/1DqiumcI/lo0fskGuP\ndKg+YmsIw4/7X0mMOC+n3uAtvRYcobarOOHqkMp0JTbJ/ErPt2UJx9Xlpzvn\nhs1HmV2Wv7Lvcy9yGPWMYpoJFrc08G32G3qQhYGHQpavbpMaCppsS/9OvAZ2\n0VNT\r\n=OATn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoeJNl/uzQ47IWquWzH5x/Kzt+jvNTkFq0fCl6S1lCgAIgO4KblwtXLXwkrzpZCiCNpaExmDe7VsMhJyr9VdX3Aik="}]},"maintainers":[{"name":"enmand","email":"enmand@gmail.com"},{"name":"tim-speed","email":"iceczd@gmail.com"},{"name":"minivera","email":"gstpierre01@gmail.com"},{"name":"terrysmith","email":"terry@designcollider.com"},{"name":"ntibaldi92","email":"nicole@manifold.co"},{"name":"drewpowers","email":"drew@pow.rs"},{"name":"sslotsky","email":"saxosamo@gmail.com"},{"name":"markjamieson","email":"markjamieson0@gmail.com"},{"name":"garyposter","email":"gary@modernsongs.com"},{"name":"ianlivingstone","email":"ianrlivingstone@gmail.com"},{"name":"jeffandersen","email":"jeffandersen@gmail.com"},{"name":"jbowes","email":"jbowes@repl.ca"},{"name":"creager","email":"matthew.creager@gmail.com"},{"name":"davehyndman","email":"dave@manifold.co"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_0.1.0_1544733048751_0.7086436116577461"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"0.2.0":{"name":"@manifoldco/swagger-to-ts","version":"0.2.0","description":"Convert Swagger files to TypeScript","main":"dist/swaggerToTS.js","scripts":{"build":"node scripts/build","prepublish":"npm run build"},"engines":{"node":">= 8.0.0"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"keywords":["swagger","typescript","ts","openapi","node"],"author":{"name":"drew@pow.rs"},"license":"ISC","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","dependencies":{"prettier":"^1.15.1"},"devDependencies":{"@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","babel-eslint":"^8.2.6","eslint":"^5.7.0","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-prettier":"^3.0.0","rollup":"^0.66.6","rollup-plugin-babel":"^4.0.3","rollup-plugin-uglify":"^6.0.0"},"gitHead":"4a92b34849134d9f7a3753ef2c9698fa722a406f","_id":"@manifoldco/swagger-to-ts@0.2.0","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"dist":{"integrity":"sha512-FkKl5qMuaE5v5MGEhdi4QVOiIZBQ0MWeASWI710h9d3G0hfWlDX3wQ+bTFhJeN90oYAHsGeA35rZavraMCqapA==","shasum":"fb72c5ae012b1783a04695347957d64af807731c","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-0.2.0.tgz","fileCount":8,"unpackedSize":12677,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEs4SCRA9TVsSAnZWagAABpoQAKIexvBGKyiIKkYn4MVa\n/59Io+X5TPcg6qI/4XE4Id+p1hZgkD5zMNUMTZuJ0Eim4krVtrA4ubPC5p4o\nOj+4mtseqz2gajjhi7d9fIlMGYrypeBDv5/9v20KIbJOVLgSlxd5YQt8bCDT\nFv9JApz2NrQAZwHS1PpQu98eWJak0siU2sREEyyUQrRsR0kNo4QfATSEM4q6\n3e8RQBaySAE/+g9Y2rhtSetE+jHwoP5tjNJuolVasQSGVAmdZASSRmsLWtrS\n9StF9ad5Wh+hOJqmC04zpvCvWjJ3BzVyxakN2yz0yxAS+NQ3LUirLYo8wv+B\ncNnb9/G/IYiK2etRXMB5AukOZvpJfs5vVlpWE+uFPsTKlfvOVfiiaEXR+WTy\njYFwmQ/2/SB/NNaRRb3Et+nErINM2jNjrJEeWhAgb/nlRdzTHpugWdxMyyUs\nCGCOKdTskIAFxtf6gt5R7uqd5a9bMDqKnoBnIU0GS34aCJtP0FyxFKV3hjPB\nq6RZkjS6mTO3SiPFaYb3LXnRahEg45qPxrUdUrW8Khg8FEJLLta/SZF3TwWg\n658E8kVk0z59JJx+mGJGxmvQ30rdtpeDETeP/IKTgYfyVN4fmXuy5cM5R0c1\n446XhbXXcv57RAK4jlLNqEVsv6Be8wKe7JXfRw6b+E3Ydp8gsMDsGNhWIgQT\nbNBS\r\n=41/Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDfV8gbolU8hgwsvyY911ZsF1Ov6v9jadd0cYLs1ZLCMAiEAtVEmEF0AxoGk9DIAcNnvVr71P9k5i/lpzEHdMeu2haM="}]},"maintainers":[{"name":"creager","email":"matthew.creager@gmail.com"},{"name":"davehyndman","email":"dave@manifold.co"},{"name":"drewpowers","email":"drew@pow.rs"},{"name":"enmand","email":"enmand@gmail.com"},{"name":"garyposter","email":"gary@modernsongs.com"},{"name":"ianlivingstone","email":"ianrlivingstone@gmail.com"},{"name":"jbowes","email":"jbowes@repl.ca"},{"name":"jeffandersen","email":"jeffandersen@gmail.com"},{"name":"markjamieson","email":"markjamieson0@gmail.com"},{"name":"minivera","email":"gstpierre01@gmail.com"},{"name":"ntibaldi92","email":"nicole@manifold.co"},{"name":"sslotsky","email":"saxosamo@gmail.com"},{"name":"terrysmith","email":"terry@designcollider.com"},{"name":"tim-speed","email":"iceczd@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_0.2.0_1544736273285_0.3871112068056106"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"0.2.1":{"name":"@manifoldco/swagger-to-ts","version":"0.2.1","description":"Convert Swagger files to TypeScript","main":"dist/swaggerToTS.js","scripts":{"build":"node scripts/build","prepublish":"npm run build"},"engines":{"node":">= 8.0.0"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"keywords":["swagger","typescript","ts","openapi","node"],"author":{"name":"drew@pow.rs"},"license":"ISC","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","dependencies":{"prettier":"^1.15.1"},"devDependencies":{"@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","babel-eslint":"^8.2.6","eslint":"^5.7.0","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-prettier":"^3.0.0","rollup":"^0.66.6","rollup-plugin-babel":"^4.0.3","rollup-plugin-uglify":"^6.0.0"},"gitHead":"110d5d14aa6c2cc90d9ad7bb7a629a92ce933345","_id":"@manifoldco/swagger-to-ts@0.2.1","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"dist":{"integrity":"sha512-3UXRZrkJUpS0qM2DoiALNf79FhMxewDWZDtgns0mdC1FUaMNmvrxwa50ZjBIBdo6/fSaw+QXzoyZhNFLYrj3qg==","shasum":"da910ca83e6c476f60e3eb0ae0292a22a70a695a","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-0.2.1.tgz","fileCount":8,"unpackedSize":12983,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEtHaCRA9TVsSAnZWagAAWp8P/3Nu5rs4S938LGMRfoL+\nxzLx3rtHLQu+q3apuFR1uT4yVBgTxuMpDiaPcQM0VOmj8aCDy3Og9IF4luDe\nXP1eyEhuFeFEbKS5wn8Jmr6oksEfjwv3RE46amNLLG/1DKtawRBLN7TfI1kf\nU02UkfAQDo5xg295rc3FiqpFdeNKwRvzFx6fO4ya3eFmCnDiPxIETD+fRpmN\nIypCRjhz3UN9fH0SHbHNVjGdL64gxh+OldHBHRkkYpBAvSJWq2rhcrO+VMlO\n8RcOLjhWNv7kdb/p+FsApaW9nZrSxAAsZxfjeIoQlVkVO1gQ7Ap26m8JCwc4\n9ZRIa63iaJutIM4X4GsHncTbRROKeEyg6a0mgw66sVMt30cxklzkfSnsADzl\nl3QSSZk+hZZlN5bNlfdPTVy5KYpnHiuRuVLiwgWbmk0qZXw5l92BgHruWTFj\n3W0x17UnmITTiDHIHbtUYNx9vmB3uB2Twuh7PGnr+XbKDw45F0h6Venkj/lK\nObaRw0CcCMcZkN9ltpRt0Thz622odWYW0aaQzCGhfHRMe4Zj6TRvZp7MKJ9u\nDJ49q2E3HdnWaQbrvfM+zISPaAPXungDTF64oB0mOt0atK2d1VAtWjew9eP+\nTlyAX71rd4WG8zVnA8k7Jip1VrKq+VZMQbNQaWyRssTqCxbEEJauJPxQAkf3\nNbBh\r\n=49fh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE6E/K8IGa5NvglxBMQCEW6be5zd0eezr/YXkY1lRBH6AiBCFwV0AJV4XSH18EdbM9xZOciSijEeRqSM5eEeyBwUzw=="}]},"maintainers":[{"name":"creager","email":"matthew.creager@gmail.com"},{"name":"davehyndman","email":"dave@manifold.co"},{"name":"drewpowers","email":"drew@pow.rs"},{"name":"enmand","email":"enmand@gmail.com"},{"name":"garyposter","email":"gary@modernsongs.com"},{"name":"ianlivingstone","email":"ianrlivingstone@gmail.com"},{"name":"jbowes","email":"jbowes@repl.ca"},{"name":"jeffandersen","email":"jeffandersen@gmail.com"},{"name":"markjamieson","email":"markjamieson0@gmail.com"},{"name":"minivera","email":"gstpierre01@gmail.com"},{"name":"ntibaldi92","email":"nicole@manifold.co"},{"name":"sslotsky","email":"saxosamo@gmail.com"},{"name":"terrysmith","email":"terry@designcollider.com"},{"name":"tim-speed","email":"iceczd@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_0.2.1_1544737241640_0.6742499322947599"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"0.3.0":{"name":"@manifoldco/swagger-to-ts","version":"0.3.0","description":"Convert Swagger files to TypeScript","main":"dist/swaggerToTS.js","scripts":{"build":"node scripts/build","prepublish":"npm run build"},"engines":{"node":">= 8.0.0"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"keywords":["swagger","typescript","ts","openapi","node"],"author":{"name":"drew@pow.rs"},"license":"ISC","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","dependencies":{"prettier":"^1.15.1"},"devDependencies":{"@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","babel-eslint":"^8.2.6","eslint":"^5.7.0","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-prettier":"^3.0.0","rollup":"^0.66.6","rollup-plugin-babel":"^4.0.3","rollup-plugin-uglify":"^6.0.0"},"gitHead":"c8a9b83f461bc08bd1f76235406df691f4ab136f","_id":"@manifoldco/swagger-to-ts@0.3.0","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"dist":{"integrity":"sha512-KLUZ/ee9Vkp69Jehn11f9mRTDoaZP130wyhSXFF1t3ow2t3VP5hww6p6M95CeghQ0MKtm0KPz/jL1TxMKLglEw==","shasum":"79a8fdd91b967d0b4e61f55bccd67a1ff5336c48","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-0.3.0.tgz","fileCount":8,"unpackedSize":13004,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEtjlCRA9TVsSAnZWagAAiG8QAITrI6VpT91+vJYXojC4\nLwD9YRQeAzcKLFoAu/Jv2cw8PfjCWh5wWbzWJRP4gvrI5wkhdy/hi/3Q9oh7\nZnRFTS69DU8+CgUQ4+8f7UXTXFdEZwCthe7N2wV1KFR/0WguIStLDfb/9YBq\nFQQc3lkIssQRdgZk0E3DZuZ4mITFmCT5riVpQt2WGfxn8vtK+TN4V6fAlCp8\nJ1ilmKaMtoRLr2Vi//csTlYvBUGWOkS0rLKA3aPSL7XY3sDJM3cBlCbdy9Wj\n+3b89F8MMmQE9AclxpS/TKAr1Y0T+4h6rdFotJB1ApOiVhLU6lFVLu9cAYLm\nUCKzKGZ//nqlruk9rZZDnB86LGsa5m0wXOPilDMz6nv86k6XJU/4VPi7kZEH\n8oDfVIEAZ+G6H7wRI4HPooy02lHYuCYtUFPdes33m7WM/zfolrwBpZ8SPiq7\n/eYR9Cxto+WeCwFghFqS8LVMkp4EKj8hqdL6gZJbV5fdHbR/KphZu4df5eUq\nkdG+hBEvEkOjb/Fm1H30gahSLhwNYXOdbWKll5++PM6S+GQ1mZN5nVr3xD5J\nASEj/ygdowLLg2vtrxNyJux+5EDuWsUyNW04CbO6Wd/RRhrrtRt/uNlISB0S\nGL8opVEfZulSXII2+UXP5pO7+JO6i1RtFwYNVdbvZBTbG+3cvi8RT+5Wks2w\nz6w4\r\n=tLyd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmXuGe3euK9j7PvkiDq9Xdm6hacO9ZqmGTFnIGRzxwZwIgFS5beMGNzg47jh5Pxj2A1FoNCwVuygs36FwphtSmxjQ="}]},"maintainers":[{"name":"creager","email":"matthew.creager@gmail.com"},{"name":"davehyndman","email":"dave@manifold.co"},{"name":"drewpowers","email":"drew@pow.rs"},{"name":"enmand","email":"enmand@gmail.com"},{"name":"garyposter","email":"gary@modernsongs.com"},{"name":"ianlivingstone","email":"ianrlivingstone@gmail.com"},{"name":"jbowes","email":"jbowes@repl.ca"},{"name":"jeffandersen","email":"jeffandersen@gmail.com"},{"name":"markjamieson","email":"markjamieson0@gmail.com"},{"name":"minivera","email":"gstpierre01@gmail.com"},{"name":"ntibaldi92","email":"nicole@manifold.co"},{"name":"sslotsky","email":"saxosamo@gmail.com"},{"name":"terrysmith","email":"terry@designcollider.com"},{"name":"tim-speed","email":"iceczd@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_0.3.0_1544739044258_0.3376614873989703"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"0.3.1":{"name":"@manifoldco/swagger-to-ts","version":"0.3.1","description":"Convert Swagger files to TypeScript","main":"dist/swaggerToTS.js","scripts":{"build":"node scripts/build","prepublish":"npm run build"},"engines":{"node":">= 8.0.0"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"keywords":["swagger","typescript","ts","openapi","node"],"author":{"name":"drew@pow.rs"},"license":"ISC","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","dependencies":{"prettier":"^1.15.1"},"devDependencies":{"@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","babel-eslint":"^8.2.6","eslint":"^5.7.0","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-prettier":"^3.0.0","rollup":"^0.66.6","rollup-plugin-babel":"^4.0.3","rollup-plugin-uglify":"^6.0.0"},"gitHead":"21c5b7472e61747c06452feb9fb79ee5d6404b89","_id":"@manifoldco/swagger-to-ts@0.3.1","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"dist":{"integrity":"sha512-vkyD+rHps4YGCdKwZa8aX6UgCZej8ynMlW6sQesI8q3A0X43XXQ03v2r/DB4sQ+mibNJYzhJj4ihfmka94gacg==","shasum":"a81ab8fa13d196bfdd5f69e171f4a8e89db91912","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-0.3.1.tgz","fileCount":8,"unpackedSize":14024,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcGV5SCRA9TVsSAnZWagAAMRYQAJ/bMq35KBdkNjdLZfXA\n6EpQ9e2x0AL5QK5+dLjJ7I69sw1uhJKAJM2YgXk416LNjLp0YemL3wW49zSh\n9ndVCm09QKf08pS3iHETX96gCoBLJJXbKLQlEDj1SScuoeprvOibfpfd+wzt\nhZ8QFK2rps5/rvo3JB7lidCKTG++gh81l6Pdkl+3XITJRMqd4BlL6YrR9+8v\nBhe4hqgn8FTvqY27IXMiMzRs25gY7l+9hA++gee4XruchhdMEe3kpqMJzAKu\nw8F++G7UQv11AHa7PavahcyaCchmIr2y+diD4uSPE+jgiSv0p5BDrn5QXail\nQ2TFcURu0uV2kzmsOn9kUHQbSJF3xh+bNaHEoeAJ48uLF55vZpWzuJ3AwSKx\nHWm2fAFMisjN8CsZ6Wd7pAfjaJRUWYhRnKvWVou8lFplNNy2g4NiNQklEGlH\nnGOWzyDQ5h7oR23VBz1dYGdtWZQLVIo6pAOq+EyXt1TP2bW4b5t/lXx+JuEZ\n0cIxim9iGKlFEKRtRSfRJ64DLKiWEZ1duHXLAUYrLkaes6WIFrAW4C+HyBpI\nnwlwZSpy/ShWxX7xNjBklz5+2Y8GZPdDOKtBz26BbkTZqE+FAcSbKwnrMVTt\nIt0PP9Y0C2yx/bu5J71bnKYCSl8T8J4NDqhF/Xj08Ti9/CFhBEUvL5tVnibC\nuCiY\r\n=7S7r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcBYioWB0iIfUw7IXBFBAr9G5ugjtysY6admyZg82GJgIhAI9I8RiIFMjsJCRlRUQXcsm/n5tMhOD6UfrD3QNiqaNR"}]},"maintainers":[{"name":"creager","email":"matthew.creager@gmail.com"},{"name":"davehyndman","email":"dave@manifold.co"},{"name":"drewpowers","email":"drew@pow.rs"},{"name":"enmand","email":"enmand@gmail.com"},{"name":"garyposter","email":"gary@modernsongs.com"},{"name":"ianlivingstone","email":"ianrlivingstone@gmail.com"},{"name":"jbowes","email":"jbowes@repl.ca"},{"name":"jeffandersen","email":"jeffandersen@gmail.com"},{"name":"markjamieson","email":"markjamieson0@gmail.com"},{"name":"minivera","email":"gstpierre01@gmail.com"},{"name":"ntibaldi92","email":"nicole@manifold.co"},{"name":"sslotsky","email":"saxosamo@gmail.com"},{"name":"terrysmith","email":"terry@designcollider.com"},{"name":"tim-speed","email":"iceczd@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_0.3.1_1545166417619_0.43518206656469705"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"0.9.0":{"name":"@manifoldco/swagger-to-ts","version":"0.9.0","description":"Convert Swagger files to TypeScript","main":"dist","engines":{"node":">= 8.0.0"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"keywords":["swagger","typescript","ts","openapi","node"],"author":{"name":"drew@pow.rs"},"license":"ISC","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","scripts":{"build":"node scripts/build","pregenerate":"npm run build","generate":"node scripts/generate","lint:js":"eslint --ignore-path .gitignore --ext .js src","prepublish":"npm run build","pretest":"npm run build","test":"jest"},"dependencies":{"prettier":"^1.16.1"},"devDependencies":{"@types/glob":"^7.1.1","@types/jest":"^23.3.13","@types/js-yaml":"^3.12.0","@types/prettier":"^1.15.2","eslint":"^5.3.0","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-import":"^2.15.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-prettier":"^3.0.0","eslint-plugin-react":"^7.12.4","jest":"^23.6.0","js-yaml":"^3.12.1","rollup":"^0.66.6","rollup-plugin-terser":"^4.0.2","rollup-plugin-typescript":"^1.0.0","ts-jest":"^23.10.5","tslib":"^1.9.3","typescript":"^3.2.4"},"peerDependencies":{"prettier":"^1.0.0"},"gitHead":"51c373b080bcaa3d69a3eafb703faab6b6f1aa18","_id":"@manifoldco/swagger-to-ts@0.9.0","_nodeVersion":"11.6.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-DQu6CyRcSTGb9Hj2Nmy2QESEx9cSQDpyFCFI4AxJx6CpmAaHyjVzodQ43WumjlptWE5WuJbqZ9MLIxNqb7yX/Q==","shasum":"1bfd8992019cdcd41a73c4361aa15936e0925bc8","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-0.9.0.tgz","fileCount":16,"unpackedSize":83982,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcT31JCRA9TVsSAnZWagAAhy0QAIChXa4tSG3nRcbz1fPH\nFJFUCMJIj5prlkn+ByzvEyrCDGbE8j4HtNj/bxBb+1dEWfAGLnEV6RslVR/3\nH/JP1SAFrgFIam8+/QnKRdQ62/130fXAk2ipaySZKf0E7X6Ktwr41NPj/gxr\nThOdnUNtwFzxw3U9Qvn6x2hJqdOTgDMRGrsuqdBo28Is1QQCblrjJhzQmFsT\ngA5IfeALDDDMoVvSofzH1L37V9oRFCqjEROLVn87nTe0y8CuqKnFhN4NnpZg\nYfYT9wyCFcNkZXaNmVivHSWrrCPijMqPPZEta7Ik2LZsHeKO40+dDTA4nT0c\nDIh2PxP+ILzhxg/2XIPyaLSM/SLQH1l/fIUf8Ui8Oe6ZYpkwdm+5WFeH2BFk\nMJkLADW6pmdupAi9k9bOZe7o22VTrTMqvTZEhkHNvnoUx+7Xxy839gsQmwCg\nltp0J2RqK2fT022MvR4r66LnTMolUd21MUte+xTm3TreyTbwSBf8JHfa0IrW\nHWnwx8JwRWzEgl9zAVap5SH4ryLewU5TcKWjhZ55H2yeQsbh6rmWjk5qccwX\nCpP/T+Mmif4t9IWecm34w788XNAh82S8Cl8Iq/ht9J/qPQ7IFjawffc38N2Q\ni2tzmMroAVBPOxWsD4w5cSCJc1EH2BoExogxpHNspnqps6HBkD773/iafjRC\n8TKT\r\n=F35l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH2eK5O+jVgsHXPqMxtW0/Ss8SvHDYOs6WxdsrSDjiuFAiEAw+fFus77nTthir0ENe5JddC94NxrPY/J0NS0ijBwNno="}]},"maintainers":[{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"davidleger95@me.com","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_0.9.0_1548713288421_0.8757712393921515"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.0.0-alpha.0":{"name":"@manifoldco/swagger-to-ts","version":"1.0.0-alpha.0","description":"Generate TypeScript types from Swagger OpenAPI specs","main":"dist/cjs","engines":{"node":">= 8.0.0"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"keywords":["swagger","typescript","ts","openapi","node"],"author":{"name":"drew@pow.rs"},"license":"ISC","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","scripts":{"build":"node scripts/build","pregenerate":"npm run build","generate":"node scripts/generate","lint:js":"eslint --ignore-path .gitignore --ext .js src","prepublish":"npm run build","pretest":"npm run build","test":"jest"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^7.0.1","js-yaml":"^3.12.1","meow":"^5.0.0","prettier":"^1.16.1"},"devDependencies":{"@types/glob":"^7.1.1","@types/jest":"^23.3.13","@types/js-yaml":"^3.12.0","@types/prettier":"^1.15.2","eslint":"^5.12.1","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-import":"^2.15.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-prettier":"^3.0.0","eslint-plugin-react":"^7.12.4","jest":"^23.6.0","rollup":"^0.66.6","rollup-plugin-terser":"^4.0.2","rollup-plugin-typescript":"^1.0.0","ts-jest":"^23.10.5","tslib":"^1.9.3","typescript":"^3.2.4"},"peerDependencies":{"prettier":"^1.0.0"},"readme":"[![version (scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n\n# 📘️ swagger-to-ts\n\nConvert Swagger files to TypeScript interfaces using Node.js.\n\n💅 Prettifies output with [Prettier][prettier].\n\n## Usage\n\n### CLI\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --output schema.ts --namespace OpenAPI\n\n# 🚀 schema.yaml -> schema.ts [2ms]\n```\n\nThis will save a `schema.ts` file in the current folder under the TypeScript\n[namespace][namespace] `OpenAPI`. The CLI can accept YAML or JSON for the\ninput file.\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst swaggerToTS = require('@manifoldco/swagger-to-ts');\n\ngraphqlGen(spec, [options]);\n```\n\n`spec` must be in JSON format. For an example of converting YAML to JSON, see\nthe [generate.js](./scripts/generate.js) script.\n\n### Options\n\n| Name      | Default  | Description                                                |\n| :-------- | :------- | :--------------------------------------------------------- |\n| `output`  | (stdout) | Where should the output file be saved?                     |\n| `swagger` | `2`      | Which Swagger version to use. Currently only supports `2`. |\n\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n","readmeFilename":"README.md","gitHead":"51c373b080bcaa3d69a3eafb703faab6b6f1aa18","_id":"@manifoldco/swagger-to-ts@1.0.0-alpha.0","_nodeVersion":"11.6.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-jTcibfmPzKH+TgBQ8wlfpHKOIuAlxQf3R8cBBBGsACwoG7ap6KzY6QfDO0uIO5evoPfz75DV2nLl6BEgEQpolA==","shasum":"8bce72281535c30a5e8168e661648ca014f94be3","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.0.0-alpha.0.tgz","fileCount":7,"unpackedSize":23322,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUOo0CRA9TVsSAnZWagAA/vYP/ipBt+7C4rX66dZR0dVD\nDPCjQ1GK+GOgW5fVz9TY5uHkdRl+NLb/Q7pFQDLtEi2GZp8jYgKh3d7LZKor\nFe3H70ed5eo9xJMiza4+LbWttTeRiyUvYEpl+gdrK35Mpk2wmA/1+YPyiBDg\ni74ouw8ZguFTVWCEMUTuaRu6E3n6R+NkCeFal7duDlQVxTleRGsWu+8RqqAk\ntOfGKrSufdoDP1AWa3F3EP0oxRVN4ZKrnHGhC5PRol3dwuVM2fSxaoY6P7m4\nCZoFeFGcm5gItisFTdmj22Cqgmgorb8/viaw+6cVoU6xBqwtIvDS1dDJtosA\nm6x2FKmkwsXjKn29cvzePcZMxO6zNK+4gu+YpLjSo3opqE2I+VZyOqhUpr6o\nw2M39yggoQkcgfF76QhHJmGMI2hkjSEShLS3pSoSNi/4LR+4QZMeHkeY6D9l\nyiL00N9qIPT65I8UrRR5XZNF8/lH2wvay0kPISfCEYSf0Pao4ypr091kIkKa\njPFc6td6rKOxK9Mn791F2oOvOSfwDlQobEKVZytV56zCDNgggAn9TE4ecfnb\nDbz/Z9cY2LERPY4QIDw/FP663aja2by6gZg4UzitkhA17m6XgUzLiZdfmdGr\nksQ0bjRyp2GCSej4vbjqfpkWkFeAGEPHALNRjSARosfybFkcx1qKn33tQPXr\nvWAd\r\n=nv/e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCx5GbtCKX9QjpVPkvWFRx+gP9Dq1rOA0gwDLX8NSEDwAIgcN6P4365Blf+cGf+PWtLlyjPNv+YAp4QnVPf3RtrFOQ="}]},"maintainers":[{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"davidleger95@me.com","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.0.0-alpha.0_1548806707601_0.9001004452873471"},"_hasShrinkwrap":false},"1.0.0-alpha.1":{"name":"@manifoldco/swagger-to-ts","version":"1.0.0-alpha.1","description":"Generate TypeScript types from Swagger OpenAPI specs","main":"dist/cjs","engines":{"node":">= 8.0.0"},"bin":{"swagger-to-ts":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"keywords":["swagger","typescript","ts","openapi","node"],"author":{"name":"drew@pow.rs"},"license":"ISC","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","scripts":{"build":"node scripts/build","pregenerate":"npm run build","generate":"node scripts/generate","lint:js":"eslint --ignore-path .gitignore --ext .js src","prepublish":"npm run build","pretest":"npm run build","test":"jest"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^7.0.1","js-yaml":"^3.12.1","meow":"^5.0.0","prettier":"^1.16.1"},"devDependencies":{"@types/glob":"^7.1.1","@types/jest":"^23.3.13","@types/js-yaml":"^3.12.0","@types/prettier":"^1.15.2","eslint":"^5.12.1","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-import":"^2.15.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-prettier":"^3.0.0","eslint-plugin-react":"^7.12.4","jest":"^23.6.0","rollup":"^0.66.6","rollup-plugin-terser":"^4.0.2","rollup-plugin-typescript":"^1.0.0","ts-jest":"^23.10.5","tslib":"^1.9.3","typescript":"^3.2.4"},"peerDependencies":{"prettier":"^1.0.0"},"readme":"[![version (scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n\n# 📘️ swagger-to-ts\n\nConvert Swagger files to TypeScript interfaces using Node.js.\n\n💅 Prettifies output with [Prettier][prettier].\n\n## Usage\n\n### CLI\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --output schema.ts --namespace OpenAPI\n\n# 🚀 schema.yaml -> schema.ts [2ms]\n```\n\nThis will save a `schema.ts` file in the current folder under the TypeScript\n[namespace][namespace] `OpenAPI`. The CLI can accept YAML or JSON for the\ninput file.\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst swaggerToTS = require('@manifoldco/swagger-to-ts');\n\ngraphqlGen(spec, [options]);\n```\n\n`spec` must be in JSON format. For an example of converting YAML to JSON, see\nthe [generate.js](./scripts/generate.js) script.\n\n### Options\n\n| Name      | Default  | Description                                                |\n| :-------- | :------- | :--------------------------------------------------------- |\n| `output`  | (stdout) | Where should the output file be saved?                     |\n| `swagger` | `2`      | Which Swagger version to use. Currently only supports `2`. |\n\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n","readmeFilename":"README.md","gitHead":"7bb608d54ad02e307795f05866e6dc3e31f111b0","_id":"@manifoldco/swagger-to-ts@1.0.0-alpha.1","_nodeVersion":"11.6.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-cqZG27LfEbPxOX0u/t+sc0tX6KjR7A8e228hJ3ISWp0N6xs8moFVZjdY9m/Na9w7RTRlBJkp9zgsWV6W16pMtg==","shasum":"44ce90e226af1db4f30e2ad57a5344199a90bde3","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.0.0-alpha.1.tgz","fileCount":7,"unpackedSize":23372,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUOrcCRA9TVsSAnZWagAAIl0P/0vLb8ALMrKN5Bip6F9x\nQfb076NmRzvUW6eH/1SMC/Ii4YJL6tntg7tNbZQ3AdlPGR7wRTCHIYyogKnY\nD6bA/EX8ud6dN23XFCMlyunvxPfbfZkum+3eRMH2PW6qspMG12Su5bytN4Vu\nozcIsToUDTI+QGIRuMVPI3VVSGvXD3sRz3P3//s2pLDTzSF+7ZL2dn8wTNPc\nOTRxUYBVRFajZOp9CDsnXoMppometuuzYtPUMr8uBxRmzuhfkmYNUhwfEQgs\npurvA19w3NYd5vIrUd9uWsgwNaWWwmzv2khu+dALSTKaL4vkAHAT/GO5NZSv\nlP2xkr+fwl0JfJeYb0qJnCtNEV0q0jF/wCU8AfJPGMjdZm1m9Du338n9U+qr\neMtRWmuaJDzt073EwZKGFiPhyrj5vZE2JYAan+Kq9iDP2cFNQTpUg6o0F7V9\nfqsNKyDb8d0a3tV1GTXdy8C4pZqm1RC2E7CDEwYtv2g9wYhCxFR2rK8dqq/Z\n1I4PVmdWTpaLS3qLc8tpQh14Oz3aZNa8D1wF6NGDzBUWuaF/g34+sUOUCh9N\n/ezoB6BT2wWelZXwxs9YmRWoTgL6QHaIO0jBBNeEFuzkzdpBr3AbbUsBckPR\nI0J+6XEHRW3J8iSSK9LVs5LfMez50tvswRBQUfRRYBTl5VLlM4GQsyXJedCT\nQWVI\r\n=fOaG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSU+ybKqDcrEvi5IQUaCg8Gk6ct34nKzt2PpxAMXnmhgIgC9tNZ5fpk3b5UW2gUUsJv9Mn2bIpCLoAe+MDSxNyRuw="}]},"maintainers":[{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"davidleger95@me.com","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.0.0-alpha.1_1548806875820_0.37506368831669"},"_hasShrinkwrap":false},"1.0.0":{"name":"@manifoldco/swagger-to-ts","version":"1.0.0","description":"Generate TypeScript types from Swagger OpenAPI specs","main":"dist/cjs","engines":{"node":">= 8.0.0"},"bin":{"swagger-to-ts":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"keywords":["swagger","typescript","ts","openapi","node"],"author":{"name":"drew@pow.rs"},"license":"ISC","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","scripts":{"build":"node scripts/build","pregenerate":"npm run build","generate":"node scripts/generate","lint:js":"eslint --ignore-path .gitignore --ext .js src","prepublish":"npm run build","pretest":"npm run build","test":"jest"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^7.0.1","js-yaml":"^3.12.1","meow":"^5.0.0","prettier":"^1.16.1"},"devDependencies":{"@types/glob":"^7.1.1","@types/jest":"^23.3.13","@types/js-yaml":"^3.12.0","@types/prettier":"^1.15.2","eslint":"^5.12.1","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-import":"^2.15.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-prettier":"^3.0.0","eslint-plugin-react":"^7.12.4","jest":"^23.6.0","rollup":"^0.66.6","rollup-plugin-terser":"^4.0.2","rollup-plugin-typescript":"^1.0.0","ts-jest":"^23.10.5","tslib":"^1.9.3","typescript":"^3.2.4"},"peerDependencies":{"prettier":"^1.0.0"},"gitHead":"02628a07396af184c0cb857138e544582304be3f","_id":"@manifoldco/swagger-to-ts@1.0.0","_nodeVersion":"11.6.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-62BDvR0oqBz2+EpQqRUoa8eEdzqC9DV1F9wQKG5ERXGqzmSPh5y7x7Y864X2KVYmh0ZyO6eHOwGajJkLtriqnQ==","shasum":"f1fba3238b461edcd423e80c869b108ab18aa09f","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.0.0.tgz","fileCount":7,"unpackedSize":23516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcURH+CRA9TVsSAnZWagAA06QP/RWJLu7FPcwozBnymlYl\n4wnG0d+u3EZXZP7KwoO7K41BiA2lHa/isuYRKTnm7j5vF6Y52q4YGu4D9Ebe\nadtPDRVqHIkMv+mtKue5iPaztF8tQv28lQnh8M/WeLgDlYURQJh03QTIfAS7\ncUDsFxmmCbk70clmmvHX7VwNdmVZX7SII4yPmff1tYAd+iRW8IjNRcRu/zg6\nuIVAAhboKo7taBKmww7kAq1XvLTA03OGFrCH/DGHeNmFUSoa4ud3D6KZDKPx\nyl+NtceMMQJ/X7xXyfufAkPDBZQFuvdjrmuiWfAHy+2ccmojAjAogoMTmEvG\nIh3F+Y/0Hg3F2zl1XS91Sn9/4mV9CqiVM5fBcwS1bFwSFyaqW9MUimrhcFXQ\nvX+TxfMwZ48ONVvem7VMK40RcPjg9Aj3qoLgJyF4+sw5o5YAF32eQp8WXlZS\n23qLaFqslu4gED6C7OrazTGFlW5JXYkyeneED50BayfYC9tvTTpKtKzgnUKe\nXxHPsrW1gyAiTlPg0PsanvwefZprav3gf4fWPoLPcn+nEVWDrgBwUcW6SJkq\nHd/xIfMUzh7h+JawvIeCdI/M1hssqanOAkpbKPr2GPNeHktFKhfbKrqo8EU4\nTHW2Mi8cPyQ7+btxU6eG45oQ+naXLEd1rCJ7Pnpy/rOPi7nwzX7MTH05EHUL\noWxX\r\n=CsPY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfNqieIpJTrnQxNyeRlEqQd+eX7nTnK2BWDGT+SoC/ZQIhAPV3GJuoGBE0OmDzs3GrPJU3+/EGKipaoG3o9s2WFzig"}]},"maintainers":[{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"davidleger95@me.com","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.0.0_1548816894194_0.2607240501428909"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.0.1":{"name":"@manifoldco/swagger-to-ts","version":"1.0.1","description":"Generate TypeScript types from Swagger OpenAPI specs","main":"dist/cjs","engines":{"node":">= 8.0.0"},"bin":{"swagger-to-ts":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"keywords":["swagger","typescript","ts","openapi","node"],"author":{"name":"drew@pow.rs"},"license":"ISC","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","scripts":{"build":"node scripts/build","pregenerate":"npm run build","generate":"node scripts/generate","lint:js":"eslint --ignore-path .gitignore --ext .js src","prepublish":"npm run build","pretest":"npm run build","test":"jest"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^7.0.1","js-yaml":"^3.12.1","meow":"^5.0.0","prettier":"^1.16.1"},"devDependencies":{"@types/glob":"^7.1.1","@types/jest":"^23.3.13","@types/js-yaml":"^3.12.0","@types/prettier":"^1.15.2","eslint":"^5.12.1","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-import":"^2.15.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-prettier":"^3.0.0","eslint-plugin-react":"^7.12.4","jest":"^23.6.0","rollup":"^0.66.6","rollup-plugin-terser":"^4.0.2","rollup-plugin-typescript":"^1.0.0","ts-jest":"^23.10.5","tslib":"^1.9.3","typescript":"^3.2.4"},"peerDependencies":{"prettier":"^1.0.0"},"gitHead":"485b60aa05dc79e4acda71bc28aa43f215fb0c2d","_id":"@manifoldco/swagger-to-ts@1.0.1","_npmVersion":"6.5.0-next.0","_nodeVersion":"11.6.0","_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"dist":{"integrity":"sha512-b39vf2GZgPZSyzm5zTm5BPgsZfkzd4za+GjqJ2wRweA8U4qSBHsRN3+GycxQr74oMYTCEl4uMhhFEY/0HP64UA==","shasum":"6674f6c50598d4d8a8063a14d449861e33184423","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.0.1.tgz","fileCount":7,"unpackedSize":23850,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcURWECRA9TVsSAnZWagAAf4kP/Ri5qjHqBnYebT+Nq0SD\nHq36ct+frFRWeU1zSteKrD/tVwiEMWx2zx/8Fw2XseOGcc4TQgUP2ByQ6BZe\n8/u6EInqLTbvP/RB7JVhAThwKIEYaV3jegHpLhDL0/ScYUEGShQugkHM4CJq\nBdIXUzaId5JU9MYTemQnBv2IR3YPJxhaH50yk2RdB/MnGlw8ERjVV9SjeM/E\ncy6b9+YkH1nY07eMnmR6is/eaRpfqRUdTMFRP/bG0THP+PJperB7MDbHMfCe\n8l8uTb3oxvnSR/KP7b763eGarrBPBjfUcK4FKocz0VHftmQFZGKO4IHu7akd\nU0aNgsFWLMIBfZUw5Dvx/1T/BEMfOibgzazExJz2auHLmOIWbn7sXY3J7vs2\nQZH9yv01PFCBkdSRyetscyT55SBvF5ninv5gSwNf0ONvjJTflbKVt6a/PQQ2\nMMcIv/wvnLsK5GbYMbZzowYuAHaywl+uHc06nq1OE2blMw9rap1WAClHUj9E\nqlT5cj6ylZI91zC7upGih1wMyKDz6BLj9aNoQ8yDWMPB41Pew4yb18E8+4/u\nWe/tdiaqdgCaf5yxxNqRWqA2XtMpX7krHkRzasI6jja0FVQh5DZ5DBN3s0xn\nYkccNI2sY5iCjWY69BE/arEqa1x04YR8zT/PPC458SwXkzTRGXd8MXcCd60K\nAwv7\r\n=0yD4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE3JNzOn8tE/ien7IacV+8iIWdxOkrVqMFKh5NepK4OdAiBmAiolS16vCFZyvaoOY81e5kcZsaSUwJgFHHR+cPKg5Q=="}]},"maintainers":[{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"davidleger95@me.com","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.0.1_1548817796107_0.5974301466721148"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.0.2":{"name":"@manifoldco/swagger-to-ts","version":"1.0.2","description":"Generate TypeScript types from Swagger OpenAPI specs","main":"dist/cjs","engines":{"node":">= 8.0.0"},"bin":{"swagger-to-ts":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"keywords":["swagger","typescript","ts","openapi","node"],"author":{"name":"drew@pow.rs"},"license":"ISC","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","scripts":{"build":"node scripts/build","pregenerate":"npm run build","generate":"node scripts/generate","lint:js":"eslint --ignore-path .gitignore --ext .js,.ts src","prepublish":"npm run build","pretest":"npm run build","test":"jest","test:coverage":"jest --coverage"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^7.0.1","js-yaml":"^3.12.1","meow":"^5.0.0","prettier":"^1.16.1"},"devDependencies":{"@types/glob":"^7.1.1","@types/jest":"^23.3.13","@types/js-yaml":"^3.12.0","@types/prettier":"^1.15.2","@typescript-eslint/parser":"^1.1.1","eslint":"^5.12.1","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-import":"^2.15.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-prettier":"^3.0.0","eslint-plugin-react":"^7.12.4","jest":"^23.6.0","rollup":"^0.66.6","rollup-plugin-terser":"^4.0.2","rollup-plugin-typescript":"^1.0.0","ts-jest":"^23.10.5","tslib":"^1.9.3","typescript":"^3.2.4"},"peerDependencies":{"prettier":"^1.0.0"},"gitHead":"7d28a0d070cd1e73596fd8585320edf4952a8fe1","_id":"@manifoldco/swagger-to-ts@1.0.2","_nodeVersion":"11.6.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-dTFF3cfl0/YuraxSVDwj5PgXzR7mbxd8I8rmEFo4atrn/1Xvz/VnjMa6CL+hoYS9+dndrAjE+VI6bRrTgQi/Gw==","shasum":"4a92f3b55982aeb7db19f0116aea4a8dcb7fa07e","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.0.2.tgz","fileCount":7,"unpackedSize":24618,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUjOrCRA9TVsSAnZWagAAwfEP/29TvZrdPmnudWUyP6B3\n2XDDZidiGQdaC/aaRugqfl5wC2vP8egdHRnHdTqhxDcs+RMsPwrvlUr19Y6J\nv8NxrNoTrOu9yIGqLEQnmXH+w2i25hcMHynkHIik4u/bt1uWipCXX7s40Rgh\nl+hHeISJteoxrCZzvwlw5T4vf/V0MZOzZUNVKnLV489geyWmUQh4zg5Qi4jt\n+QceSHV+PiJvdvAMC5jbO9WcIw/7nuFEtF5PQuHXEHE7Q92zyKrWZapSlfBb\n8w3iojyaeBkrRJiP+KzxdhRB7w6YdRWkDmsi0GAQhTErFXM565PS4rTHw5ID\n123G9gqEph/9/5YocdY6Ffd0NliUfzCqlBqXGtsgUr5dgCNt5HCgAnyMAkRM\nmxpGSCUIe+pk+Q+ekJ/YQBIFO5KLrjx1+E+6uZ6fiVPJjjoayKaG/qIDcymc\nWhKAaUTeooTbzGo2vsgRy7Cy5VWUubr32YddHwo8udFZzKsDeo+Yt8CsX2A1\n6/CAb4m7xRTTsJ9Q4KEfSKWUS1UTX3fpk/BzzmVYcwUus4skJAS9V8GVuBJ0\nDNU1FFF/go3ol/uZhirz2o+ThU4Xwt0+R5gdw19Rk0MvQcYj7QREEg/Mco5B\nRaLqIs7EEtvJuPUTRa+3842Xh56ecktw1VGQ+x71kkGAUFVtN0JymLiIJWgM\nDcWJ\r\n=ed26\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEAdvRDvzdROHTf6fQDdI1fDFu00e56cdNZQGVNNmnzaAiEAkbeyLJNIX2fIONNS5L22Zk7vafmyK7CqmYvsfanQAXI="}]},"maintainers":[{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"davidleger95@me.com","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.0.2_1548891050920_0.5676772587739365"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.0.3":{"name":"@manifoldco/swagger-to-ts","version":"1.0.3","description":"Generate TypeScript types from Swagger OpenAPI specs","main":"dist/cjs","engines":{"node":">= 8.0.0"},"bin":{"swagger-to-ts":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"keywords":["swagger","typescript","ts","openapi","node"],"author":{"name":"drew@pow.rs"},"license":"ISC","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","scripts":{"build":"node scripts/build","pregenerate":"npm run build","generate":"node scripts/generate","lint:js":"eslint --ignore-path .gitignore --ext .js,.ts src","prepublish":"npm run build","pretest":"npm run build","test":"jest","test:coverage":"jest --coverage"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^7.0.1","js-yaml":"^3.12.1","meow":"^5.0.0","prettier":"^1.16.1"},"devDependencies":{"@types/glob":"^7.1.1","@types/jest":"^23.3.13","@types/js-yaml":"^3.12.0","@types/prettier":"^1.15.2","@typescript-eslint/parser":"^1.1.1","eslint":"^5.12.1","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-import":"^2.15.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-prettier":"^3.0.0","eslint-plugin-react":"^7.12.4","jest":"^23.6.0","rollup":"^0.66.6","rollup-plugin-terser":"^4.0.2","rollup-plugin-typescript":"^1.0.0","ts-jest":"^23.10.5","tslib":"^1.9.3","typescript":"^3.2.4"},"peerDependencies":{"prettier":"^1.0.0"},"gitHead":"6e9d3c83fa08fe7f99057d659f4ea787eb826aad","_id":"@manifoldco/swagger-to-ts@1.0.3","_npmVersion":"5.10.0","_nodeVersion":"9.5.0","_npmUser":{"name":"enmand","email":"enmand@gmail.com"},"dist":{"integrity":"sha512-vXGVBLXnrnbOskJSnf6oPA4ncx5av0e1KyhfXGLrUfu1dRIQjqSUxJ5mzYJLtjD1GKlzICZ9m0es63df6ewtlQ==","shasum":"fc629f7b563c3dc7b939275c9f81f77c6d75789c","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.0.3.tgz","fileCount":5,"unpackedSize":15699,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbyF1CRA9TVsSAnZWagAAs8oP/1BbOQleOcZ2GIqqtRpg\nvnpxBEwf4bEGTF0X4PYogqiE26P12A1gyer+58MSgHKh8h/54S+KKaBNXmBp\ntIvcdjiDO4jA8bJWLl1L0e/xrTj9hWmtGmSFHvtDHUbR7wJawkVr/6hqDF0q\nEvyjECyufcY+rZTvMo6JiBaHkl0bZEpIr6mE1bAmn7Q8CVAUEk7cb72B9ZYx\nMB8vUMtof/b3XP1yPD+5VGhrJmiG+8/XNVkO7cK9OG3/WbWlAhsDYjURM/qZ\niI8cDaiA7MsFcnTZ7Czh8+tPfimV9PSFlpbBnz/w9B6HGNR5r1UdkHXfEFcf\n7Gx0/BWt3fqiWc00qT7UZ+/n4rVDEc83IRumTZS0zXwN9iYfrpbmLMeHtsnT\npjjkq8QnzJTnKp31moCt/d2fI3OOzkC4lWQPeEB7rKyMFZTIyvwNNm+W/vo7\ngXn6A4EXYBowYl6YV+y607W5/6KVrDJQmP1tF0uSZSb3JcowyR/uWiEWxIGd\n/Q80h7vs49PYQPaP1FzUGQ4psK0vDmrxtOxRJXyl1IVKjpVE/T6ZiNRbdLCg\na+xVYYp21he3ZV18fbtb+GFWRg96Ta3GS5B6jb7wArlhYoO6tlN7wUmB4YfE\nkvkJGcrqrG2TpCOkIGYRFko91eueQmdtpvFZasfUb/lhz6ZzsCwKyarVQSZ5\nwj+k\r\n=qo6p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICr8lYfu+uumsGFp6RRn3bII/4QG0JMkSuQGY33BfyUwAiAV4R8cO/cxW9zGTqlFvipr+VRr6WHgfvgGc9m9HTHhTQ=="}]},"maintainers":[{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"davidleger95@me.com","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.0.3_1550786932560_0.8506977966066196"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.0.4":{"name":"@manifoldco/swagger-to-ts","version":"1.0.4","description":"Generate TypeScript types from Swagger OpenAPI specs","main":"dist/cjs","engines":{"node":">= 8.0.0"},"bin":{"swagger-to-ts":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"keywords":["swagger","typescript","ts","openapi","node"],"author":{"name":"drew@pow.rs"},"license":"ISC","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","scripts":{"build":"node scripts/build","pregenerate":"npm run build","generate":"node scripts/generate","lint:js":"eslint --ignore-path .gitignore --ext .js,.ts src","prepublish":"npm run build","pretest":"npm run build","test":"jest","test:coverage":"jest --coverage"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^7.0.1","js-yaml":"^3.12.1","meow":"^5.0.0","prettier":"^1.16.1"},"devDependencies":{"@types/glob":"^7.1.1","@types/jest":"^23.3.13","@types/js-yaml":"^3.12.0","@types/prettier":"^1.15.2","@typescript-eslint/parser":"^1.1.1","eslint":"^5.12.1","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-import":"^2.15.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-prettier":"^3.0.0","eslint-plugin-react":"^7.12.4","jest":"^23.6.0","rollup":"^0.66.6","rollup-plugin-terser":"^4.0.2","rollup-plugin-typescript":"^1.0.0","ts-jest":"^23.10.5","tslib":"^1.9.3","typescript":"^3.2.4"},"peerDependencies":{"prettier":"^1.0.0"},"gitHead":"643452456e346f09b9c3db6c2d89995b13b8056f","_id":"@manifoldco/swagger-to-ts@1.0.4","_npmVersion":"5.10.0","_nodeVersion":"9.5.0","_npmUser":{"name":"enmand","email":"enmand@gmail.com"},"dist":{"integrity":"sha512-nMNaGA+JRedy8HtNL/SoQJyyvFKOq/R8lt2tMr/ml9v0I3OtiXG6ZQ4p1AxAwfR92QzpE354wuB5faCQMLpx5A==","shasum":"bb896c46fae834f3b0d49ff11fdeec03b27ae184","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.0.4.tgz","fileCount":5,"unpackedSize":16566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJccC66CRA9TVsSAnZWagAAWH8P/3f93ekBnVypU16hQJAQ\nnv6o96T8KtP1MUlOSCX9sMu5kmWuLf5hX8ajvC5W7pTPidRV8xsz5HtVZJ/k\nvyEyvgqq1iJVWqwecNG3djk6s70SOxFbpQYuPpo9lNrWsTkx8EwTYDe8UJhe\nffu1/CYdGIPoV/8cU7+yqDb11MsRK8w9MjBv/KFvdMwlLV/TKpRuDGwuBtjQ\n/wSjM6JkELoluuWrmEvA3j7owOLEbv5SgG1KwRlnOFF1hKoFzvp4GeYGrEt6\nWXYLsTg6WLwaRXZq83Lvl+/yASlk5gMfKw2crOh8wcLnB7dZOPYIVQj2HWZS\nzID009triHHXpd1cVErm8quOFOddTgOEXSetYYPfMb+bg80gBHeEThZoj0hL\ngRL64+yBoX2SFhJPk/MhE9fu+ZVLX8zGnYxtZBHzV9ErusLxc4TwYsKdj60X\nygNNvAjOyVRGHkR2fy6KccpuAO8KG3Mm1ubsOnmY8Hd73MCSE1R+62YW8glK\n5LrCighuHaUL3SYnxj1VtenJCRC9qpqqQ5kx2qjFpRXlaC+6JvOVyejSDr6U\ntgyjhQvGmJodXLEBcvVThE8asI5YDG8KqhGnAcZfeJ00/Se/wNJnPa08xaEn\nZf5tWhCXU7Wi71UnT/UtUAHKUi2d3MYc2gej4Jnxc80ijFkxkLLVRnhxVx/F\nveH/\r\n=biPJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvMtZ88vwJnFRz35jrUoqJwV0kXU7GAvevlmKn/lMyhgIhAJ8E2S31JEvc5rQOzX7fuX3Da62evwsJ/G0E30984HA/"}]},"maintainers":[{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"davidleger95@me.com","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.0.4_1550855866220_0.30253138656542755"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.1.0-rc.0":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.1.0-rc.0","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^7.0.1","js-yaml":"^3.12.1","meow":"^5.0.0","prettier":"^1.16.4"},"peerDependencies":{"prettier":"^1.0.0"},"devDependencies":{"@pika/pack":"^0.3.5","@pika/plugin-build-node":"^0.3.14","@pika/plugin-copy-assets":"^0.3.14","@pika/plugin-ts-standard-pkg":"^0.3.14","@types/glob":"^7.1.1","@types/jest":"^24.0.11","@types/js-yaml":"^3.12.0","@types/prettier":"^1.15.2","@typescript-eslint/parser":"^1.1.1","eslint":"^5.12.1","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-import":"^2.15.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-prettier":"^3.0.0","eslint-plugin-react":"^7.12.4","jest":"^24.5.0","ts-jest":"^24.0.0","tslib":"^1.9.3","typescript":"^3.3.3333"},"engines":{"node":">= 8.0.0"},"readme":"[![version (scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n\n# 📘️ swagger-to-ts\n\nConvert Swagger files to TypeScript interfaces using Node.js.\n\n💅 Prettifies output with [Prettier][prettier].\n\n| OpenAPI Feature   | TypeScript equivalent |\n| :---------------- | :-------------------: |\n| `type: 'string'`  |       `string`        |\n| `type: 'number'`  |       `number`        |\n| `type: 'integer'` |       `number`        |\n| `allOf`           | `TypeB extends TypeA` |\n| `oneOf`           |   `TypeA \\| TypeB`    |\n| `required`        |    (not optional)     |\n\nTo compare actual generated output, see the [example](./example) folder.\n\n## Usage\n\n### CLI\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --namespace OpenAPI --output schema.ts\n\n# 🚀 schema.yaml -> schema.ts [2ms]\n```\n\nThis will save a `schema.ts` file in the current folder under the TypeScript\n[namespace][namespace] `OpenAPI` (namespaces are required because chances of\ncollision among specs is highly likely). The CLI can accept YAML or JSON for\nthe input file.\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst swaggerToTS = require('@manifoldco/swagger-to-ts');\n\nswaggerToTS(spec, [options]);\n```\n\n`spec` must be in JSON format. For an example of converting YAML to JSON, see\nthe [generate.js](./scripts/generate.js) script.\n\n### Options\n\n| Name        | Default    | Description                                                                                          |\n| :---------- | :--------- | :--------------------------------------------------------------------------------------------------- |\n| `output`    | (stdout)   | Where should the output file be saved?                                                               |\n| `namespace` | `OpenAPI2` | How should the output be namespaced? (namespacing is enforced as there’s a high chance of collision) |\n| `camelcase` | `false`    | Convert `snake_case` properties to `camelCase`                                                       |\n| `swagger`   | `2`        | Which Swagger version to use. Currently only supports `2`.                                           |\n\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n","readmeFilename":"README.md","_id":"@manifoldco/swagger-to-ts@1.1.0-rc.0","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-PfEWK7GFnHGWZ522gr9t/GrFj/mSLA1/yxq7oeb6oDoGeNnXGnlivLBX2g1MDIvBfeEZlrOjGUgKam0l5ZrhtA==","shasum":"58a03fe5b3db63724ea6e97d0d35c5a59757ffea","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.1.0-rc.0.tgz","fileCount":10,"unpackedSize":26740,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJckUiTCRA9TVsSAnZWagAA/YkP/0JdT1iXhGerFAxqSFrP\nr3iakQg1HPMJSzx5xAFfV1aIKmmLKsroG8LB2n721lzIKwginBqLYFNkyeHV\n8AXI41Y7UhxZK7r3pqtdI+9hWnaeipsCEcCErkIBpPzrkSiwVGZRIeiYgWyC\n3ORfLb/xno4yUs5KsMfCNpIce33ItrjN8ZeSPlEd9QBNLoLuwgR9sTqyF51v\nhGAeAK66b09zKL/sljzrpjlugrRwnqEMc63y79swuLn5/UM9jFJU6+Iu990M\nTnE8d47ar80cSXEt6JIdFCARjbGjKGgleUlUG7/vcbWvVKLKcgp1L4lvFrmN\nf9P+0LE/fG2UEOgb1OkbmlWk0ldXcNFxGwDGVL2IT5F5eOuJ/M7QxMQIRRzT\nGqh0RtAx0lb/f9ubqj6Q6af7kqtbXkTbHdmwoX0eX+WODfhzrhY38uNzPWtB\nsLBfsc8bnRO3PtHrs5+rSzySCLSN2NRm1PWijLhMxS8PB8J29QfJgI+7VLaM\nNL9ms1nshvJxagzvIgDl7dtNXQIx3AI/QZbVox1eZ420M1A9xUF4tX5N/Ruj\nxCfPJN2xvhRzu5MxznS4rXRPlyuEzLEQ8S7FBbvGJzoHja1Zt9Xl8xZNlBbW\nSRi8LcMR+slNEzc3WcUOfO2x4B8mOsvWz75D7E8UJ2dc0ACPPZFNPBSnPiVs\nMeiA\r\n=6HNg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDntSvgyRqJz1EHB/RKn088Go3DJ4N5nfEkXG85V/I5kQIgQyn8BqM9KbMR6rx1jzy1QN32/nUpSw3lFl2f9P+OneM="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.1.0-rc.0_1553025170399_0.02829537704021612"},"_hasShrinkwrap":false},"1.1.1":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.1.1","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^7.0.1","js-yaml":"^3.12.1","meow":"^5.0.0","prettier":"^1.16.4"},"peerDependencies":{"prettier":"^1.0.0"},"devDependencies":{"@pika/pack":"^0.3.5","@pika/plugin-build-node":"^0.3.14","@pika/plugin-copy-assets":"^0.3.14","@pika/plugin-ts-standard-pkg":"^0.3.14","@types/glob":"^7.1.1","@types/jest":"^24.0.11","@types/js-yaml":"^3.12.0","@types/prettier":"^1.15.2","@typescript-eslint/parser":"^1.1.1","eslint":"^5.12.1","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-import":"^2.15.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-prettier":"^3.0.0","eslint-plugin-react":"^7.12.4","jest":"^24.5.0","ts-jest":"^24.0.0","tslib":"^1.9.3","typescript":"^3.3.3333"},"engines":{"node":">= 8.0.0"},"_id":"@manifoldco/swagger-to-ts@1.1.1","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-WPXpmyKSh14FJZN7c5fW/ampgCbICaUgwWpx0D+SaZ/131IT6GZ1LCrAESPJ7dsTlGBbkBsTsS5S/NJm8fsZqA==","shasum":"78772eb47fbbd46d386c96509a986528f826af1f","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.1.1.tgz","fileCount":10,"unpackedSize":24568,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJckVDGCRA9TVsSAnZWagAAyFcP/ihKEOEAmxiE4lv+VNtu\n3gWyIiR0YbfIOxVwB/835W/+IWMIMDwQb2UiW1D+fGIdUPRoQzpkZ7Kribws\nKNv3AR570lUgKX6SoBiTj8EtWYwBLf8gGFb7eBbS8OhLYYCqUEAGQ76SBeCb\n5UGY8IRT1fWFJ02ABkmF48W4ML98p6+Z6U7Q6gLsC3CDs7UPC9HjIgGrejwz\nPn2CMRySzIhIIFm3PE0Gcg8OBBx/8Y0KL8yuPX7WrVATZQ7Z1hmMAIimZIZb\no6b+w34s/dvxwtYPloazOts3uLnO2tjpLOdTGey4QmVCggc0YWvWbNFXobn4\ncTDOlFWJZoOj7/JHtnGEP4YNw0qQvRNGqjuI423lmeO0VEhGMzO7IZQE/HMY\nEcTz07F7nXgR1Edd53vY/MuxX6AbIwi6RtF/Cry6WEk7rsMzNdwwoflYkdH5\nFVsCq7/Q6zS4+QTpSC1sZe0VNnI0my6JJVqXpl6UbuO5LS6h0g3ktw2W2YvD\ndj0mpl74OdLImtHpHq+fK/lzI/QMN5tnXpTEIyhV+R2G/4wwJsz/9AcEN7If\nmlOQT5vWDdi3eIMDhPgeC1NDIYoRI0sA9iLqaBtkdss2ifpPDrPvyDdkBJ72\nCYD1zz7Z9VZYip5TH9dfz+iq9VPib87jKNsL9yC+RPjTEtlZ0WO+kzdE37tZ\nzm3s\r\n=VaWI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCS/84c1Z+qe2uLkUB0+yVHJQMuVpSipSU+cDoiJbxvowIgPa8HYRvpXhRtibUEpQqQfUjoU3kusmzKG2izq3gKSI4="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.1.1_1553027270124_0.31845243441528703"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.1.2-0":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.1.2-0","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^7.0.1","js-yaml":"^3.12.1","meow":"^5.0.0","prettier":"^1.16.4"},"peerDependencies":{"prettier":"^1.0.0"},"devDependencies":{"@pika/pack":"^0.3.5","@pika/plugin-build-node":"^0.3.14","@pika/plugin-copy-assets":"^0.3.14","@pika/plugin-ts-standard-pkg":"^0.3.14","@types/glob":"^7.1.1","@types/jest":"^24.0.11","@types/js-yaml":"^3.12.0","@types/prettier":"^1.15.2","@typescript-eslint/parser":"^1.1.1","eslint":"^5.12.1","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^2.10.0","eslint-plugin-import":"^2.15.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-prettier":"^3.0.0","eslint-plugin-react":"^7.12.4","jest":"^24.5.0","ts-jest":"^24.0.0","tslib":"^1.9.3","typescript":"^3.3.3333"},"engines":{"node":">= 8.0.0"},"readme":"[![version\n(scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n[![codecov](https://codecov.io/gh/manifoldco/swagger-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/manifoldco/swagger-to-ts)\n\n# 📘️ swagger-to-ts\n\nConvert Swagger files to TypeScript interfaces using Node.js.\n\n💅 Prettifies output with [Prettier][prettier].\n\n| OpenAPI Feature   | TypeScript equivalent |\n| :---------------- | :-------------------: |\n| `type: 'string'`  |       `string`        |\n| `type: 'number'`  |       `number`        |\n| `type: 'integer'` |       `number`        |\n| `allOf`           | `TypeB extends TypeA` |\n| `oneOf`           |   `TypeA \\| TypeB`    |\n| `required`        |    (not optional)     |\n| `enum`            |     `'a' \\| 'b'`      |\n\nTo compare actual generated output, see the [example](./example) folder.\n\n## Usage\n\n### CLI\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --namespace OpenAPI --output schema.ts\n\n# 🚀 schema.yaml -> schema.ts [2ms]\n```\n\nThis will save a `schema.ts` file in the current folder under the TypeScript\n[namespace][namespace] `OpenAPI` (namespaces are required because chances of\ncollision among specs is highly likely). The CLI can accept YAML or JSON for\nthe input file.\n\n#### CamelCasing properties\n\nWithin interfaces, you may want to convert `snake_case` properties to\n`camelCase` by adding the `--camelcase` flag:\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --camelcase --namespace OpenAPI --output schema.ts\n\n# 🚀 schema.yaml -> schema.ts [2ms]\n```\n\n#### Generating multiple schemas\n\nSay you have multiple schemas you need to parse. I’ve found the simplest way\nto do that is to use npm scripts. In your `package.json`, you can do\nsomething like the following:\n\n```json\n\"scripts\": {\n  \"generate:specs\": \"npm run generate:specs:one && npm run generate:specs:two\",\n  \"generate:specs:one\": \"npx @manifoldco/swagger-to-ts one.yaml -o one.ts\",\n  \"generate:specs:two\": \"npx @manifoldco/swagger-to-ts two.yaml -o two.ts\"\n}\n```\n\nRinse and repeat for more specs.\n\nFor anything more complicated, or for generating specs dynamically, you can\nalso use the Node API (below).\n\n#### CLI Options\n\n| Option                | Alias |  Default   | Description                                                                                          |\n| :-------------------- | :---- | :--------: | :--------------------------------------------------------------------------------------------------- |\n| `--output [location]` | `-o`  |  (stdout)  | Where should the output file be saved?                                                               |\n| `--namespace [name]`  | `-n`  | `OpenAPI2` | How should the output be namespaced? (namespacing is enforced as there’s a high chance of collision) |\n| `--swagger [version]` | `-s`  |    `2`     | Which Swagger version to use. Currently only supports `2`.                                           |\n| `--camelcase`         | `-c`  |  `false`   | Convert `snake_case` properties to `camelCase`?                                                      |\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst { readFileSync } = require('fs');\nconst swaggerToTS = require('@manifoldco/swagger-to-ts');\n\nconst input = JSON.parse(readFileSync('spec.json', 'utf8')); // Input be any JS object (OpenAPI format)\nconst output = swaggerToTS(input, { namespace: 'MySpec' }); // Outputs TypeScript defs as a string (to be parsed, or written to a file)\n```\n\nThe Node API is a bit more flexible: it will only take a JS object as input\n(OpenAPI format), and return a string of TS definitions. This lets you pull\nfrom any source (a Swagger server, local files, etc.), and similarly lets put\nthe output anywhere. It even allows for some post-processing in-between if\ndesired.\n\nIf you are working with local files, you’ll have to read/write files\nyourself. Also, if your specs are in YAML, you’ll have to convert them to JS\nobjects. A library such as [js-yaml][js-yaml] does make this trivial, though!\nLastly, if you’re batching large folders of specs, [glob][glob] may also come\nin handy.\n\n#### Node Options\n\n| Name        |   Type    |  Default   | Description                                                                                          |\n| :---------- | :-------: | :--------: | :--------------------------------------------------------------------------------------------------- |\n| `namespace` | `string`  | `OpenAPI2` | How should the output be namespaced? (namespacing is enforced as there’s a high chance of collision) |\n| `swagger`   | `number`  |    `2`     | Which Swagger version to use. Currently only supports `2`.                                           |\n| `camelcase` | `boolean` |  `false`   | Convert `snake_case` properties to `camelCase`                                                       |\n\n[glob]: https://www.npmjs.com/package/glob\n[js-yaml]: https://www.npmjs.com/package/js-yaml\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n","readmeFilename":"README.md","_id":"@manifoldco/swagger-to-ts@1.1.2-0","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-B+9MCmlbM0BGrOvw8eCo2W14s+JvlfnRbXpWDwtS6Lm5QGFJq2rMqDKAXJaGfR+KdzF3zltb3t8WhvpXJ2JWWA==","shasum":"baa8876d3c453601b9484e9230b3ec653425f6ea","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.1.2-0.tgz","fileCount":10,"unpackedSize":27363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJclFjJCRA9TVsSAnZWagAAkRIP/1N0iAIcfQeXxOO9/V/O\nlu9lPDcH9+cK721uEeumTxhetu1BJGguuhc39GGHiZwi0oJS3zR2U6hThy/H\nNqlYe52XmCZwxdX0wyhgMXTbsbzLldloMs0OoP+6RQM/tiQB0PdJJl1l1SfU\nV7tmx1VzJjEejBrm9Wi2rFlziuE0QWXdV98QMKE3KE2UvdrZxNtY73GjuKU9\nJ/kOFoOMdMlEE6pCBzG6XQvFwoemfUbVKa5V6G+2N/Lx5YtL4GMZMQfcbJL3\naeDEmi+miqiVj5BQn701eFJ2MEX0oB+s5RisJTVhki0VpOXLrtllQJbf40D4\neGiAs8om1dVlddYbCqZn86mLq0b0v29Jxxigy1GXeHFUywNJcQN1IEXhNzFw\nvOeCfySjwdaQPge+SdsZjRvrhIjLA0zoP/6c7dPlHmwUebvkJd4SmH8gyiPV\nN71lf4z5RvvVelVVao8gpyqreIQoJbapQVonnSGnIkM4iCQkrSLU3EMwS7O6\nHRx/qQn/nwXSp+yc8JP4rkyxN+VCx8IvLqEpTcgTBGzhJveCZQuQ1c6RDtx5\n1A8+OU+0QXIn3E2MIn+dQW43gsrFBj464JCq+NVIUvwNGt5pSbwWDDAm9+F+\njWRVld7fGkc55wTUuG/Zg7ql+pDpYYsyvaCuWXFxGnROCqtEdekx5hJ46pJk\nLEhQ\r\n=RzSh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE4sGgCs45ruiwwgEtBRh+aTddsa+jkyiG6Y1p5ghPYbAiEAzyNkNJeNlpD3sloSFWLdsZDBIcEp9RLXQmGL2bDQbzY="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.1.2-0_1553225928674_0.8183476804496435"},"_hasShrinkwrap":false},"1.1.2":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.1.2","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^7.0.1","js-yaml":"^3.13.0","meow":"^5.0.0","prettier":"^1.16.4"},"peerDependencies":{"prettier":"^1.0.0"},"devDependencies":{"@pika/pack":"^0.3.5","@pika/plugin-build-node":"^0.3.14","@pika/plugin-copy-assets":"^0.3.14","@pika/plugin-ts-standard-pkg":"^0.3.14","@types/glob":"^7.1.1","@types/jest":"^24.0.11","@types/js-yaml":"^3.12.0","@types/prettier":"^1.16.1","@typescript-eslint/eslint-plugin":"^1.5.0","@typescript-eslint/parser":"^1.1.1","eslint":"^5.12.1","eslint-config-prettier":"^4.1.0","eslint-plugin-prettier":"^3.0.1","jest":"^24.5.0","ts-jest":"^24.0.0","tslib":"^1.9.3","typescript":"^3.3.3333"},"engines":{"node":">= 8.0.0"},"_id":"@manifoldco/swagger-to-ts@1.1.2","_nodeVersion":"11.12.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-K2F5wwzv/m+djVDA/B5td6sXiHSUWCqK+tral8AZdTWzXBrgBMvp+JoLk1QLQGN47ThVlJmZiCoqvixq3A6gzA==","shasum":"a7114851058fc000402b5f472468a85fcdec4ce7","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.1.2.tgz","fileCount":10,"unpackedSize":27459,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcmOTaCRA9TVsSAnZWagAAtyEP/2TKEMdVPDbvif3cLwxu\n9EYBTJuaAOkq8UBCtPV2n/OgsNJ/cghSvs/19pCIKmG36LAEP8htTxCiU6lq\n2dMsgk9o5GQaNB/0lgqloBLCcxbIH5d2jeR6INnm7dIjUm5jjNILlm2KxGt2\ntIAXi92JlJ+Un/hqqidHxoTkdr5/dc/NSp/M/S3mtf4Q1IRxlRD1ek8NS4lZ\nKi3iSwcPVVMBH99T/PBQpQO6tePmLGfHh/RleEp7swz/MNxFX52dtyNDW9Lv\nNlH9+94N81sCKCPFeVo0SatrN6dgNfbklLROFXldhokHPJBcpZnOVyoGHqoD\nVKWhnHvaEsDikQa4TQ9VQhUwMSFEjHNSgv1W7RXpLw7b2VqLxy+HbfZ6mHfv\n+ca30c62zyN0q/9n/YgDitfsPeuvvPlM8KJXcwzRLneBwihYz6cAXWtva446\nFD0jdv+C3QbnY33EpyOFF0/hLOIOmmrB1t6DpqUqVhmrnAGVPWI0QeIigfia\ngh+BVBv9k18YNYNxsx3IfdFcITliW5DIKeyWmtbKUw6MzgR+eCfn3b/Od+6c\nDfvN0VmSqUjDeZiFMaFYsRFFZF8gW5uTDeRK/Oq70qjUHE2pZLGQ930NY9G5\nGLyOI+ddi5QGx8HPdAwU6eQ/b6Z0w0DISPNkhcXGaTbEvoSGXYxFguck/7/y\nxwlc\r\n=1Tna\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQCxLb77ncbsHhPrnjyiaeP0G9prkP2WVLDjj3WMPpVisAIfUvcReTIUQUYjs8/gN4dtFsTxzFVgvz8WESbgqRMveg=="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.1.2_1553523929785_0.0893692613515713"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.1.3":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.1.3","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^7.0.1","js-yaml":"^3.13.0","meow":"^5.0.0","prettier":"^1.16.4"},"peerDependencies":{"prettier":"^1.0.0"},"devDependencies":{"@pika/pack":"^0.3.5","@pika/plugin-build-node":"^0.3.14","@pika/plugin-copy-assets":"^0.3.14","@pika/plugin-ts-standard-pkg":"^0.3.14","@types/glob":"^7.1.1","@types/jest":"^24.0.11","@types/js-yaml":"^3.12.0","@types/prettier":"^1.16.1","@typescript-eslint/eslint-plugin":"^1.5.0","@typescript-eslint/parser":"^1.1.1","eslint":"^5.12.1","eslint-config-prettier":"^4.1.0","eslint-plugin-prettier":"^3.0.1","jest":"^24.5.0","ts-jest":"^24.0.0","tslib":"^1.9.3","typescript":"^3.3.3333"},"engines":{"node":">= 8.0.0"},"_id":"@manifoldco/swagger-to-ts@1.1.3","_nodeVersion":"11.13.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-22oq4pNVSJdMmluSl/SNfAB1r6trXXKlYoUtRyljxGFWM5mhhzde5loKLjt2CUaVpYG0vvhi8qEVz+SC9izfCQ==","shasum":"46402bc2232d82e844528fe033c9842fa5f3ab4d","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.1.3.tgz","fileCount":10,"unpackedSize":29018,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcuSZZCRA9TVsSAnZWagAAEWQQAJ63IIJEmC531CPN9k8q\n6oVahmpaL2fe83E5I5XrbCdV8VEWPEMelpGEIshtMg27qoBX5P+SNHs7ITv7\nFTeNy+FvwBfuNsV+APhm200zbcyREYMGDDozFtEmD+BTBcZR/yYS4+Fwxq+A\nRKmP4KFQu1YxbIF04+vZZjvre4R28GIV9X/3CdJr2gLctjnGwEg/99yp5pkc\nGazCYfSBsnoxPXyI75CFjI9WY8Wo2A8p6i6aeIGk8dWsCM+GNu3YEB0SClZy\n9GTkwns+pfWeSHp8Pqoa19dsn27vXAcXHd7KI4GnXLX2fy/MwadjkbRuGywJ\nMcsIzIUsCSof9JkE5ILQIUeKduN/3mRpdgSzmo8yoskpgTc/UhvTgYd06BX/\nutIsQyYxZ6NrDZqP4rZoVcF4VsIlwcOK5cJtApYYjutOrAdZLfTCfot7jO7j\nCUrdjmvJKLzYVbZ9vfojqvO60qk11GI+QCStVsN7jjUWdgYNH3I8/0PZS4mr\nuAiWpO84NUscst+TUkMaD3cyJ5CBNmCGda3Xv4Ptz87AdkNjUdk7drYF9eaD\nCAuxlA8+HkSIZHUE23/2JNLS7v3Km9QFP8YN/0u5SvaVANkCqjPQnnU6m6rj\nEU3z0FALjbg40SIxqmyu+2YDwIPOV7zpWQ7M9voUZqNcF5oxpkN7J+6PeJXJ\nsBm6\r\n=BT7P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHEbOdTO/Eqga8jOr8ZfAorngSX39HCwQu/aYlpKr1ecAiAEZxhOgs8xmGCzl7Tur7PdsEgkJfFtWVbmCgMZc8NxWw=="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.1.3_1555637849302_0.5527536456236373"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.2.0-rc.0":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","main":"dist/cjs","version":"1.2.0-rc.0","engines":{"node":">= 8.0.0"},"bin":{"swagger-to-ts":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"keywords":["swagger","typescript","ts","openapi","node"],"author":{"name":"drew@pow.rs"},"license":"ISC","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","@pika/pack":{"pipeline":[["@pika/plugin-ts-standard-pkg"],["@pika/plugin-build-node"],["@pika/plugin-copy-assets",{"files":["bin/"]}]]},"scripts":{"build":"pack build","pregenerate":"npm run build","generate":"node pkg/bin/cli example/input.yaml -o example/output.d.ts","lint":"eslint --ignore-path .gitignore --ext .js,.ts src","prepublish":"npm run build","publish":"pack publish","pretest":"npm run build","test":"jest","test:coverage":"jest --coverage"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^8.0.1","js-yaml":"^3.13.1","meow":"^5.0.0","prettier":"^1.18.2"},"devDependencies":{"@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.4.0","@pika/plugin-copy-assets":"^0.4.0","@pika/plugin-ts-standard-pkg":"^0.4.0","@types/jest":"^24.0.13","@types/js-yaml":"^3.12.1","@types/prettier":"^1.16.4","@typescript-eslint/eslint-plugin":"^1.10.2","@typescript-eslint/parser":"^1.10.2","eslint":"^5.16.0","eslint-config-prettier":"^4.3.0","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","ts-jest":"^24.0.2","tslib":"^1.10.0","typescript":"^3.5.1"},"gitHead":"3e923b8ce812f8ba598feffc529d6272477f08fb","readme":"[![version\n(scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n[![codecov](https://codecov.io/gh/manifoldco/swagger-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/manifoldco/swagger-to-ts)\n\n# 📘️ swagger-to-ts\n\nConvert Swagger files to TypeScript interfaces using Node.js.\n\n💅 Prettifies output with [Prettier][prettier].\n\n| OpenAPI Feature   | TypeScript equivalent |\n| :---------------- | :-------------------: |\n| `type: 'string'`  |       `string`        |\n| `type: 'number'`  |       `number`        |\n| `type: 'integer'` |       `number`        |\n| `allOf`           | `TypeB extends TypeA` |\n| `oneOf`           |   `TypeA \\| TypeB`    |\n| `required`        |    (not optional)     |\n| `enum`            |     `'a' \\| 'b'`      |\n\nTo compare actual generated output, see the [example](./example) folder.\n\n## Usage\n\n### CLI\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace OpenAPI\" --output schema.d.ts\n\n# 🚀 schema.yaml -> schema.ts [2ms]\n```\n\nThis will save a `schema.ts` file in the current folder under the TypeScript\n[namespace][namespace] `OpenAPI` (namespaces are required because chances of\ncollision among specs is highly likely). The CLI can accept YAML or JSON for\nthe input file.\n\n#### Wrapper option\n\nThere are many different ways to expose types in TypeScript. To name a few:\n\n```ts\nnamespace MyNamespace {}\nexport namespace MyNamespace {}\ndeclare namespace MyNamespace {}\ndeclare module MyModule {}\n```\n\nThe `--wrapper` flag lets you specify any of the above with a string (omit\nthe `{}`):\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare module '@api'\"\n```\n\nAs mentioned before, this uses [Prettier][prettier] to clean up output, so\nextra spaces are generally OK here. Prettier also will err on cleanup if you\nspecify invalid TypeScript, letting you know on generation if anything went\nwrong.\n\n_Note: previous versions of the CLI tool used `--namespace` and `--export`.\nThese have both been deprecated in favor of `--wrapper`._\n\n#### CamelCasing properties\n\nWithin interfaces, you may want to convert `snake_case` properties to\n`camelCase` by adding the `--camelcase` flag:\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace OpenAPI\" --output schema.d.ts\n\n# 🚀 schema.yaml -> schema.ts [2ms]\n```\n\n#### Generating multiple schemas\n\nSay you have multiple schemas you need to parse. I’ve found the simplest way\nto do that is to use npm scripts. In your `package.json`, you can do\nsomething like the following:\n\n```json\n\"scripts\": {\n  \"generate:specs\": \"npm run generate:specs:one && npm run generate:specs:two\",\n  \"generate:specs:one\": \"npx @manifoldco/swagger-to-ts one.yaml -o one.ts\",\n  \"generate:specs:two\": \"npx @manifoldco/swagger-to-ts two.yaml -o two.ts\"\n}\n```\n\nRinse and repeat for more specs.\n\nFor anything more complicated, or for generating specs dynamically, you can\nalso use the Node API (below).\n\n#### CLI Options\n\n| Option                | Alias |           Default            | Description                                                |\n| :-------------------- | :---- | :--------------------------: | :--------------------------------------------------------- |\n| `--wrapper`           | `-w`  | `declare namespace OpenAPI2` | How should this export the types?                          |\n| `--output [location]` | `-o`  |           (stdout)           | Where should the output file be saved?                     |\n| `--swagger [version]` | `-s`  |             `2`              | Which Swagger version to use. Currently only supports `2`. |\n| `--camelcase`         | `-c`  |           `false`            | Convert `snake_case` properties to `camelCase`?            |\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst { readFileSync } = require('fs');\nconst swaggerToTS = require('@manifoldco/swagger-to-ts');\n\nconst input = JSON.parse(readFileSync('spec.json', 'utf8')); // Input be any JS object (OpenAPI format)\nconst output = swaggerToTS(input, { wrapper: 'declare namespace MyAPI' }); // Outputs TypeScript defs as a string (to be parsed, or written to a file)\n```\n\nThe Node API is a bit more flexible: it will only take a JS object as input\n(OpenAPI format), and return a string of TS definitions. This lets you pull\nfrom any source (a Swagger server, local files, etc.), and similarly lets put\nthe output anywhere. It even allows for some post-processing in-between if\ndesired.\n\nIf you are working with local files, you’ll have to read/write files\nyourself. Also, if your specs are in YAML, you’ll have to convert them to JS\nobjects. A library such as [js-yaml][js-yaml] does make this trivial, though!\nLastly, if you’re batching large folders of specs, [glob][glob] may also come\nin handy.\n\n#### Node Options\n\n| Name        |   Type    |           Default            | Description                                                |\n| :---------- | :-------: | :--------------------------: | :--------------------------------------------------------- |\n| `--wrapper` | `string`  | `declare namespace OpenAPI2` | How should this export the types?                          |\n| `swagger`   | `number`  |             `2`              | Which Swagger version to use. Currently only supports `2`. |\n| `camelcase` | `boolean` |           `false`            | Convert `snake_case` properties to `camelCase`             |\n\n[glob]: https://www.npmjs.com/package/glob\n[js-yaml]: https://www.npmjs.com/package/js-yaml\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n","readmeFilename":"README.md","_id":"@manifoldco/swagger-to-ts@1.2.0-rc.0","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-HMubyyKTYeM58Nge7JwZmhq27/ow3BOu0pM/TBy8S5x1g1ZJEvprIZ9yP+NR/uPKCDqvzEtr5pTtOkPJr5PBZQ==","shasum":"4116131283cc4506c8313e379670b25eca007ecb","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.2.0-rc.0.tgz","fileCount":15,"unpackedSize":88484,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdABXnCRA9TVsSAnZWagAAhwcP/1KEh7p4u3MB7inzjQWW\nVjz14qbk/oW2ZXmv8W2ZpbTaj0keAxhKNuWqkgUkoFt5LdQeD5o9va9PjH/Z\nRROiLGr0MVoAAvz7Sbjsxlh/FR5fyjlGWfLDNI/noWqw6I2XO9gWcdyncDLu\nLYvVL92DuQ71fZ1cNLY6+gyHHjIba5v7vlq6KCjqcb7++eN5kfuJy5YYvZc0\nwbgKe7mPdHYkn7JLdxZ4Few1VHgb9rq80HR70cGJrD3HIgwWVWlvyC7xgCdc\ny1Sp3hTtbRCRnz6TI679ut/AeM9fMAqTWRWwV+o5YQch2rItP0F53zQUdvh7\nlYjPt0jbo4M5tRJlRa0lUJvdYihPmK/Ygxt8d/GtSM4MrKFRyNUiNEBrPAGr\nfOHjy2EF+CKjQZEtVe03VgWoB1KnCPV6sQAu1D8SZjqGM3QdAKeIp9KDHM9v\n6QPfoMg0HUNI7VXm4Mvd6P7kio3N+MHYI6oFZnifxt7TSl8Jd//paAHq9ryn\n9vdPiGqhbq/a6Ykz/IDRnVKrfbTghJz9PlWq/W/6L+swHSoAexFzIlLluF1/\nhlzuahItPQOSwadBJzqv968X55MYC6zIMhPIL5VZgn2IP1d6GrWdkijOKCfm\nhnMU6X1emdhN1DVuP6+UNC1vkSthj68Ffnf3xsUO+tRiJwsVXb0gFTUUfUam\njaOr\r\n=El/e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAZdF0TQfmhkn8ggWCJv3m4kasX+MgjSVoi7HfKnbMu0AiA/uCGl/FaEDoFhlOmgMvytCJOOhcJfoX2c4BRAz1k/tg=="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"kirsten@manifold.co","name":"kirstenrichard"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.2.0-rc.0_1560286694718_0.550025475128257"},"_hasShrinkwrap":false},"1.2.0-rc.1":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.2.0-rc.1","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^8.0.1","js-yaml":"^3.13.1","meow":"^5.0.0","prettier":"^1.18.2"},"devDependencies":{"@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.4.0","@pika/plugin-copy-assets":"^0.4.0","@pika/plugin-ts-standard-pkg":"^0.4.0","@types/jest":"^24.0.13","@types/js-yaml":"^3.12.1","@types/prettier":"^1.16.4","@typescript-eslint/eslint-plugin":"^1.10.2","@typescript-eslint/parser":"^1.10.2","eslint":"^5.16.0","eslint-config-prettier":"^4.3.0","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","ts-jest":"^24.0.2","tslib":"^1.10.0","typescript":"^3.5.1"},"engines":{"node":">= 8.0.0"},"readme":"[![version\n(scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n[![codecov](https://codecov.io/gh/manifoldco/swagger-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/manifoldco/swagger-to-ts)\n\n# 📘️ swagger-to-ts\n\nConvert Swagger files to TypeScript interfaces using Node.js.\n\n💅 Prettifies output with [Prettier][prettier].\n\n| OpenAPI Feature   | TypeScript equivalent |\n| :---------------- | :-------------------: |\n| `type: 'string'`  |       `string`        |\n| `type: 'number'`  |       `number`        |\n| `type: 'integer'` |       `number`        |\n| `allOf`           | `TypeB extends TypeA` |\n| `oneOf`           |   `TypeA \\| TypeB`    |\n| `required`        |    (not optional)     |\n| `enum`            |     `'a' \\| 'b'`      |\n\nTo compare actual generated output, see the [example](./example) folder.\n\n## Usage\n\n### CLI\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace OpenAPI\" --output schema.d.ts\n\n# 🚀 schema.yaml -> schema.ts [2ms]\n```\n\nThis will save a `schema.ts` file in the current folder under the TypeScript\n[namespace][namespace] `OpenAPI` (namespaces are required because chances of\ncollision among specs is highly likely). The CLI can accept YAML or JSON for\nthe input file.\n\n#### Wrapper option\n\nThere are many different ways to expose types in TypeScript. To name a few:\n\n```ts\nnamespace MyNamespace {}\nexport namespace MyNamespace {}\ndeclare namespace MyNamespace {}\ndeclare module MyModule {}\n```\n\nThe `--wrapper` flag lets you specify any of the above with a string (omit\nthe `{}`):\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare module '@api'\"\n```\n\nAs mentioned before, this uses [Prettier][prettier] to clean up output, so\nextra spaces are generally OK here. Prettier also will err on cleanup if you\nspecify invalid TypeScript, letting you know on generation if anything went\nwrong.\n\n_Note: previous versions of the CLI tool used `--namespace` and `--export`.\nThese have both been deprecated in favor of `--wrapper`._\n\n#### CamelCasing properties\n\nWithin interfaces, you may want to convert `snake_case` properties to\n`camelCase` by adding the `--camelcase` flag:\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace OpenAPI\" --output schema.d.ts\n\n# 🚀 schema.yaml -> schema.ts [2ms]\n```\n\n#### Generating multiple schemas\n\nSay you have multiple schemas you need to parse. I’ve found the simplest way\nto do that is to use npm scripts. In your `package.json`, you can do\nsomething like the following:\n\n```json\n\"scripts\": {\n  \"generate:specs\": \"npm run generate:specs:one && npm run generate:specs:two\",\n  \"generate:specs:one\": \"npx @manifoldco/swagger-to-ts one.yaml -o one.ts\",\n  \"generate:specs:two\": \"npx @manifoldco/swagger-to-ts two.yaml -o two.ts\"\n}\n```\n\nRinse and repeat for more specs.\n\nFor anything more complicated, or for generating specs dynamically, you can\nalso use the Node API (below).\n\n#### CLI Options\n\n| Option                | Alias |           Default            | Description                                                |\n| :-------------------- | :---- | :--------------------------: | :--------------------------------------------------------- |\n| `--wrapper`           | `-w`  | `declare namespace OpenAPI2` | How should this export the types?                          |\n| `--output [location]` | `-o`  |           (stdout)           | Where should the output file be saved?                     |\n| `--swagger [version]` | `-s`  |             `2`              | Which Swagger version to use. Currently only supports `2`. |\n| `--camelcase`         | `-c`  |           `false`            | Convert `snake_case` properties to `camelCase`?            |\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst { readFileSync } = require('fs');\nconst swaggerToTS = require('@manifoldco/swagger-to-ts');\n\nconst input = JSON.parse(readFileSync('spec.json', 'utf8')); // Input be any JS object (OpenAPI format)\nconst output = swaggerToTS(input, { wrapper: 'declare namespace MyAPI' }); // Outputs TypeScript defs as a string (to be parsed, or written to a file)\n```\n\nThe Node API is a bit more flexible: it will only take a JS object as input\n(OpenAPI format), and return a string of TS definitions. This lets you pull\nfrom any source (a Swagger server, local files, etc.), and similarly lets put\nthe output anywhere. It even allows for some post-processing in-between if\ndesired.\n\nIf you are working with local files, you’ll have to read/write files\nyourself. Also, if your specs are in YAML, you’ll have to convert them to JS\nobjects. A library such as [js-yaml][js-yaml] does make this trivial, though!\nLastly, if you’re batching large folders of specs, [glob][glob] may also come\nin handy.\n\n#### Node Options\n\n| Name        |   Type    |           Default            | Description                                                |\n| :---------- | :-------: | :--------------------------: | :--------------------------------------------------------- |\n| `--wrapper` | `string`  | `declare namespace OpenAPI2` | How should this export the types?                          |\n| `swagger`   | `number`  |             `2`              | Which Swagger version to use. Currently only supports `2`. |\n| `camelcase` | `boolean` |           `false`            | Convert `snake_case` properties to `camelCase`             |\n\n[glob]: https://www.npmjs.com/package/glob\n[js-yaml]: https://www.npmjs.com/package/js-yaml\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n","readmeFilename":"README.md","_id":"@manifoldco/swagger-to-ts@1.2.0-rc.1","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-hOdQPmiEb4NJ94W20+5Isoy47HAVdmtP9S3klsKOu4Rk4U+HAVZxvcCDBn+grIG6QWa9JEdfbsKluxTs5LE5xA==","shasum":"a899c86fd23458c5e2ba7645528059cf291e42ce","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.2.0-rc.1.tgz","fileCount":10,"unpackedSize":28221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdABYQCRA9TVsSAnZWagAATaYP/3kbBYsquYCVT1EdklOX\nsVT/nKPOt11Vo6nuC/8VTtkB4NMUuS7FoeLYMEReZTNKmhWbCKcB9AV7VuND\n/CwRSbCGzx2K9tXk7Y6weacQR60+eHtOLI8zzQnMelZUSVcIkleQc7WqY4RC\nM5Wbj3mfbQ5623VA56R3fGObxyIAe88OgYvA+yHUojzbatKDv71pUOMZdrV+\nDChzO8oRZJvE7ima4e6mDaFDbxSyf+ZNg4yI/rmxUIB0AMCn4mnn6Uxfrpm/\nvYQ9rr+KKJGfCfVI27xfF5T+GCklBCI3Q0pKJR+2BPsbVYtVFgHRez7wf0Cm\nKKgY7yge2l3z98G3ait4qewXD1rXpGsCwXetu5ETnKjjv1Mgb2JADY93RTet\ncnxIX0oXmA+k6XgrGLXriReY/gxV5pRM5BqeJYrjw/SpnsQyZUs7pnTnETXl\nyySiXYrXTgJpPjHbyf6uvc5fsww4/unwlvUbeCgiiXbDL3FFW3f2MuI/j52X\nRM0UvvSH8HhThWJumkLT6hhKTk36n5M3iy8+EloOzj53A8C5t2tqqd9npZT0\n6qoteE1hG9Jh0Y1ulqajfXL+n4poNMlKAYPqjrbtrx3HNQRsumdvnWkbqUAk\nyhrnaOxF3d0eeVpwwvqR9B4ypsSrwOIosZAx04fcY4pI3JlCqFLPlv+7rC18\n43GY\r\n=sKDO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC+XYvB7a9QR080zm1ewnP4NWvqqoOHUsIukro8wBfMlAiBrCu6+UlQrwCSttFqZmfzBcwMi340ZfPh0Wo4NxrOtNA=="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"kirsten@manifold.co","name":"kirstenrichard"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.2.0-rc.1_1560286735573_0.4145685524111158"},"_hasShrinkwrap":false},"1.2.0-rc.2":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.2.0-rc.2","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^8.0.1","js-yaml":"^3.13.1","meow":"^5.0.0","prettier":"^1.18.2"},"devDependencies":{"@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.4.0","@pika/plugin-copy-assets":"^0.4.0","@pika/plugin-ts-standard-pkg":"^0.4.0","@types/jest":"^24.0.13","@types/js-yaml":"^3.12.1","@types/prettier":"^1.16.4","@typescript-eslint/eslint-plugin":"^1.10.2","@typescript-eslint/parser":"^1.10.2","eslint":"^5.16.0","eslint-config-prettier":"^4.3.0","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","ts-jest":"^24.0.2","tslib":"^1.10.0","typescript":"^3.5.1"},"engines":{"node":">= 8.0.0"},"readme":"[![version\n(scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n[![codecov](https://codecov.io/gh/manifoldco/swagger-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/manifoldco/swagger-to-ts)\n\n# 📘️ swagger-to-ts\n\nConvert Swagger files to TypeScript interfaces using Node.js.\n\n💅 Prettifies output with [Prettier][prettier].\n\n| OpenAPI Feature   | TypeScript equivalent |\n| :---------------- | :-------------------: |\n| `type: 'string'`  |       `string`        |\n| `type: 'number'`  |       `number`        |\n| `type: 'integer'` |       `number`        |\n| `allOf`           | `TypeB extends TypeA` |\n| `oneOf`           |   `TypeA \\| TypeB`    |\n| `required`        |    (not optional)     |\n| `enum`            |     `'a' \\| 'b'`      |\n\nTo compare actual generated output, see the [example](./example) folder.\n\n## Usage\n\n### CLI\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace OpenAPI\" --output schema.d.ts\n\n# 🚀 schema.yaml -> schema.ts [2ms]\n```\n\nThis will save a `schema.ts` file in the current folder under the TypeScript\n[namespace][namespace] `OpenAPI` (namespaces are required because chances of\ncollision among specs is highly likely). The CLI can accept YAML or JSON for\nthe input file.\n\n#### Wrapper option\n\nThere are many different ways to expose types in TypeScript. To name a few:\n\n```ts\nnamespace MyNamespace {}\nexport namespace MyNamespace {}\ndeclare namespace MyNamespace {}\ndeclare module MyModule {}\n```\n\nThe `--wrapper` flag lets you specify any of the above with a string (omit\nthe `{}`):\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare module '@api'\"\n```\n\nAs mentioned before, this uses [Prettier][prettier] to clean up output, so\nextra spaces are generally OK here. Prettier also will err on cleanup if you\nspecify invalid TypeScript, letting you know on generation if anything went\nwrong.\n\n_Note: previous versions of the CLI tool used `--namespace` and `--export`.\nThese have both been deprecated in favor of `--wrapper`._\n\n#### CamelCasing properties\n\nWithin interfaces, you may want to convert `snake_case` properties to\n`camelCase` by adding the `--camelcase` flag:\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace OpenAPI\" --output schema.d.ts\n\n# 🚀 schema.yaml -> schema.ts [2ms]\n```\n\n#### Generating multiple schemas\n\nSay you have multiple schemas you need to parse. I’ve found the simplest way\nto do that is to use npm scripts. In your `package.json`, you can do\nsomething like the following:\n\n```json\n\"scripts\": {\n  \"generate:specs\": \"npm run generate:specs:one && npm run generate:specs:two\",\n  \"generate:specs:one\": \"npx @manifoldco/swagger-to-ts one.yaml -o one.ts\",\n  \"generate:specs:two\": \"npx @manifoldco/swagger-to-ts two.yaml -o two.ts\"\n}\n```\n\nRinse and repeat for more specs.\n\nFor anything more complicated, or for generating specs dynamically, you can\nalso use the Node API (below).\n\n#### CLI Options\n\n| Option                | Alias |           Default            | Description                                                |\n| :-------------------- | :---- | :--------------------------: | :--------------------------------------------------------- |\n| `--wrapper`           | `-w`  | `declare namespace OpenAPI2` | How should this export the types?                          |\n| `--output [location]` | `-o`  |           (stdout)           | Where should the output file be saved?                     |\n| `--swagger [version]` | `-s`  |             `2`              | Which Swagger version to use. Currently only supports `2`. |\n| `--camelcase`         | `-c`  |           `false`            | Convert `snake_case` properties to `camelCase`?            |\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst { readFileSync } = require('fs');\nconst swaggerToTS = require('@manifoldco/swagger-to-ts');\n\nconst input = JSON.parse(readFileSync('spec.json', 'utf8')); // Input be any JS object (OpenAPI format)\nconst output = swaggerToTS(input, { wrapper: 'declare namespace MyAPI' }); // Outputs TypeScript defs as a string (to be parsed, or written to a file)\n```\n\nThe Node API is a bit more flexible: it will only take a JS object as input\n(OpenAPI format), and return a string of TS definitions. This lets you pull\nfrom any source (a Swagger server, local files, etc.), and similarly lets put\nthe output anywhere. It even allows for some post-processing in-between if\ndesired.\n\nIf you are working with local files, you’ll have to read/write files\nyourself. Also, if your specs are in YAML, you’ll have to convert them to JS\nobjects. A library such as [js-yaml][js-yaml] does make this trivial, though!\nLastly, if you’re batching large folders of specs, [glob][glob] may also come\nin handy.\n\n#### Node Options\n\n| Name        |   Type    |           Default            | Description                                                |\n| :---------- | :-------: | :--------------------------: | :--------------------------------------------------------- |\n| `--wrapper` | `string`  | `declare namespace OpenAPI2` | How should this export the types?                          |\n| `swagger`   | `number`  |             `2`              | Which Swagger version to use. Currently only supports `2`. |\n| `camelcase` | `boolean` |           `false`            | Convert `snake_case` properties to `camelCase`             |\n\n[glob]: https://www.npmjs.com/package/glob\n[js-yaml]: https://www.npmjs.com/package/js-yaml\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n","readmeFilename":"README.md","_id":"@manifoldco/swagger-to-ts@1.2.0-rc.2","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-5xeC2zMdGmnVN2lUv4/2TU5ebGYAhijSLAKt60i7RdnDYjNHxAYRK5BFU2gQRm4sGeSd8rAeruegx33g4FXPSQ==","shasum":"0ea325f0a4cfef7539d975f9b3a69ccf4d116b35","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.2.0-rc.2.tgz","fileCount":10,"unpackedSize":28259,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdABb0CRA9TVsSAnZWagAAuBkP/0NQagR3a1WQSsTpIkzv\nY/Jw6AurlegeJk4M2/3js88v2b25z80oYHi5HNgELI9EzNsJMsHfdTgQuFEZ\nOUMudpr8ZlK0AACSwAfnz8yj9zOjs0Ri2MRRjwkfAj/8qULyZ7kk/uv3ZJqm\n3FWJEcJlA13aOEeBVLT1Wexvfm7vvhE3NOXJWS4AVxQn++BConmMARMxKxLk\nkvCBHl2sTYiKiHycBBCzGnenJ0EKCvCEa0KEKLtZ3+7Z2cvXP5W/OuKIWytd\nJtNLU5fdw/uEmk3xg4bDFZU8Kuq9nc2ZbA98M3g8DIKptIp3yrREPNvJCuVp\ncMENYS3C9jbWh+VYJ6Dv6156Vr7EyvUBx6dySDKK/ytRdc4qZqjHCJmvemkU\nxR17MLcNgTKOY7choCv1x1vCtYtUSGp3MSPnd/GWw4J3Lp0OO6Bou71Aej3y\nG4XxAnVpZ7WecFI0sy7cPbaz4ZjQxQhm/MyNAZLSUCkJ+32dmEfqbYTCP8tj\ngOfmZgJd11swipy2bk/FGdEztA0BKh5mnqH/T5Gw6B/UNkVi0aONImPqsoFm\n8bSfCP9Zx53CYW5pZ8R/kQ35wMze367J7MoT/UdnhMwT8XB858BNw4I3pU4e\nqeE1OcU458vMVMcmmOdu+4EVrlkNbUI4P5vFz107jpY7rcOJJke34B0tSduc\nT52F\r\n=eQ/p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQC47yQm0yZwsE+5M3eV8uBWbSWNVS6pBn+xEVQiUWYdiQIfJZzepVff/hpJJlHs3SXgzzDzmoBmrcKVDPXSrUAkYw=="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"kirsten@manifold.co","name":"kirstenrichard"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.2.0-rc.2_1560286963667_0.9595139236839731"},"_hasShrinkwrap":false},"1.2.0":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.2.0","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^8.0.1","js-yaml":"^3.13.1","meow":"^5.0.0","prettier":"^1.18.2"},"devDependencies":{"@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.4.0","@pika/plugin-copy-assets":"^0.4.0","@pika/plugin-ts-standard-pkg":"^0.4.0","@types/jest":"^24.0.13","@types/js-yaml":"^3.12.1","@types/prettier":"^1.16.4","@typescript-eslint/eslint-plugin":"^1.10.2","@typescript-eslint/parser":"^1.10.2","eslint":"^5.16.0","eslint-config-prettier":"^4.3.0","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","ts-jest":"^24.0.2","tslib":"^1.10.0","typescript":"^3.5.1"},"engines":{"node":">= 8.0.0"},"_id":"@manifoldco/swagger-to-ts@1.2.0","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-SdSgljRNfW1KQZSEUFjnF7KgFQkmOAvrUlA3PMMkzAUUrPs0eWIwqeURTynWLDBv7pKTWbxjA5i/MtYRJFgBOw==","shasum":"dfc80df006feb740672380aab05768ceb333653b","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.2.0.tgz","fileCount":10,"unpackedSize":28254,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdABuZCRA9TVsSAnZWagAApVYP/RWjuUsm3ZJv3R4CgRs5\ndU1UnYefzolUl+lIws9IHYg+8qDXxm1v/bU0K04tTW274SaWqurErqSyYeJJ\nO6L8xpjanNCRZ+5K5kPqRUofn8SP/EVUqpet4/lZcs+08B1xjJEfcC2m9Unm\nJDEzCeZTd7M9rAnKd1vAY0XF7Uwh17yKoZm+ug3nUkAr4yLL/FO8ptqnhX/d\ngmIqU/k8h2lD7D6EZQ/Om4rt4gytfiMvJV87WhfabosFYYGSVGsM0pNWy0Ff\nYt3Jqf9YxCI55+ZSr/MWTONSLkbFqGYSNzTm1iLA6tjMzSKCOT0Fw0br0Rdv\nfHYoXLiyvmJUQKlxbZD7uF562xBgeX+7E6mxqp+Di7hh4hpo3ZY+6eYXaEJP\nKy2r601Q8bQ7S0eY4JKErlurj+oKZ5BsTgKB45X25fL4tzHB4XX8QhgHcXQ2\nUGSxJPCLOBpz4LPI0cl2m8cRLfPG5yHww9lkvgQdM5BKegqb5NQBBZiME19U\niBVS0P+DjjpGaylTDoaqZH7Nhvrc+jDycl/lZNfuFW11dldLUkx0rwSSMR3B\nF8ebDmwLDjnLqQAssIiIP0a8TBBQUTd5ubueK1xWYWZNgpdcjoZUCcRX1oZ1\nB+7TO+gOsbtqkEk9F4PAVStR34wrHk+ofKeFV8FTmvDeGNMmkz4mNZdRYyr5\niUZy\r\n=KaZl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgQmRUXyyP+xuihXZpt2htzTnHp4f7Tmq61kEsgDZCtwIhAMjYjparMKnOHX25zqnS6rwvyQPUfA+kU2mX8ns4lOnd"}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"kirsten@manifold.co","name":"kirstenrichard"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.2.0_1560288152401_0.39448530767470635"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.2.0-beta.0":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.2.0-beta.0","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^8.0.1","js-yaml":"^3.13.1","meow":"^5.0.0","prettier":"^1.18.2"},"devDependencies":{"@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.4.0","@pika/plugin-copy-assets":"^0.4.0","@pika/plugin-ts-standard-pkg":"^0.4.0","@types/jest":"^24.0.13","@types/js-yaml":"^3.12.1","@types/prettier":"^1.16.4","@typescript-eslint/eslint-plugin":"^1.10.2","@typescript-eslint/parser":"^1.10.2","eslint":"^5.16.0","eslint-config-prettier":"^4.3.0","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","ts-jest":"^24.0.2","tslib":"^1.10.0","typescript":"^3.5.1"},"engines":{"node":">= 8.0.0"},"readme":"[![version\n(scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n[![codecov](https://codecov.io/gh/manifoldco/swagger-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/manifoldco/swagger-to-ts)\n\n# 📘️ swagger-to-ts\n\nConvert Swagger files to TypeScript interfaces using Node.js.\n\n💅 Prettifies output with [Prettier][prettier].\n\n| OpenAPI Feature   | TypeScript equivalent |\n| :---------------- | :-------------------: |\n| `type: 'string'`  |       `string`        |\n| `type: 'number'`  |       `number`        |\n| `type: 'integer'` |       `number`        |\n| `allOf`           | `TypeB extends TypeA` |\n| `oneOf`           |   `TypeA \\| TypeB`    |\n| `required`        |    (not optional)     |\n| `enum`            |     `'a' \\| 'b'`      |\n\nTo compare actual generated output, see the [example](./example) folder.\n\n## Usage\n\n### CLI\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace OpenAPI\" --output schema.d.ts\n\n# 🚀 schema.yaml -> schema.ts [2ms]\n```\n\nThis will save a `schema.ts` file in the current folder under the TypeScript\n[namespace][namespace] `OpenAPI` (namespaces are required because chances of\ncollision among specs is highly likely). The CLI can accept YAML or JSON for\nthe input file.\n\n#### Wrapper option\n\nThere are many different ways to expose types in TypeScript. To name a few:\n\n```ts\nnamespace MyNamespace {}\nexport namespace MyNamespace {}\ndeclare namespace MyNamespace {}\ndeclare module MyModule {}\n```\n\nThe `--wrapper` flag lets you specify any of the above with a string (omit\nthe `{}`):\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare module '@api'\"\n```\n\nAs mentioned before, this uses [Prettier][prettier] to clean up output, so\nextra spaces are generally OK here. Prettier also will err on cleanup if you\nspecify invalid TypeScript, letting you know on generation if anything went\nwrong.\n\n_Note: previous versions of the CLI tool used `--namespace` and `--export`.\nThese have both been deprecated in favor of `--wrapper`._\n\n#### CamelCasing properties\n\nWithin interfaces, you may want to convert `snake_case` properties to\n`camelCase` by adding the `--camelcase` flag:\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace OpenAPI\" --output schema.d.ts\n\n# 🚀 schema.yaml -> schema.ts [2ms]\n```\n\n#### Generating multiple schemas\n\nSay you have multiple schemas you need to parse. I’ve found the simplest way\nto do that is to use npm scripts. In your `package.json`, you can do\nsomething like the following:\n\n```json\n\"scripts\": {\n  \"generate:specs\": \"npm run generate:specs:one && npm run generate:specs:two\",\n  \"generate:specs:one\": \"npx @manifoldco/swagger-to-ts one.yaml -o one.ts\",\n  \"generate:specs:two\": \"npx @manifoldco/swagger-to-ts two.yaml -o two.ts\"\n}\n```\n\nRinse and repeat for more specs.\n\nFor anything more complicated, or for generating specs dynamically, you can\nalso use the Node API (below).\n\n#### CLI Options\n\n| Option                | Alias |           Default            | Description                                                |\n| :-------------------- | :---- | :--------------------------: | :--------------------------------------------------------- |\n| `--wrapper`           | `-w`  | `declare namespace OpenAPI2` | How should this export the types?                          |\n| `--output [location]` | `-o`  |           (stdout)           | Where should the output file be saved?                     |\n| `--swagger [version]` | `-s`  |             `2`              | Which Swagger version to use. Currently only supports `2`. |\n| `--camelcase`         | `-c`  |           `false`            | Convert `snake_case` properties to `camelCase`?            |\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst { readFileSync } = require('fs');\nconst swaggerToTS = require('@manifoldco/swagger-to-ts');\n\nconst input = JSON.parse(readFileSync('spec.json', 'utf8')); // Input be any JS object (OpenAPI format)\nconst output = swaggerToTS(input, { wrapper: 'declare namespace MyAPI' }); // Outputs TypeScript defs as a string (to be parsed, or written to a file)\n```\n\nThe Node API is a bit more flexible: it will only take a JS object as input\n(OpenAPI format), and return a string of TS definitions. This lets you pull\nfrom any source (a Swagger server, local files, etc.), and similarly lets put\nthe output anywhere. It even allows for some post-processing in-between if\ndesired.\n\nIf you are working with local files, you’ll have to read/write files\nyourself. Also, if your specs are in YAML, you’ll have to convert them to JS\nobjects. A library such as [js-yaml][js-yaml] does make this trivial, though!\nLastly, if you’re batching large folders of specs, [glob][glob] may also come\nin handy.\n\n#### Node Options\n\n| Name        |   Type    |           Default            | Description                                                |\n| :---------- | :-------: | :--------------------------: | :--------------------------------------------------------- |\n| `--wrapper` | `string`  | `declare namespace OpenAPI2` | How should this export the types?                          |\n| `swagger`   | `number`  |             `2`              | Which Swagger version to use. Currently only supports `2`. |\n| `camelcase` | `boolean` |           `false`            | Convert `snake_case` properties to `camelCase`             |\n\n[glob]: https://www.npmjs.com/package/glob\n[js-yaml]: https://www.npmjs.com/package/js-yaml\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n","readmeFilename":"README.md","_id":"@manifoldco/swagger-to-ts@1.2.0-beta.0","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-e9rwssDI0NZyMcIxMCM30VLUjuGz945iBxyJScKfl70i2OnIqngiI1HUf93EwlWpRO1nTyKuTqz6w+2LsCg5HA==","shasum":"fe089dac0d7b4092145a103e1f72724645ace570","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.2.0-beta.0.tgz","fileCount":10,"unpackedSize":28617,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdABwhCRA9TVsSAnZWagAAgNgQAJSVCLYc2DprRjE2/j6K\n7oAZjgwoQMdp6ixtGylq6TLlkAUvhVd93kXijqU4rL3WAHB6+mXRqB5+Gk16\nPkdAiyi5CFjuI3lXiZFeApGTeHVq8s30+4Wlmgs/SQitPZ1xNjnEzFuyP/PL\nEdB238VpCUQRmXagdUKbcUI/V1Dj7SEX2t70WjlPHFFb4Jx8F+Fg6eNc54OR\nfx4zUa6yDvVQYZYMZbsL+oGfCEYKqeTwWxTo+z2iuPzMvT7x2pufILXCR61T\nQfVJY7JgHyEukFcOmvopFlEvoLZxbPJCiSVo54LwuIn0Ynr0Eiw0qDOeRfts\nsASCn9++P1KbJSX7+tZb+dTFnGSVz/JMUzjFlTA2tc+HXUuKJ1EKGCdxv2vw\n04Hv9m6okdR4WT20G/SJk+080osFBVyKTfHsAa1kqJ5eZRPVFZCTR+iWdRb3\nO/jRn7PRGwvGyDOz0xRIBsLH0U9Pf8TDbcwGy3QE8n0Bk52ksdlr+JYBKHWn\nE4tjTF05SbOcRh/EJy0tX/wI1dvaH6bJeUnaCBoubZuyj3D0UyYLIiGYTeG6\nTTZqrYVkC5QejRiuhsmMSvBOne1z26fSp5g4sBitoPZE1nacdhgqnPWraayz\nsLeeL9atJv7cV8f783MSuEvMS9IC10DDKEwD2Ct5/GUHaaJGNhLN8LmsM5s7\n9HH7\r\n=CgA2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAHg5ftDebYxQTEpf2Z9KhskilwJmx2adLYhqUFTlWmdAiEA4GNzdW9fq9S2IKtn4h6NWYnp1F3CB+Vp+jELWZMvszU="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"kirsten@manifold.co","name":"kirstenrichard"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.2.0-beta.0_1560288289153_0.8068279646388707"},"_hasShrinkwrap":false},"1.2.1-beta.0":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.2.1-beta.0","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^8.0.1","js-yaml":"^3.13.1","meow":"^5.0.0","prettier":"^1.18.2"},"devDependencies":{"@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.4.0","@pika/plugin-copy-assets":"^0.4.0","@pika/plugin-ts-standard-pkg":"^0.4.0","@types/jest":"^24.0.13","@types/js-yaml":"^3.12.1","@types/prettier":"^1.16.4","@typescript-eslint/eslint-plugin":"^1.10.2","@typescript-eslint/parser":"^1.10.2","eslint":"^5.16.0","eslint-config-prettier":"^4.3.0","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","ts-jest":"^24.0.2","tslib":"^1.10.0","typescript":"^3.5.1"},"engines":{"node":">= 8.0.0"},"readme":"[![version\n(scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n[![codecov](https://codecov.io/gh/manifoldco/swagger-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/manifoldco/swagger-to-ts)\n\n# 📘️ swagger-to-ts\n\nConvert Swagger files to TypeScript interfaces using Node.js.\n\n💅 Prettifies output with [Prettier][prettier].\n\n| OpenAPI Feature   | TypeScript equivalent |\n| :---------------- | :-------------------: |\n| `type: 'string'`  |       `string`        |\n| `type: 'number'`  |       `number`        |\n| `type: 'integer'` |       `number`        |\n| `allOf`           | `TypeB extends TypeA` |\n| `oneOf`           |   `TypeA \\| TypeB`    |\n| `required`        |    (not optional)     |\n| `enum`            |     `'a' \\| 'b'`      |\n\nTo compare actual generated output, see the [example](./example) folder.\n\n## Usage\n\n### CLI\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace OpenAPI\" --output schema.d.ts\n\n# 🚀 schema.yaml -> schema.ts [2ms]\n```\n\nThis will save a `schema.ts` file in the current folder under the TypeScript\n[namespace][namespace] `OpenAPI` (namespaces are required because chances of\ncollision among specs is highly likely). The CLI can accept YAML or JSON for\nthe input file.\n\n#### Wrapper option\n\nThere are many different ways to expose types in TypeScript. To name a few:\n\n```ts\nnamespace MyNamespace {}\nexport namespace MyNamespace {}\ndeclare namespace MyNamespace {}\ndeclare module MyModule {}\n```\n\nThe `--wrapper` flag lets you specify any of the above with a string (omit\nthe `{}`):\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare module '@api'\"\n```\n\nAs mentioned before, this uses [Prettier][prettier] to clean up output, so\nextra spaces are generally OK here. Prettier also will err on cleanup if you\nspecify invalid TypeScript, letting you know on generation if anything went\nwrong.\n\n_Note: previous versions of the CLI tool used `--namespace` and `--export`.\nThese have both been deprecated in favor of `--wrapper`._\n\n#### CamelCasing properties\n\nWithin interfaces, you may want to convert `snake_case` properties to\n`camelCase` by adding the `--camelcase` flag:\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace OpenAPI\" --output schema.d.ts\n\n# 🚀 schema.yaml -> schema.ts [2ms]\n```\n\n#### Generating multiple schemas\n\nSay you have multiple schemas you need to parse. I’ve found the simplest way\nto do that is to use npm scripts. In your `package.json`, you can do\nsomething like the following:\n\n```json\n\"scripts\": {\n  \"generate:specs\": \"npm run generate:specs:one && npm run generate:specs:two\",\n  \"generate:specs:one\": \"npx @manifoldco/swagger-to-ts one.yaml -o one.ts\",\n  \"generate:specs:two\": \"npx @manifoldco/swagger-to-ts two.yaml -o two.ts\"\n}\n```\n\nRinse and repeat for more specs.\n\nFor anything more complicated, or for generating specs dynamically, you can\nalso use the Node API (below).\n\n#### CLI Options\n\n| Option                | Alias |           Default            | Description                                                |\n| :-------------------- | :---- | :--------------------------: | :--------------------------------------------------------- |\n| `--wrapper`           | `-w`  | `declare namespace OpenAPI2` | How should this export the types?                          |\n| `--output [location]` | `-o`  |           (stdout)           | Where should the output file be saved?                     |\n| `--swagger [version]` | `-s`  |             `2`              | Which Swagger version to use. Currently only supports `2`. |\n| `--camelcase`         | `-c`  |           `false`            | Convert `snake_case` properties to `camelCase`?            |\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst { readFileSync } = require('fs');\nconst swaggerToTS = require('@manifoldco/swagger-to-ts');\n\nconst input = JSON.parse(readFileSync('spec.json', 'utf8')); // Input be any JS object (OpenAPI format)\nconst output = swaggerToTS(input, { wrapper: 'declare namespace MyAPI' }); // Outputs TypeScript defs as a string (to be parsed, or written to a file)\n```\n\nThe Node API is a bit more flexible: it will only take a JS object as input\n(OpenAPI format), and return a string of TS definitions. This lets you pull\nfrom any source (a Swagger server, local files, etc.), and similarly lets put\nthe output anywhere. It even allows for some post-processing in-between if\ndesired.\n\nIf you are working with local files, you’ll have to read/write files\nyourself. Also, if your specs are in YAML, you’ll have to convert them to JS\nobjects. A library such as [js-yaml][js-yaml] does make this trivial, though!\nLastly, if you’re batching large folders of specs, [glob][glob] may also come\nin handy.\n\n#### Node Options\n\n| Name        |   Type    |           Default            | Description                                                |\n| :---------- | :-------: | :--------------------------: | :--------------------------------------------------------- |\n| `--wrapper` | `string`  | `declare namespace OpenAPI2` | How should this export the types?                          |\n| `swagger`   | `number`  |             `2`              | Which Swagger version to use. Currently only supports `2`. |\n| `camelcase` | `boolean` |           `false`            | Convert `snake_case` properties to `camelCase`             |\n\n[glob]: https://www.npmjs.com/package/glob\n[js-yaml]: https://www.npmjs.com/package/js-yaml\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n","readmeFilename":"README.md","_id":"@manifoldco/swagger-to-ts@1.2.1-beta.0","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-nT4rbjkZ7SE8MHolTCb9BH+W2HgBEhp10mipkuGJxf8eMAoO6iu2ge1duS5/fiZgUytLmv12XgoDmIHe4ZCTcQ==","shasum":"b328b41e844449c302aab7f0e8678751a83afa5d","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.2.1-beta.0.tgz","fileCount":10,"unpackedSize":28617,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdABwrCRA9TVsSAnZWagAAEDEP/iM8eF+PiS+Z5HAv7BxO\n8OqQywaD/tETi6jJ/amxrsXucOj7r/OfVbTQh5Z90BPsryybkJBSLajldgGx\nLcnQsTvPTkV9EJOyqz+5DfXGn+FBGvMBGef2CGDZyQE6cvVs2Nk4n5lAJF13\nZukqrAfeiGvk4xk2KRM3oyNtnVPHc5pnvIe0a8QhfAzvT5WjFmwW2U9x1TRu\nT5PtsIkiQOCy6b9fxZXCq9C2YKYExjtbwEwW9q+P9iEj/AbUnRIh1vDpljwQ\noMCRYh2u8qKtsircxXBuiJAuCwgo3LmnwHmAEn9MBljTEbEuGouoVcuxwyQU\nujOFt6HDDwWizEDGiMTweC4OLbwK5My+2tRpOxOnxaChNXvO4RrQ3doERu71\nwnA+roiyf1AsRCKzDcJno333fBRIWQKPuNQIJSjwjAffyXBwRPiUBoFi+bVO\nGQ/TxmONs5Zt3uVSYEGAlcWuTvSy06cgy1EEvSaZhqqEZeQ31bKjkqjW3Wuq\nWIbpzJLua/yaH29kUsvYTsbmL5QgxsJYSdrLR5XIxm+FQQN8OUtcA7aMWjPY\ndz8R1wvyGogeTM6k6m6BzUjT9rNOIHmqO4c2BsiWL3OY2Oq6N2ppJhdXECfl\n0aiU9iBxomiYcQ0Xi/Lbb0MyuS6ACL81rG9kqNF0qTT/NiAsGvUDWONYM84X\nBAsX\r\n=evpq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmE2vOek3rIEq9P2xnLR1Ntubztr95i9Rqu252hx2dwwIhAIvTaSv5fO0Dry7zU2nmgK1jBceCHojckOkKdCuIZXCN"}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"kirsten@manifold.co","name":"kirstenrichard"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.2.1-beta.0_1560288298696_0.964798060336028"},"_hasShrinkwrap":false},"1.2.1":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.2.1","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^8.0.1","js-yaml":"^3.13.1","meow":"^5.0.0","prettier":"^1.18.2"},"devDependencies":{"@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.4.0","@pika/plugin-copy-assets":"^0.4.0","@pika/plugin-ts-standard-pkg":"^0.4.0","@types/jest":"^24.0.13","@types/js-yaml":"^3.12.1","@types/prettier":"^1.16.4","@typescript-eslint/eslint-plugin":"^1.10.2","@typescript-eslint/parser":"^1.10.2","eslint":"^5.16.0","eslint-config-prettier":"^4.3.0","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","ts-jest":"^24.0.2","tslib":"^1.10.0","typescript":"^3.5.1"},"engines":{"node":">= 8.0.0"},"_id":"@manifoldco/swagger-to-ts@1.2.1","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-sZENgeaD+OWUvyPQeNJgBMZeJj3x3zHk/Ykoa3IZ2cv4Df8mZxYzp++ye74n1xkg1P92IAR+llw2jVqCbD5cPA==","shasum":"f03030d92b9569956a4ef40fddab20846cd56ce7","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.2.1.tgz","fileCount":10,"unpackedSize":28610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAR1wCRA9TVsSAnZWagAA89UP/0FhkyAHtfvJ5VhfEHn6\nR7e9szuMxOYdGxw9MBXyLo8yCqaS4oAC5cwzOFB+Irg47eswmM0PpyjvoBmU\nG9kI/Ty2LwuxZiEp15/9RS3SlP3VUJ6D9fUOLigXPz1mRrdyBsiv1NRB+qE4\nMoQSAV/srEKLXyWYtsuGY12HvFFSZXDlkJpS8jwijMUoPmMKYEKd1Q1g6RZD\nTrk2AqXmS2V3dVBdYkPQRslwzTPZ/ylSHcbmBrR0kh7kVkSmaZBkihscnGTB\nYF1NSwqyL3pfZ7oZ+LC23RBJyi+C91l5eeaONFy9P4cPX4WoL1IVB/TNAxX5\nnlqfb07nEr7cj1l/g5ZWw+raagzoyG7cWr6b9JImwCeZGnF/L+oqk79+B8gm\nUB7wL0hyaSJiJv3UdkqsrfsnkShmqAIyFNREZd9hWlvVSOPYWjHj5YAAmCIF\nsXOW/FrGyiNd1jYiBxVPvDIU0q4s1GFONOo55qM3qQdRPUAMt0gLkd9/px2c\n2Qe4E4YfjbDMJ0zLAkKPUAVgiO6KQ54OzfFjg1NYDwBUAC57Dl+7FElZzBYJ\nAjYhLBsAZHxZ4sI4h+Sf6PaiVFWcShGKSFl99icJ0EVJx5zevmkh5l6wNyMe\nHiJaAGADRbhpWzGYTtKwFLcmHtFPlk0WDvbhFGEI+K2yEmsmDpSH0nbMG5Yy\nElvo\r\n=uuUV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBNc5iZMmLwnCLmN+aIGqWcQvPrapib3I42Ea1q7LYhiAiA7KQ8LJDiLLppBVHSdu/mhQX5ga5/eqBXp3ioq9JbKPw=="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"kirsten@manifold.co","name":"kirstenrichard"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.2.1_1560354160281_0.3768717315566492"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.2.2":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.2.2","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^8.0.1","js-yaml":"^3.13.1","meow":"^5.0.0","prettier":"^1.18.2"},"devDependencies":{"@pika/pack":"^0.4.0","@pika/plugin-build-node":"^0.4.0","@pika/plugin-copy-assets":"^0.4.0","@pika/plugin-ts-standard-pkg":"^0.4.0","@types/jest":"^24.0.13","@types/js-yaml":"^3.12.1","@types/prettier":"^1.16.4","@typescript-eslint/eslint-plugin":"^1.10.2","@typescript-eslint/parser":"^1.10.2","eslint":"^5.16.0","eslint-config-prettier":"^6.0.0","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","ts-jest":"^24.0.2","tslib":"^1.10.0","typescript":"^3.5.3"},"engines":{"node":">= 8.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","_id":"@manifoldco/swagger-to-ts@1.2.2","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-qvX7Hm5EE5gHYetbOQh/+hbPflvX9b4axUXNe5aj/3gp49TTPBzF0aWc/N5azv+g+guFdQKgsmsc6+NmtNLnwQ==","shasum":"8f5fd592c30df8d3aaa9f71eb5226af6256ba340","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.2.2.tgz","fileCount":10,"unpackedSize":29084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdMOceCRA9TVsSAnZWagAAy7cP/jqFxJVNaEUoExOmgr2I\nv8u8umtA8jMa81bAwb9p8NChdaT8O/SfdGJnHD5mfgaM8PF9Lcivb6RbOSrO\nh+F0/gmLS8EG2p4/HVVPrhAtXuG9Skc6kNiKL2fMod1DkD7HBgHfDbICjBAJ\nQdVoOFoHXN3W9qGP0Qbn6mD1hHY/nbiucVRkjrpGwdh6Emg9yky+oA41xDAR\n4Ba4bb/BBsrfgYa+z7w5r4yHy3X9mhY+z3KEVGLnfhoQ0H3BKiay7j0yfEOX\nwERriyTKrxMYSHvppy/cnu+IQfSY4g8x1HAoSGTOK+WD7h8FUpzfHUC/f0DN\nDDxXZD65GUXjdFeyDevDG9L87XQBX83v4zXdFo+wTnKTSTk5Mq4aQv4wFbKP\niZsBisEqYFHHu1IMth6bQ/v3J+GHJ7TZxnIlqNxRvgszfUGMyPmiCe/PJwTY\nsLgH2wtOuXB0u+jlKp45BXMr1bppythZPc7kQDD72nMJHuAt0GQYCPQetV7h\nGfR0LkL3iPpVSMbXykaAaLBWFpv7aeNvM9ul0G18pH9EkHFJWWqHDoi4XP0q\n+VNGH4naJgeI+9CIsjnIkoE5YuBEUPZ0hkop9HpzwzaI+s4Rnfh2xxP/TdnF\nN99E7rGH+i+QgZX9N6Q8iRNm8imf3ElmmreBR6qHntZBRtUX3HpBSElE59MQ\n35WY\r\n=o1Kk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGbh9AkmDaedpxQOnb1VD+2SGTkz9A0sJIwGVWUeT+MxAiBWW6gQ/1FS6FTSb4MgvcG4DuvyP8Fcb8NamEMps83ZGg=="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"kirsten@manifold.co","name":"kirstenrichard"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"nicole@manifold.co","name":"ntibaldi92"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.2.2_1563485981379_0.9064381822929"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.3.0-0":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.3.0-0","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^8.0.1","js-yaml":"^3.13.1","meow":"^5.0.0","prettier":"^1.18.2"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.6.0","@pika/plugin-copy-assets":"^0.6.0","@pika/plugin-ts-standard-pkg":"^0.6.0","@types/jest":"^24.0.13","@types/js-yaml":"^3.12.1","@types/prettier":"^1.16.4","@typescript-eslint/eslint-plugin":"^1.10.2","@typescript-eslint/parser":"^1.10.2","eslint":"^5.16.0","eslint-config-prettier":"^6.0.0","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","ts-jest":"^24.0.2","tslib":"^1.10.0","typescript":"^3.5.3"},"engines":{"node":">= 8.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","readme":"[![version\n(scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n[![codecov](https://codecov.io/gh/manifoldco/swagger-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/manifoldco/swagger-to-ts)\n\n# 📘️ swagger-to-ts\n\nConvert Swagger files to TypeScript interfaces using Node.js.\n\n💅 Prettifies output with [Prettier][prettier].\n\n| OpenAPI Feature   | TypeScript equivalent |\n| :---------------- | :-------------------: |\n| `type: 'string'`  |       `string`        |\n| `type: 'number'`  |       `number`        |\n| `type: 'integer'` |       `number`        |\n| `allOf`           | `TypeB extends TypeA` |\n| `oneOf`           |   `TypeA \\| TypeB`    |\n| `required`        |    (not optional)     |\n| `enum`            |     `'a' \\| 'b'`      |\n\nTo compare actual generated output, see the [example](./example) folder.\n\n## Usage\n\n### CLI\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace OpenAPI\" --output schema.d.ts\n\n# 🚀 schema.yaml -> schema.d.ts [2ms]\n```\n\nThis will save a `schema.ts` file in the current folder under the TypeScript\n[namespace][namespace] `OpenAPI` (namespaces are required because chances of\ncollision among specs is highly likely). The CLI can accept YAML or JSON for\nthe input file.\n\n#### Wrapper option\n\nThere are many different ways to expose types in TypeScript. To name a few:\n\n```ts\nnamespace MyNamespace {}\nexport namespace MyNamespace {}\ndeclare namespace MyNamespace {}\ndeclare module MyModule {}\n```\n\nThe `--wrapper` flag lets you specify any of the above with a string (omit\nthe `{}`):\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"export namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare namespace API\"\nnpx @manifoldco/swagger-to-ts schema.yaml --wrapper \"declare module '@api'\"\n```\n\nBy default, wrapper is `declare namespace OpenAPI2`. You can skip exposing types via a wrapper by adding the `--nowrapper` flag:\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --nowrapper\n```\n\nAs mentioned before, this uses [Prettier][prettier] to clean up output, so\nextra spaces are generally OK here. Prettier also will err on cleanup if you\nspecify invalid TypeScript, letting you know on generation if anything went\nwrong.\n\n_Note: previous versions of the CLI tool used `--namespace` and `--export`.\nThese have both been deprecated in favor of `--wrapper`._\n\n#### CamelCasing properties\n\nWithin interfaces, you may want to convert `snake_case` properties to\n`camelCase` by adding the `--camelcase` flag:\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --camelcase --wrapper \"declare namespace OpenAPI\" --output schema.d.ts\n\n# 🚀 schema.yaml -> schema.d.ts [2ms]\n```\n\n#### Generating multiple schemas\n\nSay you have multiple schemas you need to parse. I’ve found the simplest way\nto do that is to use npm scripts. In your `package.json`, you can do\nsomething like the following:\n\n```json\n\"scripts\": {\n  \"generate:specs\": \"npm run generate:specs:one && npm run generate:specs:two\",\n  \"generate:specs:one\": \"npx @manifoldco/swagger-to-ts one.yaml -o one.d.ts\",\n  \"generate:specs:two\": \"npx @manifoldco/swagger-to-ts two.yaml -o two.d.ts\"\n}\n```\n\nRinse and repeat for more specs.\n\nFor anything more complicated, or for generating specs dynamically, you can\nalso use the Node API (below).\n\n#### CLI Options\n\n| Option                | Alias |           Default            | Description                                                |\n| :-------------------- | :---- | :--------------------------: | :--------------------------------------------------------- |\n| `--wrapper`           | `-w`  | `declare namespace OpenAPI2` | How should this export the types?                          |\n| `--output [location]` | `-o`  |           (stdout)           | Where should the output file be saved?                     |\n| `--swagger [version]` | `-s`  |             `2`              | Which Swagger version to use. Currently only supports `2`. |\n| `--camelcase`         | `-c`  |           `false`            | Convert `snake_case` properties to `camelCase`?            |\n| `--nowrapper`         | `-nw` |           `false`            | Disables rendering a wrapper                               |\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst { readFileSync } = require('fs');\nconst swaggerToTS = require('@manifoldco/swagger-to-ts');\n\nconst input = JSON.parse(readFileSync('spec.json', 'utf8')); // Input can be any JS object (OpenAPI format)\nconst output = swaggerToTS(input, { wrapper: 'declare namespace MyAPI' }); // Outputs TypeScript defs as a string (to be parsed, or written to a file)\n```\n\nThe Node API is a bit more flexible: it will only take a JS object as input\n(OpenAPI format), and return a string of TS definitions. This lets you pull\nfrom any source (a Swagger server, local files, etc.), and similarly lets you\nparse, post-process, and save the output anywhere.\n\nIf your specs are in YAML, you’ll have to convert them to JS objects using a\nlibrary such as [js-yaml][js-yaml]. If you’re batching large folders of\nspecs, [glob][glob] may also come in handy.\n\n#### Node Options\n\n| Name        |       Type        |           Default            | Description                                                                 |\n| :---------- | :---------------: | :--------------------------: | :-------------------------------------------------------------------------- |\n| `wrapper`   | `string \\| false` | `declare namespace OpenAPI2` | How should this export the types? Pass false to disable rendering a wrapper |\n| `swagger`   |     `number`      |             `2`              | Which Swagger version to use. Currently only supports `2`.                  |\n| `camelcase` |     `boolean`     |           `false`            | Convert `snake_case` properties to `camelCase`                              |\n\n[glob]: https://www.npmjs.com/package/glob\n[js-yaml]: https://www.npmjs.com/package/js-yaml\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n","readmeFilename":"README.md","_id":"@manifoldco/swagger-to-ts@1.3.0-0","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-dxdNKuSzGNHjrIBQQZJmDqXHvSXyAC2OdAWU1yIl4+HDR1yVMR1fG57AXlPDbuhzfkKXj9QXYtJi83WGfS7rgQ==","shasum":"46fb59e4c0e71680579df453ace69974d628e57b","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.3.0-0.tgz","fileCount":11,"unpackedSize":40986,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSGv3CRA9TVsSAnZWagAALysP/AqxdbH7RUM7e0u26ZTR\nnhJ2i3USL7k5rSQxm/lBRWIHWMo36elS3zjCTFBCUtDLelLpYkMsFVWv9QeI\nfLgrvlukHE6G/uB4XeBkgLbIwhofdx7bn07T/BjxytNCmGSFbazbpx3ozxHH\nnHD2c2/UubioAD4pbb+KlgErFi8LiPSFCslx4dEeAUWKu1YMmtGar/ZLIIEh\nXDNoX1jNNYdNW5G5+haHpHSTYXzrb5x0ZXk/RFUszPHafXVnfMOjymkGEeuf\nf9a8lJpM8B4qVmAF2snNFi5G0kOUFHbH2rS7ukJYIlU3Z7Z+i8prnM/4rlJR\ntvvZu2yf6muGaEJ0ODHSFbgymjoWsQXGTQWog/MfoZKM7+kEvcLtX3rW8bB5\n2cvJdwuzlbPyCT9JdSov9jkfRdHFqXq4ar9OU/8d9W5DditEnAOKjIkxK+j5\n9S+H1PBQNBcn2OrBMzN1A3zXGJl0yXjI/H0izaHR8ZzaxFJrLtoTPVICyMl7\n+P50PF3MgNr/EBkjfelMIo/1jq5P0+zkcABJ1+SDWLSnGfRbZ2snBu5fSE9e\nTosZu3I7TFqdCw+thBgdzRlTlULr3GMJ1D04g0deCibe+RHZE4lau2TJzLFI\n8sCbaxnC5qTUL7p3GaVtbKXslfWSJJIdZmyROqdMCA5ZApJTilbdOe49EBrh\nEAn8\r\n=KEma\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDGveld5njarhaEwFtIx46jDQAjekkrVq9+pqrZVfK+WAiEA3MaFIn7333EbhZz4WfesN4VuyHqjeE9anmmDlYB5/eI="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"janet.adrianna.carr@gmail.com","name":"janetacarr"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"kirsten@manifold.co","name":"kirstenrichard"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.3.0-0_1565027319213_0.6804915509515455"},"_hasShrinkwrap":false},"1.3.0":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.3.0","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^8.0.1","js-yaml":"^3.13.1","meow":"^5.0.0","prettier":"^1.18.2"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.6.0","@pika/plugin-copy-assets":"^0.6.0","@pika/plugin-ts-standard-pkg":"^0.6.0","@types/jest":"^24.0.13","@types/js-yaml":"^3.12.1","@types/prettier":"^1.16.4","@typescript-eslint/eslint-plugin":"^1.10.2","@typescript-eslint/parser":"^1.10.2","eslint":"^5.16.0","eslint-config-prettier":"^6.0.0","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","ts-jest":"^24.0.2","tslib":"^1.10.0","typescript":"^3.5.3"},"engines":{"node":">= 8.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","_id":"@manifoldco/swagger-to-ts@1.3.0","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-/RyDBGNw4D6QdgNkSH+NaQWNS6weG1lSSQE++P0mVOtd3YWeEcb8aFB/LbcVeXbo3T5pwKkd12XjAP/cepi5Pw==","shasum":"57c7f6bfd7ada9cd0f4be0f9afc1cb4af6eb2f48","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.3.0.tgz","fileCount":11,"unpackedSize":40984,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSG6rCRA9TVsSAnZWagAA3HkP/28SGH7t3MdQPoXteYlC\naWTweMYLtWRTSmSCyhtmnJTHxg+C2zeZho/sVQbtdse8Ds4f/CsMDZ31XpKu\nZe3cBUNAzpQrJy6Y3keM5T0ZGFJIg6ws3UIk55MHT2kkdFx5CgVWvYnV6DEK\nA5HdXVtzkSRhZzHpeFvJf4yTgRs2iCYXqpD/sM9Q5ULoiz/JZtHg9T7l0vTV\nbg9S1Xyj6VieIdTeW6+hjCX/F5AN67k3/Nnrn41CK5egnC2Il+7Q//2F7CrX\nBJT0z4u9+42vfkor18AaaalNaZd4vVDgflQqEiiz5sEA5qh+9kn+ZNisyU78\nicRFMUgFjRgLVoSURlls1X0wkbHCa6RZjp8OAyo2Adudxk0Sy02YQomLefqg\nbbQyR3Ob7YOmmph9l1vC9cTYBAXT1V2qEV75LPvqSqBuOlPnRzklsZAZua9z\nlMik57+t9Pku+xdQzdmoPOrkGKUUmyxMR7TG8+8g8GkYVQhDYt/EX6/Z1TqJ\nl4nYE3PEUDGG0pD3dwY4+9I4SvDIbFVQCqlCxAarQd9gacNbPkHc/AjNdMgC\nWFVmm1Y53mq0E3l5cXMfSE6r33unqLCSLA0ocNZRoKk3iQm+yPY+HIAyi4RB\nX3C9Fiyds6u1RWJmmdiKRkR0MHoZAyn+n+/gPWvmCEC5EwECBxObSnhAl6qx\nWoWL\r\n=b8Gx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjEdizMiW4Tw2Qzvdb7cxFHUnF8WF9QKuMgG6dxT+wZwIgQjrSQ8OBU20C8Y3LVnzXCg+obExD4Kxacyoyn5rMR8o="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"janet.adrianna.carr@gmail.com","name":"janetacarr"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"kirsten@manifold.co","name":"kirstenrichard"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.3.0_1565028011072_0.8710924555285064"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.3.1":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.3.1","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^8.0.1","js-yaml":"^3.13.1","meow":"^5.0.0","prettier":"^1.18.2"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.6.0","@pika/plugin-copy-assets":"^0.6.0","@pika/plugin-ts-standard-pkg":"^0.6.0","@types/jest":"^24.0.13","@types/js-yaml":"^3.12.1","@types/prettier":"^1.16.4","@typescript-eslint/eslint-plugin":"^1.10.2","@typescript-eslint/parser":"^1.10.2","eslint":"^5.16.0","eslint-config-prettier":"^6.0.0","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","ts-jest":"^24.0.2","tslib":"^1.10.0","typescript":"^3.5.3"},"engines":{"node":">= 8.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","_id":"@manifoldco/swagger-to-ts@1.3.1","_nodeVersion":"12.9.1","_npmVersion":"6.10.2","dist":{"integrity":"sha512-Id1KSCj9HswvGSAfu0VBzLONhYFu7dL7YNswZ29jMg/bxtNqIdw1L6odWIJ9jGmyOYwpy5sHNdIf8/zmshHF9A==","shasum":"f998490f8ed258d772b347406f6a2b38d1ddf97e","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.3.1.tgz","fileCount":11,"unpackedSize":41500,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdZvMBCRA9TVsSAnZWagAAM/wP/0fHoIzDp1YDPQNCay2c\nm+kFDobqqqMf2x5eKaUWq3jEMYN9YFuU6i1080yN5V1JRUfRPAs72I8c6cRm\nC+TzidgfF5dMHH92xrJv4pZoG68Rj7sTJzLa6iQOr4muFeU7YlxqocAwi698\nTI+lq9iOo1w5yPksjuLgj5bliwq2m89nH5ljmdktGnP72tDvKKW2BV0xJkWx\nQ+tVGE9qvwSBDxYP2yhYtmf1jZPZtK+3wL6v+wS1UkR+u8g2p9N1/ZmaAW4P\n9S/jlU6ORpg0NzjHK8fLZ4oWvJTKoY5rbjZ/2T5v2TxyA42o0hIzEn+wwgwC\nVrxAcfLZQUQsR2dHW58j6CmiO6FGyr/5bzYfnsGl/BjVlzFyZTBxXwRsKalf\nUHGX7LUQcKcVqJv+l0WE+kryr6ocZppbg7aVWdcXU9y5+kS6DduoTqI5Cec9\nE48j/0M2lsoiV+Q2r1dAhPjvgh2aLeEd8Ldz5YuYM9XfJPzydHGLxoKy5wAS\nzcB9B5JaVript5eaMSC6MA1JV0jsmGYPr3oXh6HvSzhXvwEodUnZR2aOPDdo\nEG9rEzSIJB60w8ZuiAqoYNLxSv6j5H5wIQYLRMjHOVu3sGzO76RUZ+tNCFWH\nJ/ctm2ygQZlRXgR9jwTZoueEucEiN9Vqg3SxqfwLOftVTmxe5C0cE6/w0TcT\nGnjB\r\n=l4R+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa1CMPsC0dl7jFUsleTPrfSYhgsBsJ1/m1laC1RUTMsAIgdPCvJEtq6PLBlBMsmeVRuicPbTsEStUVvRZbSTv3C0Q="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"janet.adrianna.carr@gmail.com","name":"janetacarr"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"kirsten@manifold.co","name":"kirstenrichard"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.3.1_1567027968286_0.7367308610572667"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.4.0":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.4.0","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^8.0.1","js-yaml":"^3.13.1","meow":"^5.0.0","prettier":"^1.18.2"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.6.0","@pika/plugin-copy-assets":"^0.6.0","@pika/plugin-ts-standard-pkg":"^0.6.0","@types/jest":"^24.0.13","@types/js-yaml":"^3.12.1","@types/prettier":"^1.16.4","@typescript-eslint/eslint-plugin":"^1.10.2","@typescript-eslint/parser":"^1.10.2","eslint":"^5.16.0","eslint-config-prettier":"^6.0.0","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","ts-jest":"^24.0.2","tslib":"^1.10.0","typescript":"^3.5.3"},"engines":{"node":">= 8.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","_id":"@manifoldco/swagger-to-ts@1.4.0","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-J3tQLUhutxzmI9L0Ngue3oQ5Yy62GkygKy9iWVTQZKnksVnfajitJm/TpsqWtboNDrbfMkuh2MGW0KBFFdEoAw==","shasum":"48906ea0ab4d988bbd943ac130047938b73028f9","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.4.0.tgz","fileCount":11,"unpackedSize":41523,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdk2imCRA9TVsSAnZWagAA3AMP/R2yJXaqR4G4dc1LUWik\n9WVtoxFAMEa7JF3bgx9XkwTNqdGDArQfL1GiEjz9mNjHnu5NFFNOz9BH55fC\nJNHe8v4utEBYFQWCw47Ix+cGJrgyZdIpjF8RXjKR7GnzwhQPs5oIDnJmmGD7\nXndg+vZAxm5vEWFXUVlSalEdIKJJqbIcc8ayv/oaHc+pjNdb6LiVFvCUjZeI\nNEORQwPN7bVllRSCUUnwD6AHi01qJMKK7w8VTtZZ3WrH9vYoY5ju/udN1kfN\nPTF0YBGAnF5HecwC/FSSEjOG3VNB5EuxsvLJThtcFjqHnZ8JPpYm9VP/v4cM\nkjUag07oCdKksmZ5wBdmK1TOMD9EOAjqHraM5Yd2pCfuokhPzMDopWQwQFMw\nATHpaeVJraRjYauZIoxc15hGSz/n4tGlkIxpFThHgiAfNUAK/Nbuz4gkPFGh\nRHxf6NRqU53BeT6/2GHpp5Ji3LBhoD0uIOq/QSzUFrEu+1VnOgyJJhrqlFgU\ndewTesW3LPipk0auJVb5aQZwsM6RjP69LKy4IvZeiOeDcb5veckypha4a/5+\nRPhglvSsBSgbpF5RYH0M0S1LOTT92x1mGS+JDgQ7v99F9LuF+/NO99XC8nIl\nJwJk4OatxwukUe6yKgKJwI09WvlZjD8FOb6z0eCOuoRqI+4tJl/EZW1ZXO+o\n6g1t\r\n=ZLHq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2Z/FoCnh21aGNMOYFGaYvdpHorlGdice1z7TDSATmwwIhALnEwo7t0N7e4FJhJS6Y5K8ThzwfE2H0Qw0ZG9Gsatzj"}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"ianrlivingstone@gmail.com","name":"ianlivingstone"},{"email":"janet.adrianna.carr@gmail.com","name":"janetacarr"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"jessykarenman@gmail.com","name":"jessifoo"},{"email":"kirsten@manifold.co","name":"kirstenrichard"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"boudreau.benjamin@gmail.com","name":"seriousben"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"},{"email":"iceczd@gmail.com","name":"tim-speed"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.4.0_1569941669752_0.4724077394451276"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.5.0":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.5.0","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^2.4.2","fs-extra":"^8.0.1","js-yaml":"^3.13.1","meow":"^5.0.0","prettier":"^1.18.2"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.6.0","@pika/plugin-copy-assets":"^0.6.0","@pika/plugin-ts-standard-pkg":"^0.6.0","@types/jest":"^24.0.13","@types/js-yaml":"^3.12.1","@types/prettier":"^1.18.3","@typescript-eslint/eslint-plugin":"^1.10.2","@typescript-eslint/parser":"^1.10.2","eslint":"^5.16.0","eslint-config-prettier":"^6.4.0","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","ts-jest":"^24.0.2","tslib":"^1.10.0","typescript":"^3.6.4"},"engines":{"node":">= 8.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","_id":"@manifoldco/swagger-to-ts@1.5.0","_nodeVersion":"13.3.0","_npmVersion":"6.13.1","dist":{"integrity":"sha512-jaVlTj2sO8ZNkvJTw6PTgcEhMf4aGJLFNmht9c5B+CvwEaB3wWCmUwniJMHyq55VtPrVdfL9jlOiLKFRAqVhEQ==","shasum":"e4834e70b00552aa4dda62e3a4b32e6c51ab11f5","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.5.0.tgz","fileCount":11,"unpackedSize":43823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8p/3CRA9TVsSAnZWagAALXUP/2hyoKF9/P5jpbwRXnQN\nzFftohfyb0AYMPZ4p2CiGDIVboQVEyqrCrD6CJA4WSjY6koC99GrpvVAC2sZ\nurdB8UeBL7h68WoQNEwbSuiBmbDI7/0LfD12Q9asLgUhRyDwH7JwoU8tC4CF\nG1aVqyM4SsY2JNOf0+0NyNtCFTiTy0Z8HDd80lKL1xZU14i23NY61GpHjbSp\nURe9rM2+T0ZLC9cBkz8EyzDbiUcy6mxLHwTH8+32YOmboCzLCrqLDEpjuXtL\nNEU4eWxxM8UYvgEEAccU6fzFjn42aIiHagg5KwZY4KHyLqatPO7Yk7inpnT3\nUpQ1ip16WwCzyysT9jS+2F6mb4DbMOO/b0FErQmlI9PIh1GyP8MKRvNHdDIz\nYH2MNUuWwuK53Ey1v+4g6WQIZh4gHXXpYPqjstH6/3IKyw2xFZxJlUKIyRgy\n7v6mx4228OiFK5yQNhsY1NhDa9HOZ8yEWIcgowgwEmQgNHlSGg1ik/Bkg93o\nAh9nF5fFrtKXbAZi2A9QOuguBT0pKFDWF3aupexkN3iA+lNqOROqtIiH+UlU\nzz6YEcbpRrpzb1bUoy3RCF/evY46Sh40x42SKyBK+kfbKQoaOoAJS4NWGj1J\nD5GsuLFnVBWcJZBakbf/cmYU5DTyFiZcVzRU94JXeBDebLmjLWHCIFRVj0HI\nbfsA\r\n=XFpG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKwu75fNEd1KJJ+ZY3ic/lukVx5ocnzzJm2wv5ei44IgIhAOykv63aiPf1qg4CuUJuFjXUs4zt26sE12V6RR4W3Lns"}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"janet.adrianna.carr@gmail.com","name":"janetacarr"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.5.0_1576181751457_0.11434518968721297"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.6.0":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.6.0","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^3.0.0","fs-extra":"^8.1.0","js-yaml":"^3.13.1","meow":"^6.0.0","prettier":"^1.19.1"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.8.1","@pika/plugin-copy-assets":"^0.8.1","@pika/plugin-ts-standard-pkg":"^0.8.1","@types/jest":"^25.1.1","@types/js-yaml":"^3.12.2","@types/prettier":"^1.19.0","@typescript-eslint/eslint-plugin":"^2.18.0","@typescript-eslint/parser":"^2.18.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.0","eslint-plugin-prettier":"^3.1.2","jest":"^25.1.0","ts-jest":"^25.1.0","tslib":"^1.10.0","typescript":"^3.7.5"},"engines":{"node":">= 8.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","_id":"@manifoldco/swagger-to-ts@1.6.0","_nodeVersion":"13.7.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-98XZDx4heAxA52imkTJF8mcTrM3UbWRE2Ap04PEAOTAG5Ow0eauntODuD/QVFHDc3bzvmLxxFb0ObnO/sUVShg==","shasum":"b0d0fc53c3a9fb482fac57d52bfe046f32a91d8a","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.6.0.tgz","fileCount":9,"unpackedSize":41496,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeNx3bCRA9TVsSAnZWagAAwewP/1D4gL7t++14gCfeYzmk\nGP347JndJUemig4vfCBfK/qZWv8PKUZsR97BI7lMvYKUsc1OUEDUJK/ODmEL\naPxqtgk3o80nP2i+2CGDj/xNULM4g1sJzpATQV3R/gk92+/ly/9Jt5Qf5DO/\n2OGc4Zo1YTFUdSAckZCnJIMu6Vgmwf1HX43pprzp+0otFQ3Hkx7AqSKF0i42\nwZsixouf4zikmlPdSoA5G2G85hQf2ukQCgEJpU//61U1OQ8Jj8ChRmKMIhYG\nTpaj0rRpmGRx8bBwpzuVsRLApgsy011fkAXgWe8x4mLhBhLa89/sRHD+PPiU\ndR63YFaGpSjPBjX0IAFZGMYduK0hlGj/uetgxp43XOvdte8mxn9fqDnYx7uH\nrPczhK+xbKxAfzyKdK8u4v00YCkipsTw+/6Gck19VMC4+UbRl2zAAhQqxot8\nOW4iAsIlxJJ1y2AsyAraVgBktFTCE+wCTyTzqtslSYWhFtS+711FenBb8ZNw\nudvXHo6B6st0RXeOYkOZPA1hmnyin74bYldlrDpVBcC2u9C5E7ZCl7sXpJK+\nJEn+7RfviGwnpgaw4Td52G/TIKDABTbf/ZtWZ2TkUVwxLWgBfH2ncNpUd271\nFKwPGwFRJumeFUwruD2ReUCQm3j1emiAgSEDEmgqvmULPWW+13e//HUweihU\nk7tx\r\n=q0qd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCp21RiVGQyRs/PKeNbRMspNzL0hfi9WQbyg1ZXo0sq/QIgcXEkb4f+88xyy4b9vLUet/iHVOZb0B5FhXJfq57Zrjk="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"janet.adrianna.carr@gmail.com","name":"janetacarr"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.6.0_1580670427325_0.9882353856376751"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.6.1":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.6.1","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^3.0.0","fs-extra":"^8.1.0","js-yaml":"^3.13.1","meow":"^6.0.0","prettier":"^1.19.1"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.8.1","@pika/plugin-copy-assets":"^0.8.1","@pika/plugin-ts-standard-pkg":"^0.8.1","@types/jest":"^25.1.1","@types/js-yaml":"^3.12.2","@types/prettier":"^1.19.0","@typescript-eslint/eslint-plugin":"^2.18.0","@typescript-eslint/parser":"^2.18.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.0","eslint-plugin-prettier":"^3.1.2","jest":"^25.1.0","ts-jest":"^25.1.0","tslib":"^1.10.0","typescript":"^3.7.5"},"engines":{"node":">= 8.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","_id":"@manifoldco/swagger-to-ts@1.6.1","_nodeVersion":"13.7.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-FzX+6FeEd6t2TCqktedHF/2oshHEiSrrOAUuFFRutIXHpATcxh3aB9f3w6IovK5IPbdW9kJIHulq5mDBjrFizw==","shasum":"c94cdbc9b09835f8d44fefbe7cc3992e99c70b17","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.6.1.tgz","fileCount":11,"unpackedSize":42888,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeNz0ZCRA9TVsSAnZWagAA9+cP/A7Gz9T3dkMZLPBSCmi/\nYJu87kY5woloHBlOMJV9yYRoN+I73KSskhzLtpa3PnLXk5wPnclGBqkXVJX/\nH+8h9R3BYR//iCPFRyqtsZJs8nJzzmxFg5BGPyF0OUZoUY/pMEmmU0s7wfE/\njJ84brCqGgQhhVTPHH1558Cox8B3+onmyZlP5fhlZe5qSUXONLu/IcvYUlQ3\nvRTyFx5J/x88j+3xT+8cx1rPWw8N4KGWC6nisroM+PkZEiOCwDFftHpk1Ujc\nNs8Dto6if/iEBZatjmhOVCI+YrNuda62r2SLzHgGdteOIDFt2OmXPoRLRmNM\nxc5JW5Co0DN3DWLfqqiNxOUE0ALQIszem+NBVfwuXkxKWm/ECLZQcPTR1DU6\nxE4z0P2vdyet7QHQJKdzNNQwkeF0D7akW5yyhUrVNFDfB87X3Aecj6zXq2j3\nM4sxcybGzCqX9gpvhwt7GOE8OcAYO3Ia8Px2Rk511e9QBaaDroidyfNw+qdr\nyfRunDSF/sTK7dV2zatREIIB6vcO1s4EgRTp8hmjKPIPKK54RYgoiVDJ++7k\nWQIa74wK5jRqAj2CuwO6XpbtcAsWwQLyQMDOCDNow6UG8nlPR5c9R+bHMH6d\nz9FzzwkWSWixco8p1UNuO0El3ET355FhIcTrW8sESNkh6mOsx6peF6hwAPRJ\nhZYN\r\n=yktR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF0oHk9waG+Z2cG5P/Yc34WvDK8DoGrT/RDdaOuDSvItAiAYiz5uXMjFC5ErlSNHeJdmAW8PwjoK29lDuH1hK+kQpg=="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"janet.adrianna.carr@gmail.com","name":"janetacarr"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.6.1_1580678425409_0.687240649637239"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.6.2":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.6.2","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^3.0.0","fs-extra":"^8.1.0","js-yaml":"^3.13.1","meow":"^6.0.0","prettier":"^1.19.1"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.8.1","@pika/plugin-copy-assets":"^0.8.1","@pika/plugin-ts-standard-pkg":"^0.8.1","@types/jest":"^25.1.1","@types/js-yaml":"^3.12.2","@types/prettier":"^1.19.0","@typescript-eslint/eslint-plugin":"^2.18.0","@typescript-eslint/parser":"^2.18.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.0","eslint-plugin-prettier":"^3.1.2","jest":"^25.1.0","ts-jest":"^25.1.0","tslib":"^1.10.0","typescript":"^3.7.5"},"engines":{"node":">= 8.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","_id":"@manifoldco/swagger-to-ts@1.6.2","_nodeVersion":"13.7.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-48ZfbxwqTTuWDyi7VDsp0W51VT36Pf9M/Fmf7Dqh6BlxvAmkFFZ0Miaw0jFVV3yO6Ef1XHRBNt0VgFjxevpwkg==","shasum":"175c834b9207e23b50a6a76999ff333a9f55f9bf","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.6.2.tgz","fileCount":11,"unpackedSize":43827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeN0IkCRA9TVsSAnZWagAAhiwQAJORhR+cMf6IHfz2Tx3K\nKbS7IFQG7PqutT44GTgAJHTGlCHajLYS+wZD1UN1HirewQs1RYFA8PXWdNA3\nQstH6m2TaThIlnTsjDnZVo5FuPjQdqQVvDGuFaF9KLssEh+ZF8Bh8T15TOrJ\nfXmQs+144r6ZnQHhAlMlaB7W+mRsa8DVKaSeUvRb5f40qr4EL6B5U+C3MMQB\naaXMOZzxZgfpDGNeh+saGki7ea57NnnJhNf6LLiyMFGnxNwsIavlde/h5dLz\nesx1cAxOUQn2J++rXM3T+kJlvLTBDV0Hi0vZtNpuvSlBE9McSpLENucpL0yf\ncGk6UV31ieg8MMuPtu5qMIZ3pbq4G7zHow86UvjpRDwMjS6ZPrNzJ/Jdwzvp\n4aJA0/h69NZUU5SE+MvyM67FeXPmmYdxt/tuvsF353OdAXubsM3pCgFvn+L3\n99LZ3W2yYnWQ42yNVgM1O+viJsD280dfOCRq49I9QcimM3oO61hrESfCOUVN\n3FzdhR9UeZVwr58UuCw9mRGTSgHRVEXuXVRJJyFYV961IgrADcbzNJudulK+\nIKEpWczfEH3XSGczIyuEjN3gLPkivf2lPlKl+jBQ1wjIlTON8FpbAzQqAGXQ\nYJHZQy3PllJnf06ClllfJq0q46zne1vmTI5cYGtr1FUeiwTvLH1XI2HxUpI/\nBjxC\r\n=tEYu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGedGC7WY+O09yCKmQJ/z5b1UGuKuv4XqX4ZGjkyU7OyAiBz144mxBrkYCMsF7rBmecrRJ1N25iBpM6w6goDa/Aumw=="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"janet.adrianna.carr@gmail.com","name":"janetacarr"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.6.2_1580679716256_0.9608866501236213"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.7.0":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.7.0","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^3.0.0","fs-extra":"^8.1.0","js-yaml":"^3.13.1","meow":"^6.0.0","prettier":"^1.19.1"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.8.1","@pika/plugin-copy-assets":"^0.8.1","@pika/plugin-ts-standard-pkg":"^0.8.1","@types/jest":"^25.1.1","@types/js-yaml":"^3.12.2","@types/prettier":"^1.19.0","@typescript-eslint/eslint-plugin":"^2.18.0","@typescript-eslint/parser":"^2.18.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.0","eslint-plugin-prettier":"^3.1.2","jest":"^25.1.0","ts-jest":"^25.1.0","tslib":"^1.10.0","typescript":"^3.7.5"},"engines":{"node":">= 8.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","_id":"@manifoldco/swagger-to-ts@1.7.0","_nodeVersion":"13.7.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-CwHVPiYn7GXczHAXXe28SLxvG9ZAZozLq5boHGBEanBV1EvOxKEhx+Lc1H/Y6hYZfRxrRNzIrgr6FfGi0tp2IA==","shasum":"63ed5d213b0798d8710318a95886435c0b695ad7","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.7.0.tgz","fileCount":11,"unpackedSize":46292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeN01OCRA9TVsSAnZWagAAhN8P+QAUi7Vlqc8vUdE6R1Ez\nkOuobNzk6SMVDy8ssYYG+NW3IW83zE7PU0nGYia0BOauJVMFjxBAHXlsR1ID\nRlUp5cOTq0WUnVoqyEDmFiVLedoG/qZ6EmB4m+FfA7aip+YZnzNAkCZ3xBHH\nUvR/4cvYloTgU8kb1onp8pPfs6XOCcJfYsOL0po/HjsBQO+pFlLJ/NkbUrYs\n7TQWIce5ATkVpdYj8KxbrrN+mYCt04NuT/yHeHJsNE8gw5dLI6G/gPZmhDYT\nCrMofazAzLu1NthTnAF5kp4NU/dToB6qbyjGRI2i4N6k12JAXAhzd0mwbm59\n/DPBGAsjUX0S4A42MB1IqmUvs44HCUPYEa9LuQFWaAyV5ecd7XwZNC8CN9+I\n1t/LOeOoyesbtlOPbvdDlryFsQfkKIRVeoRT0O4vWVHGPZtGeR5dE+T5YhZo\nJtyPASf9RcgwaUIcB8cNnTe15xf3boVjlFMUBCeKRiLiz0dHRSV20uEN75mg\nK5BHxomXLFq0ZgbCWk+uPmFZ7xfQrO4zMpq4D0VRi2XpvPm6QNTg1PqUMUd7\nDB6hxki17kS48RxPNitrgUFBiP/pknz4JXEWSKf+vM7BvTsbyXvctQddLWgt\nHm0TuiSHp8Rwsb6e/wBh8Ew9DW9fTzWfSX1X6zgmPwkNV9gAW6kyQtcrHgHK\n9fbp\r\n=dvii\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcicvktAWBd3dRzOUdfaPvJ+ZQ/b1QwhipLJNT8NOD5QIhAIL+ktMeZx+vIFbSIHUesD3eXvmIhnw5biUtRme7d8lR"}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"janet.adrianna.carr@gmail.com","name":"janetacarr"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"saxosamo@gmail.com","name":"sslotsky"},{"email":"terry@designcollider.com","name":"terrysmith"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.7.0_1580682573873_0.5056533330239377"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"1.7.1":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"1.7.1","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^3.0.0","fs-extra":"^9.0.0","js-yaml":"^3.13.1","meow":"^6.1.0","prettier":"^2.0.2"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.2","@pika/plugin-copy-assets":"^0.9.2","@pika/plugin-ts-standard-pkg":"^0.9.2","@types/jest":"^25.1.4","@types/js-yaml":"^3.12.3","@types/prettier":"^1.19.1","@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","jest":"^25.2.3","ts-jest":"^25.2.1","tslib":"^1.11.1","typescript":"^3.8.3"},"engines":{"node":">= 8.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","_id":"@manifoldco/swagger-to-ts@1.7.1","_nodeVersion":"13.11.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-SasBgQKRPgN85U8rr4i+0zYxozeL0HUHhfx87XsPT0M9Aqo7z2N4duW4GSUbZK1YlHXCly9fWm8mixnSDPNeqg==","shasum":"108a2878080dae94eb640b1bae84aedd4f6a934e","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-1.7.1.tgz","fileCount":11,"unpackedSize":46157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJegNY7CRA9TVsSAnZWagAAtiQP/2N7n3mNVJJiVqwXNvYh\nTegSg2Ye7+0RlYi+uF7eXkyCL3MoAF3IotwH9WFKhzCh17Xf32+NsXjm7U7s\n/RN9RVAXs/088svUzeaMg62jSQUrR/RyNbXPwq74ny/CZn/JlnYn6sGRc99F\nPqaSHxEBahrY4CzsSkgrcoYzAinYBiIaUf4cWMDbkIVR8mnUKHvFss3rMSUM\nNVtktPXqyDTkPwqtssAw0OMCdlWiQxQF0FeYlguvrvzRKvljLgbwxOlArobG\nNguNK0MNPhUqQF+Bcic6Nup/cqLSGW++0lvSwVVUHCe1fOMrtjbTRR7QwnUS\nTNt8+XHfsS8utH4Xk8P1mQoSCRJXAuCcu8v7fT8v4JzQYA783Zw1kqcMWuYu\nHMwNPC3AKftfcJbSX/es7lhN+Uqn2luW3btG1hABzT2m/sUC3E52/MNffSP4\nxd+CMRpOe39PpUToDAXIwVgSkUqQ4S3B/b4xLKiLz9fR1YEkcVCgzErX2ezo\nWlk2A9zvy3BCaVzqHHoGa8z0ZNaUcVQxPPWwaebET4CXnpQnZF04wgnShdpt\nQIxpTiahlFHJ0+tPdkItxU8UOGrLA4Dq7+LN3Bi/VDWUHiTqlF5mbAPD2fdI\nfsV/RsFt7nWIqkXLSJDX8joFF4eTB+aHPl/8vS/n9FngjBNBcE54HRd4+lbb\nszSa\r\n=BYXe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICdWOHAluANAGGQnd0K/jZ7EbF2zkV/Zt5BMoMe8ds4EAiBFWdHFJKZel69SqS9MSBeTse2OssV0wIh1YH84ijRK1Q=="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"saxosamo@gmail.com","name":"sslotsky"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_1.7.1_1585501754754_0.357772915471809"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"2.0.0-alpha.0":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"2.0.0-alpha.0","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^4.0.0","fs-extra":"^9.0.0","js-yaml":"^3.13.1","meow":"^6.1.0"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.2","@pika/plugin-copy-assets":"^0.9.2","@pika/plugin-ts-standard-pkg":"^0.9.2","@types/jest":"^25.2.1","@types/js-yaml":"^3.12.3","@types/prettier":"^2.0.0","@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"^2.26.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","jest":"^25.2.7","prettier":"^2.0.2","ts-jest":"^25.3.1","typescript":"^3.8.3"},"engines":{"node":">= 8.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","readme":"[![version\n(scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n[![codecov](https://codecov.io/gh/manifoldco/swagger-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/manifoldco/swagger-to-ts)\n\n# 📘️ swagger-to-ts\n\nConvert [OpenAPI v2][openapi2] schemas to TypeScript interfaces using Node.js. It can handle large\ndefinition files within milliseconds because it neither validates nor parses; it only transforms the\nbare minimum of what it needs to.\n\n💅 Prettifies output with [Prettier][prettier].\n\nTo compare actual generated output, see the [example](./example) folder.\n\n## Usage\n\n### CLI\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --output schema.d.ts\n\n# 🚀 schema.yaml -> schema.d.ts [500ms]\n```\n\nThis will save a `schema.d.ts` file in the current folder under the TypeScript\n[namespace][namespace] `OpenAPI` (namespaces are required because chances of collision among specs\nis highly likely). The CLI can accept YAML or JSON for the input file.\n\n#### Generating multiple schemas\n\nSay you have multiple schemas you need to parse. I’ve found the simplest way to do that is to use\nnpm scripts. In your `package.json`, you can do something like the following:\n\n```json\n\"scripts\": {\n  \"generate:specs\": \"npm run generate:specs:one && npm run generate:specs:two\",\n  \"generate:specs:one\": \"npx @manifoldco/swagger-to-ts one.yaml -o one.d.ts\",\n  \"generate:specs:two\": \"npx @manifoldco/swagger-to-ts two.yaml -o two.d.ts\"\n}\n```\n\nRinse and repeat for more specs.\n\nFor anything more complicated, or for generating specs dynamically, you can also use the Node API\n(below).\n\n#### CLI Options\n\n| Option                | Alias | Default  | Description                            |\n| :-------------------- | :---- | :------: | :------------------------------------- |\n| `--output [location]` | `-o`  | (stdout) | Where should the output file be saved? |\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst { readFileSync } = require('fs');\nconst swaggerToTS = require('@manifoldco/swagger-to-ts');\n\nconst input = JSON.parse(readFileSync('spec.json', 'utf8')); // Input can be any JS object (OpenAPI format)\nconst output = swaggerToTS(input); // Outputs TypeScript defs as a string (to be parsed, or written to a file)\n```\n\nThe Node API is a bit more flexible: it will only take a JS object as input (OpenAPI format), and\nreturn a string of TS definitions. This lets you pull from any source (a Swagger server, local\nfiles, etc.), and similarly lets you parse, post-process, and save the output anywhere.\n\nIf your specs are in YAML, you’ll have to convert them to JS objects using a library such as\n[js-yaml][js-yaml]. If you’re batching large folders of specs, [glob][glob] may also come in handy.\n\n#### PropertyMapper\n\nIn order to allow more control over how properties are parsed, and to specifically handle\n`x-something`-properties, the `propertyMapper` option may be specified as the optional 2nd\nparameter.\n\nThis is a function that, if specified, is called for each property and allows you to change how\nswagger-to-ts handles parsing of Swagger files.\n\nAn example on how to use the `x-nullable` property to control if a property is optional:\n\n```js\nconst getNullable = (d: { [key: string]: any }): boolean => {\n  const nullable = d['x-nullable'];\n  if (typeof nullable === 'boolean') {\n    return nullable;\n  }\n  return true;\n};\n\nconst output = swaggerToTS(swagger, (swaggerDefinition, property): Property => ({\n  ...property,\n  optional: getNullable(swaggerDefinition),\n}));\n```\n\n[glob]: https://www.npmjs.com/package/glob\n[js-yaml]: https://www.npmjs.com/package/js-yaml\n[openapi2]: https://swagger.io/specification/v2/\n[openapi3]: https://swagger.io/specification\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n","readmeFilename":"README.md","_id":"@manifoldco/swagger-to-ts@2.0.0-alpha.0","_nodeVersion":"13.12.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-tyXP10nbOV9cpuzDGaO2ujriZ8aRVjk+U2SmvKXATx8SjwzFPojter6NdzGEPFGH3NDaVFszmtZu+X25P1KSKw==","shasum":"3567d60deb707b5e9f85c3f6b813ef75db23d839","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-2.0.0-alpha.0.tgz","fileCount":17,"unpackedSize":42128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeiUIwCRA9TVsSAnZWagAAdHgQAJJU/B4C84VeLEMCXPf1\n4ClTnkwlwELa+e4m2WXIbBIvdtHDbTXajTW/wcMpC4mQtzNeZX0a73jSBK5G\n/A5+dQraWlqfXGwLVVCd+ExOo3R86r88zuXu5yjBkfEZUAFXkz2Zo09d18Qn\n7dEs0FFQ8dmNqKgJCodegUNRPy+HNTxIlx2Q1Q6+jERVdeWoSRL/4Nr/4QNT\n4ZMNgFcBw0M3L00hxtGe5ZcQbY9XkRZZmiAYCctJcyK+rn+9sweQ+aT/pIIi\nYzfLksgSewDt4yUNh+x8rYcGu4qpsnjHa5Qpu+LR0WgVbFj3/nV1HJIlFEUw\nYThqJW/amvwtt20am4AsspFBISAkj+od5IOJZUjvC75Sb4MqLE+J9dWiKHGY\nt4G0LREQdlh9n8Q8plln6c7NBM7NXcaPNeAaIjJGlsiqNiJzA2Z33OE2eYwB\nPtT9cZQXFMkwLgeghOE9G3TX7oRqbn6OM5aszBXKz0hVa4lkToDU2Z8W+qld\nHT9lTRqhZKajwqaT8FTdS7s1AmjlKUAZiPEcjfuZtN+NEXBB4Xd899jqKH7X\nFJbStyHfE9Qra0Dou5w5o+va8y/w0isQQA3+a2iEHzPQjcatAizJ6X+HdSBq\nCf2p+H0NduuY5phRtPieeaG0Zo9tY3vcjivBMW32G9HG6XpX044jjkMHPOJE\n+amR\r\n=Y+rd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxk0F7wUVhdHTXxV6wljXpfW4KuJToZmedVWQzDb0/swIgIG0Yrsl8QWCK5SRv3CAeu27kv+01WWBrb7wQpFZP9Gk="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"saxosamo@gmail.com","name":"sslotsky"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_2.0.0-alpha.0_1586053679901_0.5052724286628953"},"_hasShrinkwrap":false},"2.0.0-alpha.1":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"2.0.0-alpha.1","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^4.0.0","fs-extra":"^9.0.0","js-yaml":"^3.13.1","meow":"^6.1.0","prettier":"^2.0.2"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.2","@pika/plugin-copy-assets":"^0.9.2","@pika/plugin-ts-standard-pkg":"^0.9.2","@types/jest":"^25.2.1","@types/js-yaml":"^3.12.3","@types/prettier":"^2.0.0","@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"^2.26.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","jest":"^25.2.7","ts-jest":"^25.3.1","typescript":"^3.8.3"},"engines":{"node":">= 10.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","readme":"[![version\n(scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n[![codecov](https://codecov.io/gh/manifoldco/swagger-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/manifoldco/swagger-to-ts)\n\n# 📘️ swagger-to-ts\n\nConvert [OpenAPI v2][openapi2] schemas to TypeScript interfaces using Node.js. It can handle large\ndefinition files within milliseconds because it neither validates nor parses; it only transforms the\nbare minimum of what it needs to.\n\n💅 Prettifies output with [Prettier][prettier].\n\nTo compare actual generated output, see the [example](./example) folder.\n\n## Usage\n\n### CLI\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --output schema.d.ts\n\n# 🚀 schema.yaml -> schema.d.ts [500ms]\n```\n\nThis will save a `schema.d.ts` file in the current folder under the TypeScript\n[namespace][namespace] `OpenAPI` (namespaces are required because chances of collision among specs\nis highly likely). The CLI can accept YAML or JSON for the input file.\n\n#### Generating multiple schemas\n\nSay you have multiple schemas you need to parse. I’ve found the simplest way to do that is to use\nnpm scripts. In your `package.json`, you can do something like the following:\n\n```json\n\"scripts\": {\n  \"generate:specs\": \"npm run generate:specs:one && npm run generate:specs:two\",\n  \"generate:specs:one\": \"npx @manifoldco/swagger-to-ts one.yaml -o one.d.ts\",\n  \"generate:specs:two\": \"npx @manifoldco/swagger-to-ts two.yaml -o two.d.ts\"\n}\n```\n\nRinse and repeat for more specs.\n\nFor anything more complicated, or for generating specs dynamically, you can also use the Node API\n(below).\n\n#### CLI Options\n\n| Option                | Alias | Default  | Description                            |\n| :-------------------- | :---- | :------: | :------------------------------------- |\n| `--output [location]` | `-o`  | (stdout) | Where should the output file be saved? |\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst { readFileSync } = require('fs');\nconst swaggerToTS = require('@manifoldco/swagger-to-ts');\n\nconst input = JSON.parse(readFileSync('spec.json', 'utf8')); // Input can be any JS object (OpenAPI format)\nconst output = swaggerToTS(input); // Outputs TypeScript defs as a string (to be parsed, or written to a file)\n```\n\nThe Node API is a bit more flexible: it will only take a JS object as input (OpenAPI format), and\nreturn a string of TS definitions. This lets you pull from any source (a Swagger server, local\nfiles, etc.), and similarly lets you parse, post-process, and save the output anywhere.\n\nIf your specs are in YAML, you’ll have to convert them to JS objects using a library such as\n[js-yaml][js-yaml]. If you’re batching large folders of specs, [glob][glob] may also come in handy.\n\n#### PropertyMapper\n\nIn order to allow more control over how properties are parsed, and to specifically handle\n`x-something`-properties, the `propertyMapper` option may be specified as the optional 2nd\nparameter.\n\nThis is a function that, if specified, is called for each property and allows you to change how\nswagger-to-ts handles parsing of Swagger files.\n\nAn example on how to use the `x-nullable` property to control if a property is optional:\n\n```js\nconst getNullable = (d: { [key: string]: any }): boolean => {\n  const nullable = d['x-nullable'];\n  if (typeof nullable === 'boolean') {\n    return nullable;\n  }\n  return true;\n};\n\nconst output = swaggerToTS(swagger, (swaggerDefinition, property): Property => ({\n  ...property,\n  optional: getNullable(swaggerDefinition),\n}));\n```\n\n[glob]: https://www.npmjs.com/package/glob\n[js-yaml]: https://www.npmjs.com/package/js-yaml\n[openapi2]: https://swagger.io/specification/v2/\n[openapi3]: https://swagger.io/specification\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n","readmeFilename":"README.md","_id":"@manifoldco/swagger-to-ts@2.0.0-alpha.1","_nodeVersion":"13.12.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Aw9DdQS4nxvdaD7UgD0ExL9Iuv6u5mOE8oabeLde0JWl+fwF0uhO0th3XXwbuQDZTyZ7W1+4rLkAZIt+CUH54Q==","shasum":"01539b13327d282622a0d95c4a42217f766d819c","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-2.0.0-alpha.1.tgz","fileCount":17,"unpackedSize":42817,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeihGKCRA9TVsSAnZWagAAcpAP/R77h/2u6MPZd9vs/F8A\nhbRLpnB8Zgq0w+eaZSZrwqWUHI5g7heH5qmKXxKZJpSwXyt7EfklAoWKilfx\n8q8Lv6ACQCkO9z4Gw9Sa87T6xwow97EaSTinFlpuSUn877nZ0wBZcbZDZjBI\n5NaRRss/9LC6s5x/AGy4NgPtF6sqVA+3j24RHdEGmXV/2hpCjwLkPtftFH/X\nDoZ28vOVMNuOIHvCDDFogt1xOL6+c4CuEEOm4G3SejgbzGH9SqlBTh7V1q3j\nBi+LGMDFkfjwAhFg8v/CIEjmdvYf2Hp23QQPkuA4HgBpHmL1NjEO1RNiZ/U2\nDxJIJ+lksmGNedS1O0awrNBVNKuuBQlhe80hcnw+aYcj6WyxyLaJcJmL6Qhj\nZ2K26D9CMSK88MwukPrxFT0DKol39bVq2JlJsQFmCMsQ/YOxkhiJ95xv/84N\n2PgAufEvcvSCPj1gfpDqo+CjHcXcPj5ZVYSZCISXarQ7sW9ZMmisVdC+BaYV\nfm7Mss4tgrFiPICCznh/N/jpOsDhtfJbhYskvm9/BWWB9tKD4+xdSFN6EtsD\n7Fohi9Alf18Mw6QiSge3TxdiQpDpJwLJe8miI1GNqFaH7iUzedvR8606WQgs\nqCIWTbc30jiOr0xlxuLn0ITrYbVBGve27aLhgvyjp3YLw5+RK44bNyWuUBFE\n7HIy\r\n=r9Bg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIArgDTY7TEjTN3MKClNgvU49nck/5xa3TPAQgHYYagoMAiEAqg2eUARxuC/DHYWotFkp8pPCr/V461ambW5pZ8fhjI4="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"saxosamo@gmail.com","name":"sslotsky"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_2.0.0-alpha.1_1586106761584_0.25080982787764383"},"_hasShrinkwrap":false},"2.0.0-alpha.2":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"2.0.0-alpha.2","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^4.0.0","js-yaml":"^3.13.1","meow":"^6.1.0","prettier":"^2.0.5"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.2","@pika/plugin-copy-assets":"^0.9.2","@pika/plugin-ts-standard-pkg":"^0.9.2","@types/jest":"^25.2.1","@types/js-yaml":"^3.12.3","@types/prettier":"^2.0.0","@typescript-eslint/eslint-plugin":"^2.29.0","@typescript-eslint/parser":"^2.29.0","eslint":"^6.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jest":"^25.4.0","ts-jest":"^25.4.0","typescript":"^3.8.3"},"engines":{"node":">= 10.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","readme":"[![version\n(scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n[![codecov](https://codecov.io/gh/manifoldco/swagger-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/manifoldco/swagger-to-ts)\n\n# 📘️ swagger-to-ts\n\n🚀 Convert [OpenAPI v2][openapi2] schemas to TypeScript interfaces using Node.js.\n\n💅 The output is prettified with [Prettier][prettier].\n\n👉 Works for both local and remote resources (filesystem and http).\n\nTo compare actual generated output, see the [example](./example) folder.\n\n(**swagger-to-ts** can handle large definition files within milliseconds because it neither\nvalidates nor parses; it only transforms the bare minimum of what it needs to.)\n\n## Usage\n\n### CLI\n\n#### Reading specs from file system\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --output schema.d.ts\n```\n\n#### Reading specs from remote resource\n\n```bash\nnpx @manifoldco/swagger-to-ts https://petstore.swagger.io/v2/swagger.json --output petstore.d.ts\n```\n\nThis will save a `schema.d.ts` file in the current folder under the TypeScript\n[namespace][namespace] `OpenAPI` (namespaces are required because chances of collision among specs\nis highly likely). The CLI can accept YAML or JSON for the input file.\n\n#### Generating multiple schemas\n\nSay you have multiple schemas you need to parse. I’ve found the simplest way to do that is to use\nnpm scripts. In your `package.json`, you can do something like the following:\n\n```json\n\"scripts\": {\n  \"generate:specs\": \"npm run generate:specs:one && npm run generate:specs:two\",\n  \"generate:specs:one\": \"npx @manifoldco/swagger-to-ts one.yaml -o one.d.ts\",\n  \"generate:specs:two\": \"npx @manifoldco/swagger-to-ts two.yaml -o two.d.ts\"\n}\n```\n\nRinse and repeat for more specs.\n\nFor anything more complicated, or for generating specs dynamically, you can also use the Node API\n(below).\n\n#### CLI Options\n\n| Option                         | Alias | Default  | Description                                                      |\n| :----------------------------- | :---- | :------: | :--------------------------------------------------------------- |\n| `--output [location]`          | `-o`  | (stdout) | Where should the output file be saved?                           |\n| `--prettier-config [location]` |       |          | (optional) Path to your custom Prettier configuration for output |\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst { readFileSync } = require(\"fs\");\nconst swaggerToTS = require(\"@manifoldco/swagger-to-ts\");\n\nconst input = JSON.parse(readFileSync(\"spec.json\", \"utf8\")); // Input can be any JS object (OpenAPI format)\nconst output = swaggerToTS(input); // Outputs TypeScript defs as a string (to be parsed, or written to a file)\n```\n\nThe Node API is a bit more flexible: it will only take a JS object as input (OpenAPI format), and\nreturn a string of TS definitions. This lets you pull from any source (a Swagger server, local\nfiles, etc.), and similarly lets you parse, post-process, and save the output anywhere.\n\nIf your specs are in YAML, you’ll have to convert them to JS objects using a library such as\n[js-yaml][js-yaml]. If you’re batching large folders of specs, [glob][glob] may also come in handy.\n\n#### PropertyMapper\n\nIn order to allow more control over how properties are parsed, and to specifically handle\n`x-something`-properties, the `propertyMapper` option may be specified as the optional 2nd\nparameter.\n\nThis is a function that, if specified, is called for each property and allows you to change how\nswagger-to-ts handles parsing of Swagger files.\n\nAn example on how to use the `x-nullable` property to control if a property is optional:\n\n```js\nconst getNullable = (d: { [key: string]: any }): boolean => {\n  const nullable = d[\"x-nullable\"];\n  if (typeof nullable === \"boolean\") {\n    return nullable;\n  }\n  return true;\n};\n\nconst output = swaggerToTS(swagger, {\n  propertyMapper: (swaggerDefinition, property): Property => ({\n    ...property,\n    optional: getNullable(swaggerDefinition),\n  }),\n});\n```\n\n[glob]: https://www.npmjs.com/package/glob\n[js-yaml]: https://www.npmjs.com/package/js-yaml\n[openapi2]: https://swagger.io/specification/v2/\n[openapi3]: https://swagger.io/specification\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n","readmeFilename":"README.md","_id":"@manifoldco/swagger-to-ts@2.0.0-alpha.2","_nodeVersion":"13.13.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-m0ZKICUCy1vm/icRFWLoX6/xLSviNTfeWrHh2Y41Sql85VN6uMdnXr5LoKxgp1OF9qJWbXhGvZkxKV9ZoqwDcA==","shasum":"b3d770393241c7075d714171377b37d561b9c962","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-2.0.0-alpha.2.tgz","fileCount":24,"unpackedSize":60944,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen6XSCRA9TVsSAnZWagAAGuIQAJH2fhQ/+ipoVK0+0MDm\nRB3GuTWejhapy268NFDvCcTSkeLbepll4xIFMOvuuPXGRQxUxpNrNkiwIpXl\nPjXMy33cwnRDdIVtAnMEJ+8YiyHYtio7Ykk9U/x8QlEKdnPvrbPlUvREAoE0\nG0+2Fh28FSUQ2doaFJ+0fok3V7OCWSDn2/NnojNEwN/dt3n+lBvy32Uv9ot+\nM+MAkH2xnEfywoOUeTJ5+nR8XWCJJ+Lsc8R16ylpTkMEZqkGuhM99snXOsJm\nguJyQ+y4/53iZZpAwnun5rB1vs/WVbXJ9tKwrSfb8BCKmLr3auzHOOZiKE3Y\n0sxxzKxpMNW8WUp2A4JMC+bLzY/sAWJFfqITSYGS1KxTcjvDkQBWJuRqjhdE\nFXIkpKiH3P7uLqiKdrhZE0Eiyjf48C/VIdMSOr6kEH0nRd23EtVtTW/um+By\nK6Id2Ix4Ta2nHFX1ZxyUpOa62QLbu/rePVveAlE+37NNEMWL3AXlpzq0JBCJ\n9uLpayq7t1/Q8d0RadO+x5uVKHd9Mlmw0KzQPCL9EOHViCrUsM3/IKTpWNmk\ng+i0r4jIXcl4oJ8QqQApVhKoOjGbN9EOg1c1ZAsnzaj0oaXYgG+wy565+dm2\nVTvFOGEgtCn/x0/dwSmQYb8ajjV42LE3o9nHKcDoKsz6kgfxrz33OzVexNfh\n4YWe\r\n=QSV7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHAM5yH8EzU8bMYa2SYXZXSnKYu0YTBY0WcSdgm/8Uj1AiEAsOQJu7U3TWcGxzgCoDgQUeaqyIhwJZoTosN/k2lRVkU="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"saxosamo@gmail.com","name":"sslotsky"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_2.0.0-alpha.2_1587520977741_0.5368020620416696"},"_hasShrinkwrap":false},"2.0.0-alpha.3":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"2.0.0-alpha.3","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^4.0.0","js-yaml":"^3.13.1","meow":"^6.1.0","prettier":"^2.0.5"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.2","@pika/plugin-copy-assets":"^0.9.2","@pika/plugin-ts-standard-pkg":"^0.9.2","@types/jest":"^25.2.1","@types/js-yaml":"^3.12.3","@types/prettier":"^2.0.0","@typescript-eslint/eslint-plugin":"^2.29.0","@typescript-eslint/parser":"^2.29.0","eslint":"^6.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jest":"^25.4.0","ts-jest":"^25.4.0","typescript":"^3.8.3"},"engines":{"node":">= 10.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","readme":"[![version\n(scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n[![codecov](https://codecov.io/gh/manifoldco/swagger-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/manifoldco/swagger-to-ts)\n\n# 📘️ swagger-to-ts\n\n🚀 Convert [OpenAPI 2.0][openapi2] and [OpenAPI 3.0][openapi3] schemas to TypeScript interfaces using Node.js.\n\n💅 The output is prettified with [Prettier][prettier] (and can be customized!).\n\n👉 Works for both local and remote resources (filesystem and HTTP).\n\nView examples:\n\n- [Stripe, OpenAPI 2.0](./examples/stripe-openapi2.ts)\n- [Stripe, OpenAPI 3.0](./examples/stripe-openapi3.ts)\n\n## Usage\n\n### CLI\n\n#### 🗄️ Reading specs from file system\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --output schema.ts\n\n# 🤞 Loading spec from tests/v2/specs/stripe.yaml…\n# 🚀 schema.yaml -> schema.ts [250ms]\n```\n\n#### ☁️ Reading specs from remote resource\n\n```bash\nnpx @manifoldco/swagger-to-ts https://petstore.swagger.io/v2/swagger.json --output petstore.ts\n\n# 🤞 Loading spec from https://petstore.swagger.io/v2/swagger.json…\n# 🚀 https://petstore.swagger.io/v2/swagger.json -> petstore.ts [650ms]\n```\n\n#### Generating multiple schemas\n\nIn your `package.json`, for each schema you’d like to transform add one `generate:specs:[name]` npm-script. Then combine them all into one `generate:specs` script, like so:\n\n```json\n\"scripts\": {\n  \"generate:specs\": \"npm run generate:specs:one && npm run generate:specs:two && npm run generate:specs:three\",\n  \"generate:specs:one\": \"npx @manifoldco/swagger-to-ts one.yaml -o one.ts\",\n  \"generate:specs:two\": \"npx @manifoldco/swagger-to-ts two.yaml -o two.ts\",\n  \"generate:specs:three\": \"npx @manifoldco/swagger-to-ts three.yaml -o three.ts\"\n}\n```\n\nYou can even specify unique options per-spec, if needed. To generate them all together, run:\n\n```bash\nnpm run generate:specs\n```\n\nRinse and repeat for more specs.\n\nFor anything more complicated, or for generating specs dynamically, you can also use the [Node API](#node).\n\n#### CLI Options\n\n| Option                         | Alias | Default  | Description                                                      |\n| :----------------------------- | :---- | :------: | :--------------------------------------------------------------- |\n| `--output [location]`          | `-o`  | (stdout) | Where should the output file be saved?                           |\n| `--prettier-config [location]` |       |          | (optional) Path to your custom Prettier configuration for output |\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst { readFileSync } = require(\"fs\");\nconst swaggerToTS = require(\"@manifoldco/swagger-to-ts\");\n\nconst input = JSON.parse(readFileSync(\"spec.json\", \"utf8\")); // Input can be any JS object (OpenAPI format)\nconst output = swaggerToTS(input); // Outputs TypeScript defs as a string (to be parsed, or written to a file)\n```\n\nThe Node API is a bit more flexible: it will only take a JS object as input (OpenAPI format), and\nreturn a string of TS definitions. This lets you pull from any source (a Swagger server, local\nfiles, etc.), and similarly lets you parse, post-process, and save the output anywhere.\n\nIf your specs are in YAML, you’ll have to convert them to JS objects using a library such as\n[js-yaml][js-yaml]. If you’re batching large folders of specs, [glob][glob] may also come in handy.\n\n#### PropertyMapper\n\nIn order to allow more control over how properties are parsed, and to specifically handle\n`x-something`-properties, the `propertyMapper` option may be specified as the optional 2nd\nparameter.\n\nThis is a function that, if specified, is called for each property and allows you to change how\nswagger-to-ts handles parsing of Swagger files.\n\nAn example on how to use the `x-nullable` property to control if a property is optional:\n\n```js\nconst getNullable = (d: { [key: string]: any }): boolean => {\n  const nullable = d[\"x-nullable\"];\n  if (typeof nullable === \"boolean\") {\n    return nullable;\n  }\n  return true;\n};\n\nconst output = swaggerToTS(swagger, {\n  propertyMapper: (swaggerDefinition, property): Property => ({\n    ...property,\n    optional: getNullable(swaggerDefinition),\n  }),\n});\n```\n\n## Upgrading from v1 to v2\n\nSome options were removed in swagger-to-ts v2 that will break apps using v1, but it does so in exchange for more control, more stability, and more resilient types.\n\nTL;DR:\n\n```diff\n-import { OpenAPI2 } from './generated';\n+import { definitions } from './generated';\n\n-type MyType = OpenAPI2.MyType;\n+type MyType = definitions['MyType'];\n```\n\n#### In-depth explanation\n\nIn order to explain the change, let’s go through an example with the following Swagger definition (partial):\n\n```yaml\nswagger: 2.0\ndefinitions:\n  user:\n    type: object\n    properties:\n      role:\n        type: object\n        properties:\n          access:\n            enum:\n              - admin\n              - user\n  user_role:\n    type: object\n      role:\n        type: string\n  team:\n    type: object\n    properties:\n      users:\n        type: array\n        items:\n          $ref: user\n```\n\nThis is how **v1** would have generated those types:\n\n```ts\ndeclare namespace OpenAPI2 {\n  export interface User {\n    role?: UserRole;\n  }\n  export interface UserRole {\n    access?: \"admin\" | \"user\";\n  }\n  export interface UserRole {\n    role?: string;\n  }\n  export interface Team {\n    users?: User[];\n  }\n}\n```\n\nUh oh. It tried to be intelligent, and keep interfaces shallow by transforming `user.role` into `UserRole.` However, we also have another `user_role` entry that has a conflicting `UserRole` interface. This is not what we want.\n\nv1 of this project made certain assumptions about your schema that don’t always hold true. This is how **v2** generates types from that same schema:\n\n```ts\nexport interface definitions {\n  user: {\n    role?: {\n      access?: \"admin\" | \"user\";\n    };\n  };\n  user_role: {\n    role?: string;\n  };\n  team: {\n    users?: definitions[\"user\"][];\n  };\n}\n```\n\nThis matches your schema more accurately, and doesn’t try to be clever by keeping things shallow. It’s also more predictable, with the generated types matching your schema naming. In your code here’s what would change:\n\n```diff\n-UserRole\n+definitions['user']['role'];\n```\n\nWhile this is a change, it’s more predictable. Now you don’t have to guess what `user_role` was renamed to; you simply chain your type from the Swagger definition you‘re used to.\n\n#### Better \\$ref generation\n\nswagger-to-ts v1 would attempt to resolve and flatten `$ref`s. This was bad because it would break on circular references (which both Swagger and TypeScript allow), and resolution also slowed it down.\n\nIn v2, your `$ref`s are preserved as-declared, and TypeScript does all the work. Now the responsibility is on your schema to handle collisions rather than swagger-to-ts, which is a better approach in general.\n\n#### No Wrappers\n\nThe `--wrapper` CLI flag was removed because it was awkward having to manage part of your TypeScript definition in a CLI flag. In v2, simply compose the wrapper yourself however you’d like in TypeScript:\n\n```ts\nimport { components as Schema1 } from './generated/schema-1.ts';\nimport { components as Schema2 } from './generated/schema-2.ts';\n\ndeclare namespace OpenAPI3 {\n  export Schema1;\n  export Schema2;\n}\n```\n\n#### No CamelCasing\n\nThe `--camelcase` flag was removed because it would mangle object names incorrectly or break trying to sanitize them (for example, you couldn’t run camelcase on a schema with `my.obj` and `my-obj`—they both would transfom to the same thing causing unexpected results).\n\nOpenAPI allows for far more flexibility in naming schema objects than JavaScript, so that should be carried over from your schema. In v2, the naming of generated types maps 1:1 with your schema name.\n\n[glob]: https://www.npmjs.com/package/glob\n[js-yaml]: https://www.npmjs.com/package/js-yaml\n[openapi2]: https://swagger.io/specification/v2/\n[openapi3]: https://swagger.io/specification\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n","readmeFilename":"README.md","_id":"@manifoldco/swagger-to-ts@2.0.0-alpha.3","_nodeVersion":"13.13.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-YLPAtOcO/jDhxZsuFfIeH5iocZ/sAxpk0TiLlasSsqgJZuhbx/Ex7EdLfCL9Uw9Um4o/8UmCudgxIsSgN4ykCQ==","shasum":"c54852977c226a72acffc491655f54d9c6f0befe","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-2.0.0-alpha.3.tgz","fileCount":24,"unpackedSize":64261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen7rtCRA9TVsSAnZWagAAIS8P/2QhBNkPnJ2elZj/r1wt\niWHR9Z7UYNxcSV61mYqi5qKM2TTf0J+0jZlIOuuTyUorXSfDqRHH55rhZz0o\n+xsJORCZ+x3sKWKkRX/TvKyRPgXg1NypPgyUwnSS0QCZuHHuYwiCDl+vKuwt\nrqQv5gakukGYIQUNSS7u3pjiKs6BkFP22UK8FCXcxb5ktl8CzZ6yJ+SgvlfJ\ntTNqNCJ4jci0vEddqB/TIrlCJyUZ9isiqM+2PwU/Offd9hS5jFsjpAurFqI5\nPQ5os5cHYw/DdSTdEnWBfeqXGxoHEt+i4Uia9Qo+NiBNujFCrZbTDPmgpwrh\n4M0bxZm/ydnItIir+jY0P6K0trOq0++ACW0wcxvSQFJjJKSditjDv1pIRbqg\n29FEG+apHUmwSJN5qKty0ssFbreHosl+Y2imTjtJDLBgYOZ3Clb5KzTm8+lD\ny8Pgz3f6+2Eu38gPotGGF/Tmj3c0WK23WJKFpEjM8nh2wkKHPkO93aeJPRJ7\nKd6kMU08TtBOsouJt6GMpvwyT5+1lsBqdjW9DvYhosI/HXwE5uZJEUP1hDBN\n7SaZmX8betCaIud3AUwflCNRVOClF0LJmvWj8x33nIWEa+EDB0TwVLs0Znxt\njvsZfk6iTCO9nwWlG/e0xfUp8YP7Gtm5OksckJXJrSBbBUSZZnM3FT6Y3RfT\nO3M1\r\n=d79h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICIzSqVQTwcmZqT+SueYRed+XvfbJ0tsVv+cTN+g5kT/AiBxWEg2j7SW5VSJvQmYjbGbfz+/bYV+AmlgNxLq7yDJpQ=="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"saxosamo@gmail.com","name":"sslotsky"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_2.0.0-alpha.3_1587526380867_0.10266382582475653"},"_hasShrinkwrap":false},"2.0.0-alpha.4":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"2.0.0-alpha.4","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^4.0.0","js-yaml":"^3.13.1","meow":"^6.1.0","prettier":"^2.0.5"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.2","@pika/plugin-copy-assets":"^0.9.2","@pika/plugin-ts-standard-pkg":"^0.9.2","@types/jest":"^25.2.1","@types/js-yaml":"^3.12.3","@types/prettier":"^2.0.0","@typescript-eslint/eslint-plugin":"^2.29.0","@typescript-eslint/parser":"^2.29.0","eslint":"^6.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jest":"^25.4.0","ts-jest":"^25.4.0","typescript":"^3.8.3"},"engines":{"node":">= 10.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","readme":"[![version(scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n[![codecov](https://codecov.io/gh/manifoldco/swagger-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/manifoldco/swagger-to-ts)\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fmanifoldco%2Fswagger-to-ts%2Fbadge&style=flat)](https://actions-badge.atrox.dev/manifoldco/swagger-to-ts/goto)\n\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n[![All Contributors](https://img.shields.io/badge/all_contributors-11-orange.svg?style=flat-square)](#contributors-)\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\n# 📘️ swagger-to-ts\n\n🚀 Convert [OpenAPI 2.0][openapi2] and [OpenAPI 3.0][openapi3] schemas to TypeScript interfaces using Node.js.\n\n💅 The output is prettified with [Prettier][prettier] (and can be customized!).\n\n👉 Works for both local and remote resources (filesystem and HTTP).\n\nView examples:\n\n- [Stripe, OpenAPI 2.0](./examples/stripe-openapi2.ts)\n- [Stripe, OpenAPI 3.0](./examples/stripe-openapi3.ts)\n\n## Usage\n\n### CLI\n\n#### 🗄️ Reading specs from file system\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --output schema.ts\n\n# 🤞 Loading spec from tests/v2/specs/stripe.yaml…\n# 🚀 schema.yaml -> schema.ts [250ms]\n```\n\n#### ☁️ Reading specs from remote resource\n\n```bash\nnpx @manifoldco/swagger-to-ts https://petstore.swagger.io/v2/swagger.json --output petstore.ts\n\n# 🤞 Loading spec from https://petstore.swagger.io/v2/swagger.json…\n# 🚀 https://petstore.swagger.io/v2/swagger.json -> petstore.ts [650ms]\n```\n\n_Thanks to @psmyrdek for this feature!_\n\n#### Generating multiple schemas\n\nIn your `package.json`, for each schema you’d like to transform add one `generate:specs:[name]` npm-script. Then combine them all into one `generate:specs` script, like so:\n\n```json\n\"scripts\": {\n  \"generate:specs\": \"npm run generate:specs:one && npm run generate:specs:two && npm run generate:specs:three\",\n  \"generate:specs:one\": \"npx @manifoldco/swagger-to-ts one.yaml -o one.ts\",\n  \"generate:specs:two\": \"npx @manifoldco/swagger-to-ts two.yaml -o two.ts\",\n  \"generate:specs:three\": \"npx @manifoldco/swagger-to-ts three.yaml -o three.ts\"\n}\n```\n\nYou can even specify unique options per-spec, if needed. To generate them all together, run:\n\n```bash\nnpm run generate:specs\n```\n\nRinse and repeat for more specs.\n\nFor anything more complicated, or for generating specs dynamically, you can also use the [Node API](#node).\n\n#### CLI Options\n\n| Option                         | Alias | Default  | Description                                                      |\n| :----------------------------- | :---- | :------: | :--------------------------------------------------------------- |\n| `--output [location]`          | `-o`  | (stdout) | Where should the output file be saved?                           |\n| `--prettier-config [location]` |       |          | (optional) Path to your custom Prettier configuration for output |\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst { readFileSync } = require(\"fs\");\nconst swaggerToTS = require(\"@manifoldco/swagger-to-ts\");\n\nconst input = JSON.parse(readFileSync(\"spec.json\", \"utf8\")); // Input can be any JS object (OpenAPI format)\nconst output = swaggerToTS(input); // Outputs TypeScript defs as a string (to be parsed, or written to a file)\n```\n\nThe Node API is a bit more flexible: it will only take a JS object as input (OpenAPI format), and\nreturn a string of TS definitions. This lets you pull from any source (a Swagger server, local\nfiles, etc.), and similarly lets you parse, post-process, and save the output anywhere.\n\nIf your specs are in YAML, you’ll have to convert them to JS objects using a library such as\n[js-yaml][js-yaml]. If you’re batching large folders of specs, [glob][glob] may also come in handy.\n\n#### PropertyMapper\n\nIn order to allow more control over how properties are parsed, and to specifically handle\n`x-something`-properties, the `propertyMapper` option may be specified as the optional 2nd\nparameter.\n\nThis is a function that, if specified, is called for each property and allows you to change how\nswagger-to-ts handles parsing of Swagger files.\n\nAn example on how to use the `x-nullable` property to control if a property is optional:\n\n```js\nconst getNullable = (d: { [key: string]: any }): boolean => {\n  const nullable = d[\"x-nullable\"];\n  if (typeof nullable === \"boolean\") {\n    return nullable;\n  }\n  return true;\n};\n\nconst output = swaggerToTS(swagger, {\n  propertyMapper: (swaggerDefinition, property): Property => ({\n    ...property,\n    optional: getNullable(swaggerDefinition),\n  }),\n});\n```\n\n_Thanks to @atlefren for this feature!_\n\n## Upgrading from v1 to v2\n\nSome options were removed in swagger-to-ts v2 that will break apps using v1, but it does so in exchange for more control, more stability, and more resilient types.\n\nTL;DR:\n\n```diff\n-import { OpenAPI2 } from './generated';\n+import { definitions } from './generated';\n\n-type MyType = OpenAPI2.MyType;\n+type MyType = definitions['MyType'];\n```\n\n#### In-depth explanation\n\nIn order to explain the change, let’s go through an example with the following Swagger definition (partial):\n\n```yaml\nswagger: 2.0\ndefinitions:\n  user:\n    type: object\n    properties:\n      role:\n        type: object\n        properties:\n          access:\n            enum:\n              - admin\n              - user\n  user_role:\n    type: object\n      role:\n        type: string\n  team:\n    type: object\n    properties:\n      users:\n        type: array\n        items:\n          $ref: user\n```\n\nThis is how **v1** would have generated those types:\n\n```ts\ndeclare namespace OpenAPI2 {\n  export interface User {\n    role?: UserRole;\n  }\n  export interface UserRole {\n    access?: \"admin\" | \"user\";\n  }\n  export interface UserRole {\n    role?: string;\n  }\n  export interface Team {\n    users?: User[];\n  }\n}\n```\n\nUh oh. It tried to be intelligent, and keep interfaces shallow by transforming `user.role` into `UserRole.` However, we also have another `user_role` entry that has a conflicting `UserRole` interface. This is not what we want.\n\nv1 of this project made certain assumptions about your schema that don’t always hold true. This is how **v2** generates types from that same schema:\n\n```ts\nexport interface definitions {\n  user: {\n    role?: {\n      access?: \"admin\" | \"user\";\n    };\n  };\n  user_role: {\n    role?: string;\n  };\n  team: {\n    users?: definitions[\"user\"][];\n  };\n}\n```\n\nThis matches your schema more accurately, and doesn’t try to be clever by keeping things shallow. It’s also more predictable, with the generated types matching your schema naming. In your code here’s what would change:\n\n```diff\n-UserRole\n+definitions['user']['role'];\n```\n\nWhile this is a change, it’s more predictable. Now you don’t have to guess what `user_role` was renamed to; you simply chain your type from the Swagger definition you‘re used to.\n\n#### Better \\$ref generation\n\nswagger-to-ts v1 would attempt to resolve and flatten `$ref`s. This was bad because it would break on circular references (which both Swagger and TypeScript allow), and resolution also slowed it down.\n\nIn v2, your `$ref`s are preserved as-declared, and TypeScript does all the work. Now the responsibility is on your schema to handle collisions rather than swagger-to-ts, which is a better approach in general.\n\n#### No Wrappers\n\nThe `--wrapper` CLI flag was removed because it was awkward having to manage part of your TypeScript definition in a CLI flag. In v2, simply compose the wrapper yourself however you’d like in TypeScript:\n\n```ts\nimport { components as Schema1 } from './generated/schema-1.ts';\nimport { components as Schema2 } from './generated/schema-2.ts';\n\ndeclare namespace OpenAPI3 {\n  export Schema1;\n  export Schema2;\n}\n```\n\n#### No CamelCasing\n\nThe `--camelcase` flag was removed because it would mangle object names incorrectly or break trying to sanitize them (for example, you couldn’t run camelcase on a schema with `my.obj` and `my-obj`—they both would transfom to the same thing causing unexpected results).\n\nOpenAPI allows for far more flexibility in naming schema objects than JavaScript, so that should be carried over from your schema. In v2, the naming of generated types maps 1:1 with your schema name.\n\n[glob]: https://www.npmjs.com/package/glob\n[js-yaml]: https://www.npmjs.com/package/js-yaml\n[openapi2]: https://swagger.io/specification/v2/\n[openapi3]: https://swagger.io/specification\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"https://pow.rs\"><img src=\"https://avatars3.githubusercontent.com/u/1369770?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Drew Powers</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=dangodev\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=dangodev\" title=\"Documentation\">📖</a> <a href=\"#infra-dangodev\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">🚇</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=dangodev\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"http://smyrdek.com\"><img src=\"https://avatars1.githubusercontent.com/u/6187417?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Przemek Smyrdek</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=psmyrdek\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=psmyrdek\" title=\"Documentation\">📖</a> <a href=\"#ideas-psmyrdek\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=psmyrdek\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://danielenman.com\"><img src=\"https://avatars3.githubusercontent.com/u/432487?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Dan Enman</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/issues?q=author%3Aenmand\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=enmand\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"http://atlefren.net\"><img src=\"https://avatars2.githubusercontent.com/u/1829927?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Atle Frenvik Sveen</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=atlefren\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=atlefren\" title=\"Documentation\">📖</a> <a href=\"#ideas-atlefren\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=atlefren\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"http://www.timdewolf.com\"><img src=\"https://avatars0.githubusercontent.com/u/4455209?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Tim de Wolf</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tpdewolf\" title=\"Code\">💻</a> <a href=\"#ideas-tpdewolf\" title=\"Ideas, Planning, & Feedback\">🤔</a></td>\n    <td align=\"center\"><a href=\"https://github.com/tombarton\"><img src=\"https://avatars1.githubusercontent.com/u/6222711?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Tom Barton</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tombarton\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tombarton\" title=\"Documentation\">📖</a> <a href=\"#ideas-tombarton\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tombarton\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"http://www.viig.no\"><img src=\"https://avatars0.githubusercontent.com/u/1080888?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Sven Nicolai Viig</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/issues?q=author%3Asvnv\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=svnv\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=svnv\" title=\"Tests\">⚠️</a></td>\n  </tr>\n  <tr>\n    <td align=\"center\"><a href=\"https://toot.cafe/@sorin\"><img src=\"https://avatars1.githubusercontent.com/u/2109702?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Sorin Davidoi</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/issues?q=author%3Asorin-davidoi\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=sorin-davidoi\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=sorin-davidoi\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://github.com/scvnathan\"><img src=\"https://avatars3.githubusercontent.com/u/73474?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Nathan Schneirov</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=scvnathan\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=scvnathan\" title=\"Documentation\">📖</a> <a href=\"#ideas-scvnathan\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=scvnathan\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://lbenie.xyz/\"><img src=\"https://avatars1.githubusercontent.com/u/7316046?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Lucien Bénié</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=lbenie\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=lbenie\" title=\"Documentation\">📖</a> <a href=\"#ideas-lbenie\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=lbenie\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://boris.sh\"><img src=\"https://avatars1.githubusercontent.com/u/17952318?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Boris K</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=bokub\" title=\"Documentation\">📖</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-enable -->\n<!-- prettier-ignore-end -->\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","readmeFilename":"README.md","_id":"@manifoldco/swagger-to-ts@2.0.0-alpha.4","_nodeVersion":"13.13.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-4MKQ0Fnn8p7/cqdBL66/mBf9CI3yiL8Tcfs8gok+h39x1mvqsMEpi5lUZg50SJnLEy/0OzPDIBASM6pDU31WTA==","shasum":"904c27dd3c3f55da645b228c3a72885232860d1a","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-2.0.0-alpha.4.tgz","fileCount":24,"unpackedSize":64907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepi/DCRA9TVsSAnZWagAAjBgP/jUGpLO385W8FiGkVUpH\nxRi9JrVKFrJoBhdKQNDJIZ4iwm23MhzZblbdcKJEx7iyftNlG7sE5dkaFDWA\ng1CmztdL36flElGAo63sBRtEERiKUK2yQOfVU+JOv3yvXvgg/S8RL8JsjoAN\nEXkFp7lSAH12TnPpuh6zHQECUtE6DCoFgUFzVSntQEjrA4oV88ECGOaNRERN\ndsoV1Mh20F/cfR6lPxIzzD710CDC61WwhVwn47tHWGW0SRF+Tx3RLazN6F18\nOEq0BRCmE+otpHG11dkxPmCRe19/lv0rLrwDUQHKzTFYgk46vugzYvy+iQ6/\nLk9kK7lv6/M+d4jCwo+KLR9yexRimCLu9ZgdIM5oJPX6fn7cFCObyDvohY5Y\n0dm1J4zIrYSfLiYpPqiLfE0Y9120KA0WznIsP4WxjIFylnghFpMn9zvGLjQz\nC8xZULIgCJJaWtRj/7mdgRhqNcwbPu5B5ZYrHoCu4aevfRpicYLrYxPteiZg\n/k++VBLwKgxPYa9G5KKhsCgZEtptiPhFOzHo28l+Iad3YEDUCatzD8sX1NOR\nC5EraRIlFz7m0cIPJJZAUqwvcXAAW3sICfIT783gsdCMbp5LpD8rweV1/huu\nRh8AgdGXBO72YavHfMnNjISiyQsdcRaV8i5OZ4ybtB6s9ImNdZ8/DS88M5VM\nlu8C\r\n=i57h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCFMk0V2kyrXjPSubvw0fo0lObzfO2bw0eTDB0YBK5IwIgd8IFCkY5aVpj/o7QJkNlLvL8bYitOmVw5tOgkSjVCxg="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"saxosamo@gmail.com","name":"sslotsky"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_2.0.0-alpha.4_1587949506790_0.40069317527778314"},"_hasShrinkwrap":false},"2.0.0-alpha.5":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"2.0.0-alpha.5","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^4.0.0","js-yaml":"^3.13.1","meow":"^6.1.0","prettier":"^2.0.5"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.2","@pika/plugin-copy-assets":"^0.9.2","@pika/plugin-ts-standard-pkg":"^0.9.2","@types/jest":"^25.2.1","@types/js-yaml":"^3.12.3","@types/prettier":"^2.0.0","@typescript-eslint/eslint-plugin":"^2.29.0","@typescript-eslint/parser":"^2.29.0","eslint":"^6.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jest":"^25.4.0","ts-jest":"^25.4.0","typescript":"^3.8.3"},"engines":{"node":">= 10.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","readme":"[![version(scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n[![codecov](https://codecov.io/gh/manifoldco/swagger-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/manifoldco/swagger-to-ts)\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fmanifoldco%2Fswagger-to-ts%2Fbadge&style=flat)](https://actions-badge.atrox.dev/manifoldco/swagger-to-ts/goto)\n\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n[![All Contributors](https://img.shields.io/badge/all_contributors-12-orange.svg?style=flat-square)](#contributors-)\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\n# 📘️ swagger-to-ts\n\n🚀 Convert [OpenAPI 2.0][openapi2] and [OpenAPI 3.0][openapi3] schemas to TypeScript interfaces using Node.js.\n\n💅 The output is prettified with [Prettier][prettier] (and can be customized!).\n\n👉 Works for both local and remote resources (filesystem and HTTP).\n\nView examples:\n\n- [Stripe, OpenAPI 2.0](./examples/stripe-openapi2.ts)\n- [Stripe, OpenAPI 3.0](./examples/stripe-openapi3.ts)\n\n## Usage\n\n### CLI\n\n#### 🗄️ Reading specs from file system\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --output schema.ts\n\n# 🤞 Loading spec from tests/v2/specs/stripe.yaml…\n# 🚀 schema.yaml -> schema.ts [250ms]\n```\n\n#### ☁️ Reading specs from remote resource\n\n```bash\nnpx @manifoldco/swagger-to-ts https://petstore.swagger.io/v2/swagger.json --output petstore.ts\n\n# 🤞 Loading spec from https://petstore.swagger.io/v2/swagger.json…\n# 🚀 https://petstore.swagger.io/v2/swagger.json -> petstore.ts [650ms]\n```\n\n_Thanks to @psmyrdek for this feature!_\n\n#### Generating multiple schemas\n\nIn your `package.json`, for each schema you’d like to transform add one `generate:specs:[name]` npm-script. Then combine them all into one `generate:specs` script, like so:\n\n```json\n\"scripts\": {\n  \"generate:specs\": \"npm run generate:specs:one && npm run generate:specs:two && npm run generate:specs:three\",\n  \"generate:specs:one\": \"npx @manifoldco/swagger-to-ts one.yaml -o one.ts\",\n  \"generate:specs:two\": \"npx @manifoldco/swagger-to-ts two.yaml -o two.ts\",\n  \"generate:specs:three\": \"npx @manifoldco/swagger-to-ts three.yaml -o three.ts\"\n}\n```\n\nYou can even specify unique options per-spec, if needed. To generate them all together, run:\n\n```bash\nnpm run generate:specs\n```\n\nRinse and repeat for more specs.\n\nFor anything more complicated, or for generating specs dynamically, you can also use the [Node API](#node).\n\n#### CLI Options\n\n| Option                         | Alias | Default  | Description                                                      |\n| :----------------------------- | :---- | :------: | :--------------------------------------------------------------- |\n| `--output [location]`          | `-o`  | (stdout) | Where should the output file be saved?                           |\n| `--prettier-config [location]` |       |          | (optional) Path to your custom Prettier configuration for output |\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst { readFileSync } = require(\"fs\");\nconst swaggerToTS = require(\"@manifoldco/swagger-to-ts\");\n\nconst input = JSON.parse(readFileSync(\"spec.json\", \"utf8\")); // Input can be any JS object (OpenAPI format)\nconst output = swaggerToTS(input); // Outputs TypeScript defs as a string (to be parsed, or written to a file)\n```\n\nThe Node API is a bit more flexible: it will only take a JS object as input (OpenAPI format), and\nreturn a string of TS definitions. This lets you pull from any source (a Swagger server, local\nfiles, etc.), and similarly lets you parse, post-process, and save the output anywhere.\n\nIf your specs are in YAML, you’ll have to convert them to JS objects using a library such as\n[js-yaml][js-yaml]. If you’re batching large folders of specs, [glob][glob] may also come in handy.\n\n#### PropertyMapper\n\nIn order to allow more control over how properties are parsed, and to specifically handle\n`x-something`-properties, the `propertyMapper` option may be specified as the optional 2nd\nparameter.\n\nThis is a function that, if specified, is called for each property and allows you to change how\nswagger-to-ts handles parsing of Swagger files.\n\nAn example on how to use the `x-nullable` property to control if a property is optional:\n\n```js\nconst getNullable = (d: { [key: string]: any }): boolean => {\n  const nullable = d[\"x-nullable\"];\n  if (typeof nullable === \"boolean\") {\n    return nullable;\n  }\n  return true;\n};\n\nconst output = swaggerToTS(swagger, {\n  propertyMapper: (swaggerDefinition, property): Property => ({\n    ...property,\n    optional: getNullable(swaggerDefinition),\n  }),\n});\n```\n\n_Thanks to @atlefren for this feature!_\n\n## Upgrading from v1 to v2\n\nSome options were removed in swagger-to-ts v2 that will break apps using v1, but it does so in exchange for more control, more stability, and more resilient types.\n\nTL;DR:\n\n```diff\n-import { OpenAPI2 } from './generated';\n+import { definitions } from './generated';\n\n-type MyType = OpenAPI2.MyType;\n+type MyType = definitions['MyType'];\n```\n\n#### In-depth explanation\n\nIn order to explain the change, let’s go through an example with the following Swagger definition (partial):\n\n```yaml\nswagger: 2.0\ndefinitions:\n  user:\n    type: object\n    properties:\n      role:\n        type: object\n        properties:\n          access:\n            enum:\n              - admin\n              - user\n  user_role:\n    type: object\n      role:\n        type: string\n  team:\n    type: object\n    properties:\n      users:\n        type: array\n        items:\n          $ref: user\n```\n\nThis is how **v1** would have generated those types:\n\n```ts\ndeclare namespace OpenAPI2 {\n  export interface User {\n    role?: UserRole;\n  }\n  export interface UserRole {\n    access?: \"admin\" | \"user\";\n  }\n  export interface UserRole {\n    role?: string;\n  }\n  export interface Team {\n    users?: User[];\n  }\n}\n```\n\nUh oh. It tried to be intelligent, and keep interfaces shallow by transforming `user.role` into `UserRole.` However, we also have another `user_role` entry that has a conflicting `UserRole` interface. This is not what we want.\n\nv1 of this project made certain assumptions about your schema that don’t always hold true. This is how **v2** generates types from that same schema:\n\n```ts\nexport interface definitions {\n  user: {\n    role?: {\n      access?: \"admin\" | \"user\";\n    };\n  };\n  user_role: {\n    role?: string;\n  };\n  team: {\n    users?: definitions[\"user\"][];\n  };\n}\n```\n\nThis matches your schema more accurately, and doesn’t try to be clever by keeping things shallow. It’s also more predictable, with the generated types matching your schema naming. In your code here’s what would change:\n\n```diff\n-UserRole\n+definitions['user']['role'];\n```\n\nWhile this is a change, it’s more predictable. Now you don’t have to guess what `user_role` was renamed to; you simply chain your type from the Swagger definition you‘re used to.\n\n#### Better \\$ref generation\n\nswagger-to-ts v1 would attempt to resolve and flatten `$ref`s. This was bad because it would break on circular references (which both Swagger and TypeScript allow), and resolution also slowed it down.\n\nIn v2, your `$ref`s are preserved as-declared, and TypeScript does all the work. Now the responsibility is on your schema to handle collisions rather than swagger-to-ts, which is a better approach in general.\n\n#### No Wrappers\n\nThe `--wrapper` CLI flag was removed because it was awkward having to manage part of your TypeScript definition in a CLI flag. In v2, simply compose the wrapper yourself however you’d like in TypeScript:\n\n```ts\nimport { components as Schema1 } from './generated/schema-1.ts';\nimport { components as Schema2 } from './generated/schema-2.ts';\n\ndeclare namespace OpenAPI3 {\n  export Schema1;\n  export Schema2;\n}\n```\n\n#### No CamelCasing\n\nThe `--camelcase` flag was removed because it would mangle object names incorrectly or break trying to sanitize them (for example, you couldn’t run camelcase on a schema with `my.obj` and `my-obj`—they both would transfom to the same thing causing unexpected results).\n\nOpenAPI allows for far more flexibility in naming schema objects than JavaScript, so that should be carried over from your schema. In v2, the naming of generated types maps 1:1 with your schema name.\n\n[glob]: https://www.npmjs.com/package/glob\n[js-yaml]: https://www.npmjs.com/package/js-yaml\n[openapi2]: https://swagger.io/specification/v2/\n[openapi3]: https://swagger.io/specification\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"https://pow.rs\"><img src=\"https://avatars3.githubusercontent.com/u/1369770?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Drew Powers</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=dangodev\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=dangodev\" title=\"Documentation\">📖</a> <a href=\"#infra-dangodev\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">🚇</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=dangodev\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"http://smyrdek.com\"><img src=\"https://avatars1.githubusercontent.com/u/6187417?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Przemek Smyrdek</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=psmyrdek\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=psmyrdek\" title=\"Documentation\">📖</a> <a href=\"#ideas-psmyrdek\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=psmyrdek\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://danielenman.com\"><img src=\"https://avatars3.githubusercontent.com/u/432487?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Dan Enman</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/issues?q=author%3Aenmand\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=enmand\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"http://atlefren.net\"><img src=\"https://avatars2.githubusercontent.com/u/1829927?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Atle Frenvik Sveen</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=atlefren\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=atlefren\" title=\"Documentation\">📖</a> <a href=\"#ideas-atlefren\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=atlefren\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"http://www.timdewolf.com\"><img src=\"https://avatars0.githubusercontent.com/u/4455209?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Tim de Wolf</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tpdewolf\" title=\"Code\">💻</a> <a href=\"#ideas-tpdewolf\" title=\"Ideas, Planning, & Feedback\">🤔</a></td>\n    <td align=\"center\"><a href=\"https://github.com/tombarton\"><img src=\"https://avatars1.githubusercontent.com/u/6222711?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Tom Barton</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tombarton\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tombarton\" title=\"Documentation\">📖</a> <a href=\"#ideas-tombarton\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tombarton\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"http://www.viig.no\"><img src=\"https://avatars0.githubusercontent.com/u/1080888?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Sven Nicolai Viig</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/issues?q=author%3Asvnv\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=svnv\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=svnv\" title=\"Tests\">⚠️</a></td>\n  </tr>\n  <tr>\n    <td align=\"center\"><a href=\"https://toot.cafe/@sorin\"><img src=\"https://avatars1.githubusercontent.com/u/2109702?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Sorin Davidoi</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/issues?q=author%3Asorin-davidoi\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=sorin-davidoi\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=sorin-davidoi\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://github.com/scvnathan\"><img src=\"https://avatars3.githubusercontent.com/u/73474?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Nathan Schneirov</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=scvnathan\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=scvnathan\" title=\"Documentation\">📖</a> <a href=\"#ideas-scvnathan\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=scvnathan\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://lbenie.xyz/\"><img src=\"https://avatars1.githubusercontent.com/u/7316046?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Lucien Bénié</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=lbenie\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=lbenie\" title=\"Documentation\">📖</a> <a href=\"#ideas-lbenie\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=lbenie\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://boris.sh\"><img src=\"https://avatars1.githubusercontent.com/u/17952318?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Boris K</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=bokub\" title=\"Documentation\">📖</a></td>\n    <td align=\"center\"><a href=\"https://twitter.com/antonk52\"><img src=\"https://avatars1.githubusercontent.com/u/5817809?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Anton</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/issues?q=author%3Aantonk52\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=antonk52\" title=\"Code\">💻</a> <a href=\"#ideas-antonk52\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=antonk52\" title=\"Tests\">⚠️</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-enable -->\n<!-- prettier-ignore-end -->\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","readmeFilename":"README.md","_id":"@manifoldco/swagger-to-ts@2.0.0-alpha.5","_nodeVersion":"13.13.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Bb64ymBdaLYHz9UTAMkdLs6EABM6G4Oji4BsSuJHKXV70ysWi7Ds6CT6548jWkhZBUUXm3V8oHgEchBav44ToA==","shasum":"edf8bfeafc339b6c1e170d1a2bc35978b3e32b6f","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-2.0.0-alpha.5.tgz","fileCount":24,"unpackedSize":65189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepjYbCRA9TVsSAnZWagAAW2IP/RjtHRCbiNhklFsOgRWz\nmJSgm3XDFFhjpS1qkbBuNaen0ZDoANqxYR7iNShDQE8D6pn8WAylVLouptQZ\n5QvjdhCtphwy1rHXZUEbnwT9F1S0bFy97Ud/rkN8xzdkJvjzrbqoeXvA4pU0\nUJtaEh1KQUhssRhIeHfPnazpQe1Su3raCHLJ8IMoMGjGXzmYTKPVmU+YPT6g\nxaYaMQf41+I4C9JW/H2V5yCwUPTgRVHgtdH8Yzs2L5FjLWLXFWFs+4dKZub8\nYKQ6kKMnEWUnCVGIfpYgITIjeGtmCvBNg3tCJoD63s691KXZP+eSZ3jIGLs3\nHP32dEp23T4oS1unwTllaI9fzts2u4hdKVQWdfyACRAvFzIkOsE1WCjjCH4w\n44q+Rnel3JNySqdBxIAr4EwPw1Cor4PG/wljGEg6ine+8FlzspoeHK51OFSy\n6DH4A6uDzAFG30H4PNlrQjeahZd8cF77Xhlify2fgAcYKggr+rJ5F3KY+7gI\nSHbU5ZXi4jqDslbMhrK56c06bj9YBjn2mPwMdXHFcvz1+l+rEQf2BmorZY+c\njDyjltL0mafN8qcyxmlK5c8BFSbJM5EePzXLZNNdPDkd01J7PuPKxCPCj62i\nRoJweVwibYdboL/hPUzG9PLmZUc/RCB7+Q1Xx+GMOVrtmHOnFU/qMBmkQzLI\n8Lv6\r\n=yoHi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1gw68y6hscYkfqGQ2nHmJiMD0K+EKl07wMPgCv8aP6wIgWF08YT9rfMDwXWsODRzp5tPA4wE2GPuPADDqYMhv84I="}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"saxosamo@gmail.com","name":"sslotsky"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_2.0.0-alpha.5_1587951131302_0.8114892453831537"},"_hasShrinkwrap":false},"2.0.0-alpha.6":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"2.0.0-alpha.6","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^4.0.0","js-yaml":"^3.13.1","meow":"^6.1.0","prettier":"^2.0.5"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.2","@pika/plugin-copy-assets":"^0.9.2","@pika/plugin-ts-standard-pkg":"^0.9.2","@types/jest":"^25.2.1","@types/js-yaml":"^3.12.3","@types/prettier":"^2.0.0","@typescript-eslint/eslint-plugin":"^2.29.0","@typescript-eslint/parser":"^2.29.0","eslint":"^6.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jest":"^25.4.0","ts-jest":"^25.4.0","typescript":"^3.8.3"},"engines":{"node":">= 10.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","readme":"[![version(scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n[![codecov](https://codecov.io/gh/manifoldco/swagger-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/manifoldco/swagger-to-ts)\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fmanifoldco%2Fswagger-to-ts%2Fbadge&style=flat)](https://actions-badge.atrox.dev/manifoldco/swagger-to-ts/goto)\n\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n[![All Contributors](https://img.shields.io/badge/all_contributors-12-orange.svg?style=flat-square)](#contributors-)\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\n# 📘️ swagger-to-ts\n\n🚀 Convert [OpenAPI 2.0][openapi2] and [OpenAPI 3.0][openapi3] schemas to TypeScript interfaces using Node.js.\n\n💅 The output is prettified with [Prettier][prettier] (and can be customized!).\n\n👉 Works for both local and remote resources (filesystem and HTTP).\n\nView examples:\n\n- [Stripe, OpenAPI 2.0](./examples/stripe-openapi2.ts)\n- [Stripe, OpenAPI 3.0](./examples/stripe-openapi3.ts)\n\n## Usage\n\n### CLI\n\n#### 🗄️ Reading specs from file system\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --output schema.ts\n\n# 🤞 Loading spec from tests/v2/specs/stripe.yaml…\n# 🚀 schema.yaml -> schema.ts [250ms]\n```\n\n#### ☁️ Reading specs from remote resource\n\n```bash\nnpx @manifoldco/swagger-to-ts https://petstore.swagger.io/v2/swagger.json --output petstore.ts\n\n# 🤞 Loading spec from https://petstore.swagger.io/v2/swagger.json…\n# 🚀 https://petstore.swagger.io/v2/swagger.json -> petstore.ts [650ms]\n```\n\n_Thanks to @psmyrdek for this feature!_\n\n#### Generating multiple schemas\n\nIn your `package.json`, for each schema you’d like to transform add one `generate:specs:[name]` npm-script. Then combine them all into one `generate:specs` script, like so:\n\n```json\n\"scripts\": {\n  \"generate:specs\": \"npm run generate:specs:one && npm run generate:specs:two && npm run generate:specs:three\",\n  \"generate:specs:one\": \"npx @manifoldco/swagger-to-ts one.yaml -o one.ts\",\n  \"generate:specs:two\": \"npx @manifoldco/swagger-to-ts two.yaml -o two.ts\",\n  \"generate:specs:three\": \"npx @manifoldco/swagger-to-ts three.yaml -o three.ts\"\n}\n```\n\nYou can even specify unique options per-spec, if needed. To generate them all together, run:\n\n```bash\nnpm run generate:specs\n```\n\nRinse and repeat for more specs.\n\nFor anything more complicated, or for generating specs dynamically, you can also use the [Node API](#node).\n\n#### CLI Options\n\n| Option                         | Alias | Default  | Description                                                      |\n| :----------------------------- | :---- | :------: | :--------------------------------------------------------------- |\n| `--output [location]`          | `-o`  | (stdout) | Where should the output file be saved?                           |\n| `--prettier-config [location]` |       |          | (optional) Path to your custom Prettier configuration for output |\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst { readFileSync } = require(\"fs\");\nconst swaggerToTS = require(\"@manifoldco/swagger-to-ts\");\n\nconst input = JSON.parse(readFileSync(\"spec.json\", \"utf8\")); // Input can be any JS object (OpenAPI format)\nconst output = swaggerToTS(input); // Outputs TypeScript defs as a string (to be parsed, or written to a file)\n```\n\nThe Node API is a bit more flexible: it will only take a JS object as input (OpenAPI format), and\nreturn a string of TS definitions. This lets you pull from any source (a Swagger server, local\nfiles, etc.), and similarly lets you parse, post-process, and save the output anywhere.\n\nIf your specs are in YAML, you’ll have to convert them to JS objects using a library such as\n[js-yaml][js-yaml]. If you’re batching large folders of specs, [glob][glob] may also come in handy.\n\n#### PropertyMapper\n\nIn order to allow more control over how properties are parsed, and to specifically handle\n`x-something`-properties, the `propertyMapper` option may be specified as the optional 2nd\nparameter.\n\nThis is a function that, if specified, is called for each property and allows you to change how\nswagger-to-ts handles parsing of Swagger files.\n\nAn example on how to use the `x-nullable` property to control if a property is optional:\n\n```js\nconst getNullable = (d: { [key: string]: any }): boolean => {\n  const nullable = d[\"x-nullable\"];\n  if (typeof nullable === \"boolean\") {\n    return nullable;\n  }\n  return true;\n};\n\nconst output = swaggerToTS(swagger, {\n  propertyMapper: (swaggerDefinition, property): Property => ({\n    ...property,\n    optional: getNullable(swaggerDefinition),\n  }),\n});\n```\n\n_Thanks to @atlefren for this feature!_\n\n## Upgrading from v1 to v2\n\nSome options were removed in swagger-to-ts v2 that will break apps using v1, but it does so in exchange for more control, more stability, and more resilient types.\n\nTL;DR:\n\n```diff\n-import { OpenAPI2 } from './generated';\n+import { definitions } from './generated';\n\n-type MyType = OpenAPI2.MyType;\n+type MyType = definitions['MyType'];\n```\n\n#### In-depth explanation\n\nIn order to explain the change, let’s go through an example with the following Swagger definition (partial):\n\n```yaml\nswagger: 2.0\ndefinitions:\n  user:\n    type: object\n    properties:\n      role:\n        type: object\n        properties:\n          access:\n            enum:\n              - admin\n              - user\n  user_role:\n    type: object\n      role:\n        type: string\n  team:\n    type: object\n    properties:\n      users:\n        type: array\n        items:\n          $ref: user\n```\n\nThis is how **v1** would have generated those types:\n\n```ts\ndeclare namespace OpenAPI2 {\n  export interface User {\n    role?: UserRole;\n  }\n  export interface UserRole {\n    access?: \"admin\" | \"user\";\n  }\n  export interface UserRole {\n    role?: string;\n  }\n  export interface Team {\n    users?: User[];\n  }\n}\n```\n\nUh oh. It tried to be intelligent, and keep interfaces shallow by transforming `user.role` into `UserRole.` However, we also have another `user_role` entry that has a conflicting `UserRole` interface. This is not what we want.\n\nv1 of this project made certain assumptions about your schema that don’t always hold true. This is how **v2** generates types from that same schema:\n\n```ts\nexport interface definitions {\n  user: {\n    role?: {\n      access?: \"admin\" | \"user\";\n    };\n  };\n  user_role: {\n    role?: string;\n  };\n  team: {\n    users?: definitions[\"user\"][];\n  };\n}\n```\n\nThis matches your schema more accurately, and doesn’t try to be clever by keeping things shallow. It’s also more predictable, with the generated types matching your schema naming. In your code here’s what would change:\n\n```diff\n-UserRole\n+definitions['user']['role'];\n```\n\nWhile this is a change, it’s more predictable. Now you don’t have to guess what `user_role` was renamed to; you simply chain your type from the Swagger definition you‘re used to.\n\n#### Better \\$ref generation\n\nswagger-to-ts v1 would attempt to resolve and flatten `$ref`s. This was bad because it would break on circular references (which both Swagger and TypeScript allow), and resolution also slowed it down.\n\nIn v2, your `$ref`s are preserved as-declared, and TypeScript does all the work. Now the responsibility is on your schema to handle collisions rather than swagger-to-ts, which is a better approach in general.\n\n#### No Wrappers\n\nThe `--wrapper` CLI flag was removed because it was awkward having to manage part of your TypeScript definition in a CLI flag. In v2, simply compose the wrapper yourself however you’d like in TypeScript:\n\n```ts\nimport { components as Schema1 } from './generated/schema-1.ts';\nimport { components as Schema2 } from './generated/schema-2.ts';\n\ndeclare namespace OpenAPI3 {\n  export Schema1;\n  export Schema2;\n}\n```\n\n#### No CamelCasing\n\nThe `--camelcase` flag was removed because it would mangle object names incorrectly or break trying to sanitize them (for example, you couldn’t run camelcase on a schema with `my.obj` and `my-obj`—they both would transfom to the same thing causing unexpected results).\n\nOpenAPI allows for far more flexibility in naming schema objects than JavaScript, so that should be carried over from your schema. In v2, the naming of generated types maps 1:1 with your schema name.\n\n[glob]: https://www.npmjs.com/package/glob\n[js-yaml]: https://www.npmjs.com/package/js-yaml\n[openapi2]: https://swagger.io/specification/v2/\n[openapi3]: https://swagger.io/specification\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"https://pow.rs\"><img src=\"https://avatars3.githubusercontent.com/u/1369770?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Drew Powers</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=dangodev\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=dangodev\" title=\"Documentation\">📖</a> <a href=\"#infra-dangodev\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">🚇</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=dangodev\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"http://smyrdek.com\"><img src=\"https://avatars1.githubusercontent.com/u/6187417?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Przemek Smyrdek</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=psmyrdek\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=psmyrdek\" title=\"Documentation\">📖</a> <a href=\"#ideas-psmyrdek\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=psmyrdek\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://danielenman.com\"><img src=\"https://avatars3.githubusercontent.com/u/432487?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Dan Enman</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/issues?q=author%3Aenmand\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=enmand\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"http://atlefren.net\"><img src=\"https://avatars2.githubusercontent.com/u/1829927?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Atle Frenvik Sveen</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=atlefren\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=atlefren\" title=\"Documentation\">📖</a> <a href=\"#ideas-atlefren\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=atlefren\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"http://www.timdewolf.com\"><img src=\"https://avatars0.githubusercontent.com/u/4455209?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Tim de Wolf</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tpdewolf\" title=\"Code\">💻</a> <a href=\"#ideas-tpdewolf\" title=\"Ideas, Planning, & Feedback\">🤔</a></td>\n    <td align=\"center\"><a href=\"https://github.com/tombarton\"><img src=\"https://avatars1.githubusercontent.com/u/6222711?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Tom Barton</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tombarton\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tombarton\" title=\"Documentation\">📖</a> <a href=\"#ideas-tombarton\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tombarton\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"http://www.viig.no\"><img src=\"https://avatars0.githubusercontent.com/u/1080888?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Sven Nicolai Viig</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/issues?q=author%3Asvnv\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=svnv\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=svnv\" title=\"Tests\">⚠️</a></td>\n  </tr>\n  <tr>\n    <td align=\"center\"><a href=\"https://toot.cafe/@sorin\"><img src=\"https://avatars1.githubusercontent.com/u/2109702?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Sorin Davidoi</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/issues?q=author%3Asorin-davidoi\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=sorin-davidoi\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=sorin-davidoi\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://github.com/scvnathan\"><img src=\"https://avatars3.githubusercontent.com/u/73474?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Nathan Schneirov</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=scvnathan\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=scvnathan\" title=\"Documentation\">📖</a> <a href=\"#ideas-scvnathan\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=scvnathan\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://lbenie.xyz/\"><img src=\"https://avatars1.githubusercontent.com/u/7316046?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Lucien Bénié</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=lbenie\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=lbenie\" title=\"Documentation\">📖</a> <a href=\"#ideas-lbenie\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=lbenie\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://boris.sh\"><img src=\"https://avatars1.githubusercontent.com/u/17952318?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Boris K</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=bokub\" title=\"Documentation\">📖</a></td>\n    <td align=\"center\"><a href=\"https://twitter.com/antonk52\"><img src=\"https://avatars1.githubusercontent.com/u/5817809?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Anton</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/issues?q=author%3Aantonk52\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=antonk52\" title=\"Code\">💻</a> <a href=\"#ideas-antonk52\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=antonk52\" title=\"Tests\">⚠️</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-enable -->\n<!-- prettier-ignore-end -->\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","readmeFilename":"README.md","_id":"@manifoldco/swagger-to-ts@2.0.0-alpha.6","_nodeVersion":"13.13.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-y2sj5haTs4G94wjOiOO7Bw9Uwu3Jb+MDk0Xk3uceWxSdQ6VMn+Wvy+Ok5/7oBWFFLKmZtmwViDAmQJ8rl9O7qA==","shasum":"892f8eeaed552182c6d727f7b4ec38bec4c8cfd2","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-2.0.0-alpha.6.tgz","fileCount":24,"unpackedSize":64636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepkCCCRA9TVsSAnZWagAAF8EP/2/VDSbFoR86ZMZdZoAU\nsh9k26ih84p/GkNvwyUiUiqU3NXNbJ92bDuHHmfNH1zfelSkqwtADVKoKldX\n/rZSs9gRSPY55Aitqp5a1a3PA31dPyUrcI6+vxYz1Tk4oqtbLDc6HlhKdsQv\nzylpGjdbeOOKgYyqjE38eOZclwCi8d6BSnPlUN98KddcderRpZhyJesfqD1I\nMYRTUFXYCNBpyayVry51yIzT4j54Y8VgWOTJOpkJ7aIoLBs2xlnlICeOwnzx\nRd7qxriLQOc6FkoCeIbEIXE/KOipWXLmvHu2ZPXzOW4qgLVUtSzdv1OrjK1p\naWG7io6Re7QXPqBUPRKEFkLOzzDK76/Kyr/0k7B2cyd5jFG+1qR7+jfvt+RA\nYLNhJXlPdZ/0f3l8Nh1S50c8XmMmAKSRnOvItfNq7nnlK6KLyqbEB9JtIPu/\nJhRiBnAxx2jdZitPfeQhRrqXpsm2H8n90XBbJLhyeMqMWSLgfngWEJO+oR4A\nIFHjEfGZOaXvUk4bLaI5ZxJCdQkbl613J7qXSsrDgu6uqeGTH7y4MIfgpFLe\nonqKw+kAXKhRkdxIUkW+N2FdeaJpZ8Jpr5btMEwLSBaxdTTasJzpgLIX0ETw\nv5MPy2AJtskQIUqVJzZawv2LEyDhL0thsIthfPufrZ/NkfruGFfztCl/sVeN\nttrp\r\n=MDpd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD36gV9mCz1rvdxpclHSmU7h8DJ083SeB8jfOOJg/hd8wIhANBC2DH760Tf8efliuCs9RbGSIMxBayS1ZFvBPQjGP7K"}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"gstpierre01@gmail.com","name":"minivera"},{"email":"saxosamo@gmail.com","name":"sslotsky"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_2.0.0-alpha.6_1587953794209_0.6964070183738775"},"_hasShrinkwrap":false},"2.0.0":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"2.0.0","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^4.0.0","js-yaml":"^3.13.1","meow":"^6.1.1","prettier":"^2.0.5"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.2","@pika/plugin-copy-assets":"^0.9.2","@pika/plugin-ts-standard-pkg":"^0.9.2","@types/jest":"^25.2.1","@types/js-yaml":"^3.12.3","@types/prettier":"^2.0.0","@typescript-eslint/eslint-plugin":"^2.29.0","@typescript-eslint/parser":"^2.31.0","eslint":"^6.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jest":"^25.4.0","ts-jest":"^25.4.0","typescript":"^3.8.3"},"engines":{"node":">= 10.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","_id":"@manifoldco/swagger-to-ts@2.0.0","_nodeVersion":"13.13.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Pq/JhiPVzLSbidylU22xEee2OncBEoBPGM44rZWGPqvRN0BJNeiN3hSkpqziqAUvM5rHGGIcHBdy7kTgnKpWww==","shasum":"37984dbba67f0f31302fdd792a9064b04c8cd758","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-2.0.0.tgz","fileCount":24,"unpackedSize":64862,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesOX4CRA9TVsSAnZWagAAY2AP/2mEBYaK7MS3yasyPNVT\nZRiTGZ2nTEL0fhRSaL4+tiITiCTt+La3tVXkWqPe1vd9KCYAYbYS/wxLPob1\n5OJQc0eWKwd7p+VVPdgII9P3zTxn3Jf3DsSkSn57btlcdH5dCdy49VR+PhaU\nzJMDpgWnDpXm/ZEYebbZgMKSuUHXTzZDfM7GQf+0o2rTcZk8x94ieZSm9Wps\nZ4SRQr7QBscSMvpijbFF+AwIIsA/H7Vo6qiI4kqDWhSjYQ9voFdjrzznJF7p\nhIOGFH17pAlDDebhpyZLrPma3DRY7yqpaF7e2dy+XqzW5LHEkuovuA7+fipZ\neBr4XL2Td9SYpxYeelEb/x6whO7vl59E3ebqbUy1biNtnExE5rNG9JnEa2YZ\nBnHhNZ8ESacFtTm//Vegy1z1ofR7oQVkmVR1PnFvvu1A4AHmiVcXGb1Efe1V\nKN+7kAhQmcd/Dr2WaxS0rdHcruw2OYf7JoFR8LI62eMKzlPtT7ZsI7FfjYwC\nEPRWn8e70D0D4P5gVrAkxBtCIJtpEwco/ta02cjW+vv+iSpHDB39SwjF8ulT\n8M2PHcSa5YofR03B4Vg5XSPSU8yxS3QP8Au9YBEYBu6kp0ivYhF0Tz7u1lpW\nJzHW2EvVyPjMGDIRPEoMH8oEW0Xks7+LsVFHHYqSZt1M2JbOrJ77iUMFd1m/\niR4c\r\n=xl+h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+RZLr7YOjYH0UlSKpH+mO58u7aSlCpC9Kzg3cl8++RAIhAINnFXpYkTNcpyrOf6/uKWZz3LrCbtU24TSObXVxJq+U"}]},"maintainers":[{"email":"caedeal@gmail.com","name":"caedeal"},{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"drew@pow.rs","name":"drewpowers"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"}],"_npmUser":{"name":"drewpowers","email":"drew@pow.rs"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_2.0.0_1588651511628_0.044009316089347106"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"},"2.1.0":{"name":"@manifoldco/swagger-to-ts","description":"Generate TypeScript types from Swagger OpenAPI specs","version":"2.1.0","license":"ISC","bin":{"swagger-to-ts":"bin/cli.js"},"pika":true,"sideEffects":false,"keywords":["swagger","typescript","ts","openapi","node"],"homepage":"https://github.com/manifoldco/swagger-to-ts#readme","bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"dependencies":{"chalk":"^4.0.0","js-yaml":"^3.13.1","meow":"^7.0.0","prettier":"^2.0.5"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.2","@pika/plugin-copy-assets":"^0.9.2","@pika/plugin-ts-standard-pkg":"^0.9.2","@types/jest":"^26.0.0","@types/js-yaml":"^3.12.3","@types/prettier":"^2.0.0","@typescript-eslint/eslint-plugin":"^2.29.0","@typescript-eslint/parser":"^2.31.0","eslint":"^6.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jest":"^25.4.0","ts-jest":"^25.4.0","typescript":"^3.8.3"},"engines":{"node":">= 10.0.0"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","_id":"@manifoldco/swagger-to-ts@2.1.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-IH0FAHhwWHR3Gs3rnVHNEscZujGn+K6/2Zu5cWfZre3Vz2tx1SvvJKEbSM89MztfDDRjOpb+6pQD/vqdEoTBVg==","shasum":"b52a429e5b4ab3627571d3e9ae7399cf5cd4c454","tarball":"https://registry.npmjs.org/@manifoldco/swagger-to-ts/-/swagger-to-ts-2.1.0.tgz","fileCount":24,"unpackedSize":70496,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfP+ETCRA9TVsSAnZWagAAyMIP/0E8NMEZOWQY25KRSJw2\nwUF+dvCLw3J8hji11mbR1NahVf/B//7D9XKDC3KFNe4F1/hR1Im/vZl/ynBg\nb4Q74/25owK6KRvKLathBD/eAmNF4P0mz5fKoSYf86Gwk4hbTaubIgJKUOiX\nzOlH0oU7jwwU3PYUfBQQPYwuBRDNND3JHzzDfv44B3A2EosLkEngS5nqKptl\nIeXmSAT8ygNn0wtOKiDkVocY53SJE/tam9r8m9Cni4Ajd38XV3v7LQQKiLFx\nZgwbAROGjX55SG4xEmRRyWxez7O00OuD5G7qU2/XiK96kh5rDEcDxrTYDLOq\n7UepWEOPMfki6X/KLk7a6BeYSxnxsddN+Q6fz849wzzbFqAxDL2tEV1DuskB\nqor4glldTY588KjRFSM6qMGHhTau+l26XXzWvUsVDACRM/63t+4O2s17Y76h\niO05LWDlw+WXttVKJIArdWXZ2M/RgRJMzWqwqOeprz2dZJP0arErRKTPaNq4\nq5sVu1zlprNqovwVZqXFn1yPHXwiq6D51jVxSnHdMt376HaFEqwyobJ06CWm\nKN6xmqannT7w2ugWnh2HlV5HWbQfHnIHmUX6KSCJNiEYUxyo2dP2VRmhOm2S\nrqJ93Qh++HQbwYJ/H9IDrtooY9+FqW2sft693O02/i87Q97ievKXDs16sSQS\n6fB5\r\n=rWMS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClSBYG84AuTQCHXfnoS25YiGHnD1haxVvJHB5rRibzpAIgJj8lJZmgY8d3xmBlTv9+07/Yuut2mdiyOSQReMu1Rq0="}]},"maintainers":[{"email":"matthew.creager@gmail.com","name":"creager"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"dharrigan118+npm@gmail.com","name":"davidharrigan"},{"email":"dleger@manifold.co","name":"davidleger95"},{"email":"enmand@gmail.com","name":"enmand"},{"email":"gary@modernsongs.com","name":"garyposter"},{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"jeffandersen@gmail.com","name":"jeffandersen"},{"email":"ops@manifold.co","name":"manifold-tokens"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"ntassone@gmail.com","name":"ntassone"}],"_npmUser":{"name":"garyposter","email":"gary@modernsongs.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swagger-to-ts_2.1.0_1598021907237_0.45344718105719584"},"_hasShrinkwrap":false,"deprecated":"This package has changed to openapi-typescript"}},"time":{"created":"2018-12-13T20:30:48.562Z","0.1.0":"2018-12-13T20:30:48.888Z","modified":"2022-04-06T03:26:22.378Z","0.2.0":"2018-12-13T21:24:33.412Z","0.2.1":"2018-12-13T21:40:41.762Z","0.3.0":"2018-12-13T22:10:44.439Z","0.3.1":"2018-12-18T20:53:37.733Z","0.9.0":"2019-01-28T22:08:08.565Z","1.0.0-alpha.0":"2019-01-30T00:05:07.708Z","1.0.0-alpha.1":"2019-01-30T00:07:55.932Z","1.0.0":"2019-01-30T02:54:54.325Z","1.0.1":"2019-01-30T03:09:56.227Z","1.0.2":"2019-01-30T23:30:51.005Z","1.0.3":"2019-02-21T22:08:52.810Z","1.0.4":"2019-02-22T17:17:46.348Z","1.1.0-rc.0":"2019-03-19T19:52:50.710Z","1.1.1":"2019-03-19T20:27:50.265Z","1.1.2-0":"2019-03-22T03:38:48.808Z","1.1.2":"2019-03-25T14:25:29.891Z","1.1.3":"2019-04-19T01:37:29.432Z","1.2.0-rc.0":"2019-06-11T20:58:14.859Z","1.2.0-rc.1":"2019-06-11T20:58:55.715Z","1.2.0-rc.2":"2019-06-11T21:02:43.896Z","1.2.0":"2019-06-11T21:22:32.551Z","1.2.0-beta.0":"2019-06-11T21:24:49.407Z","1.2.1-beta.0":"2019-06-11T21:24:58.827Z","1.2.1":"2019-06-12T15:42:40.491Z","1.2.2":"2019-07-18T21:39:41.544Z","1.3.0-0":"2019-08-05T17:48:39.420Z","1.3.0":"2019-08-05T18:00:11.189Z","1.3.1":"2019-08-28T21:32:48.577Z","1.4.0":"2019-10-01T14:54:29.911Z","1.5.0":"2019-12-12T20:15:51.578Z","1.6.0":"2020-02-02T19:07:07.413Z","1.6.1":"2020-02-02T21:20:25.498Z","1.6.2":"2020-02-02T21:41:56.398Z","1.7.0":"2020-02-02T22:29:33.979Z","1.7.1":"2020-03-29T17:09:14.877Z","2.0.0-alpha.0":"2020-04-05T02:28:00.184Z","2.0.0-alpha.1":"2020-04-05T17:12:41.766Z","2.0.0-alpha.2":"2020-04-22T02:02:57.866Z","2.0.0-alpha.3":"2020-04-22T03:33:01.056Z","2.0.0-alpha.4":"2020-04-27T01:05:06.940Z","2.0.0-alpha.5":"2020-04-27T01:32:11.460Z","2.0.0-alpha.6":"2020-04-27T02:16:34.338Z","2.0.0":"2020-05-05T04:05:11.746Z","2.1.0":"2020-08-21T14:58:27.415Z"},"maintainers":[{"email":"jbowes@repl.ca","name":"jbowes"},{"email":"dave@manifold.co","name":"davehyndman"},{"email":"markjamieson0@gmail.com","name":"markjamieson"},{"email":"ntassone@gmail.com","name":"ntassone"}],"description":"Generate TypeScript types from Swagger OpenAPI specs","homepage":"https://github.com/manifoldco/swagger-to-ts#readme","keywords":["swagger","typescript","ts","openapi","node"],"repository":{"type":"git","url":"git+https://github.com/manifoldco/swagger-to-ts.git"},"bugs":{"url":"https://github.com/manifoldco/swagger-to-ts/issues"},"license":"ISC","readme":"[![version(scoped)](https://img.shields.io/npm/v/@manifoldco/swagger-to-ts.svg)](https://www.npmjs.com/package/@manifoldco/swagger-to-ts)\n[![codecov](https://codecov.io/gh/manifoldco/swagger-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/manifoldco/swagger-to-ts)\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fmanifoldco%2Fswagger-to-ts%2Fbadge&style=flat)](https://actions-badge.atrox.dev/manifoldco/swagger-to-ts/goto)\n\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n[![All Contributors](https://img.shields.io/badge/all_contributors-18-orange.svg?style=flat-square)](#contributors-)\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\n# 📘️ swagger-to-ts\n\n🚀 Convert [OpenAPI 2.0][openapi2] and [OpenAPI 3.0][openapi3] schemas to TypeScript interfaces using Node.js.\n\n💅 The output is prettified with [Prettier][prettier] (and can be customized!).\n\n👉 Works for both local and remote resources (filesystem and HTTP).\n\nView examples:\n\n- [Stripe, OpenAPI 2.0](./examples/stripe-openapi2.ts)\n- [Stripe, OpenAPI 3.0](./examples/stripe-openapi3.ts)\n\n## Usage\n\n### CLI\n\n#### 🗄️ Reading specs from file system\n\n```bash\nnpx @manifoldco/swagger-to-ts schema.yaml --output schema.ts\n\n# 🤞 Loading spec from tests/v2/specs/stripe.yaml…\n# 🚀 schema.yaml -> schema.ts [250ms]\n```\n\n#### ☁️ Reading specs from remote resource\n\n```bash\nnpx @manifoldco/swagger-to-ts https://petstore.swagger.io/v2/swagger.json --output petstore.ts\n\n# 🤞 Loading spec from https://petstore.swagger.io/v2/swagger.json…\n# 🚀 https://petstore.swagger.io/v2/swagger.json -> petstore.ts [650ms]\n```\n\n_Thanks to @psmyrdek for this feature!_\n\n#### Generating multiple schemas\n\nIn your `package.json`, for each schema you’d like to transform add one `generate:specs:[name]` npm-script. Then combine them all into one `generate:specs` script, like so:\n\n```json\n\"scripts\": {\n  \"generate:specs\": \"npm run generate:specs:one && npm run generate:specs:two && npm run generate:specs:three\",\n  \"generate:specs:one\": \"npx @manifoldco/swagger-to-ts one.yaml -o one.ts\",\n  \"generate:specs:two\": \"npx @manifoldco/swagger-to-ts two.yaml -o two.ts\",\n  \"generate:specs:three\": \"npx @manifoldco/swagger-to-ts three.yaml -o three.ts\"\n}\n```\n\nYou can even specify unique options per-spec, if needed. To generate them all together, run:\n\n```bash\nnpm run generate:specs\n```\n\nRinse and repeat for more specs.\n\nFor anything more complicated, or for generating specs dynamically, you can also use the [Node API](#node).\n\n#### CLI Options\n\n| Option                         | Alias | Default  | Description                                                      |\n| :----------------------------- | :---- | :------: | :--------------------------------------------------------------- |\n| `--output [location]`          | `-o`  | (stdout) | Where should the output file be saved?                           |\n| `--prettier-config [location]` |       |          | (optional) Path to your custom Prettier configuration for output |\n\n### Node\n\n```bash\nnpm i --save-dev @manifoldco/swagger-to-ts\n```\n\n```js\nconst { readFileSync } = require(\"fs\");\nconst swaggerToTS = require(\"@manifoldco/swagger-to-ts\");\n\nconst input = JSON.parse(readFileSync(\"spec.json\", \"utf8\")); // Input can be any JS object (OpenAPI format)\nconst output = swaggerToTS(input); // Outputs TypeScript defs as a string (to be parsed, or written to a file)\n```\n\nThe Node API is a bit more flexible: it will only take a JS object as input (OpenAPI format), and\nreturn a string of TS definitions. This lets you pull from any source (a Swagger server, local\nfiles, etc.), and similarly lets you parse, post-process, and save the output anywhere.\n\nIf your specs are in YAML, you’ll have to convert them to JS objects using a library such as\n[js-yaml][js-yaml]. If you’re batching large folders of specs, [glob][glob] may also come in handy.\n\n#### PropertyMapper\n\nIn order to allow more control over how properties are parsed, and to specifically handle\n`x-something`-properties, the `propertyMapper` option may be specified as the optional 2nd\nparameter.\n\nThis is a function that, if specified, is called for each property and allows you to change how\nswagger-to-ts handles parsing of Swagger files.\n\nAn example on how to use the `x-nullable` property to control if a property is optional:\n\n```js\nconst getNullable = (d: { [key: string]: any }): boolean => {\n  const nullable = d[\"x-nullable\"];\n  if (typeof nullable === \"boolean\") {\n    return nullable;\n  }\n  return true;\n};\n\nconst output = swaggerToTS(swagger, {\n  propertyMapper: (swaggerDefinition, property): Property => ({\n    ...property,\n    optional: getNullable(swaggerDefinition),\n  }),\n});\n```\n\n_Thanks to @atlefren for this feature!_\n\n## Upgrading from v1 to v2\n\nSome options were removed in swagger-to-ts v2 that will break apps using v1, but it does so in exchange for more control, more stability, and more resilient types.\n\nTL;DR:\n\n```diff\n-import { OpenAPI2 } from './generated';\n+import { definitions } from './generated';\n\n-type MyType = OpenAPI2.MyType;\n+type MyType = definitions['MyType'];\n```\n\n#### In-depth explanation\n\nIn order to explain the change, let’s go through an example with the following Swagger definition (partial):\n\n```yaml\nswagger: 2.0\ndefinitions:\n  user:\n    type: object\n    properties:\n      role:\n        type: object\n        properties:\n          access:\n            enum:\n              - admin\n              - user\n  user_role:\n    type: object\n      role:\n        type: string\n  team:\n    type: object\n    properties:\n      users:\n        type: array\n        items:\n          $ref: user\n```\n\nThis is how **v1** would have generated those types:\n\n```ts\ndeclare namespace OpenAPI2 {\n  export interface User {\n    role?: UserRole;\n  }\n  export interface UserRole {\n    access?: \"admin\" | \"user\";\n  }\n  export interface UserRole {\n    role?: string;\n  }\n  export interface Team {\n    users?: User[];\n  }\n}\n```\n\nUh oh. It tried to be intelligent, and keep interfaces shallow by transforming `user.role` into `UserRole.` However, we also have another `user_role` entry that has a conflicting `UserRole` interface. This is not what we want.\n\nv1 of this project made certain assumptions about your schema that don’t always hold true. This is how **v2** generates types from that same schema:\n\n```ts\nexport interface definitions {\n  user: {\n    role?: {\n      access?: \"admin\" | \"user\";\n    };\n  };\n  user_role: {\n    role?: string;\n  };\n  team: {\n    users?: definitions[\"user\"][];\n  };\n}\n```\n\nThis matches your schema more accurately, and doesn’t try to be clever by keeping things shallow. It’s also more predictable, with the generated types matching your schema naming. In your code here’s what would change:\n\n```diff\n-UserRole\n+definitions['user']['role'];\n```\n\nWhile this is a change, it’s more predictable. Now you don’t have to guess what `user_role` was renamed to; you simply chain your type from the Swagger definition you‘re used to.\n\n#### Better \\$ref generation\n\nswagger-to-ts v1 would attempt to resolve and flatten `$ref`s. This was bad because it would break on circular references (which both Swagger and TypeScript allow), and resolution also slowed it down.\n\nIn v2, your `$ref`s are preserved as-declared, and TypeScript does all the work. Now the responsibility is on your schema to handle collisions rather than swagger-to-ts, which is a better approach in general.\n\n#### No Wrappers\n\nThe `--wrapper` CLI flag was removed because it was awkward having to manage part of your TypeScript definition in a CLI flag. In v2, simply compose the wrapper yourself however you’d like in TypeScript:\n\n```ts\nimport { components as Schema1 } from './generated/schema-1.ts';\nimport { components as Schema2 } from './generated/schema-2.ts';\n\ndeclare namespace OpenAPI3 {\n  export Schema1;\n  export Schema2;\n}\n```\n\n#### No CamelCasing\n\nThe `--camelcase` flag was removed because it would mangle object names incorrectly or break trying to sanitize them (for example, you couldn’t run camelcase on a schema with `my.obj` and `my-obj`—they both would transfom to the same thing causing unexpected results).\n\nOpenAPI allows for far more flexibility in naming schema objects than JavaScript, so that should be carried over from your schema. In v2, the naming of generated types maps 1:1 with your schema name.\n\n[glob]: https://www.npmjs.com/package/glob\n[js-yaml]: https://www.npmjs.com/package/js-yaml\n[openapi2]: https://swagger.io/specification/v2/\n[openapi3]: https://swagger.io/specification\n[namespace]: https://www.typescriptlang.org/docs/handbook/namespaces.html\n[prettier]: https://npmjs.com/prettier\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"https://pow.rs\"><img src=\"https://avatars3.githubusercontent.com/u/1369770?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Drew Powers</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=dangodev\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=dangodev\" title=\"Documentation\">📖</a> <a href=\"#infra-dangodev\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">🚇</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=dangodev\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"http://smyrdek.com\"><img src=\"https://avatars1.githubusercontent.com/u/6187417?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Przemek Smyrdek</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=psmyrdek\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=psmyrdek\" title=\"Documentation\">📖</a> <a href=\"#ideas-psmyrdek\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=psmyrdek\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://danielenman.com\"><img src=\"https://avatars3.githubusercontent.com/u/432487?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Dan Enman</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/issues?q=author%3Aenmand\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=enmand\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"http://atlefren.net\"><img src=\"https://avatars2.githubusercontent.com/u/1829927?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Atle Frenvik Sveen</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=atlefren\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=atlefren\" title=\"Documentation\">📖</a> <a href=\"#ideas-atlefren\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=atlefren\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"http://www.timdewolf.com\"><img src=\"https://avatars0.githubusercontent.com/u/4455209?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Tim de Wolf</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tpdewolf\" title=\"Code\">💻</a> <a href=\"#ideas-tpdewolf\" title=\"Ideas, Planning, & Feedback\">🤔</a></td>\n    <td align=\"center\"><a href=\"https://github.com/tombarton\"><img src=\"https://avatars1.githubusercontent.com/u/6222711?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Tom Barton</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tombarton\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tombarton\" title=\"Documentation\">📖</a> <a href=\"#ideas-tombarton\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tombarton\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"http://www.viig.no\"><img src=\"https://avatars0.githubusercontent.com/u/1080888?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Sven Nicolai Viig</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/issues?q=author%3Asvnv\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=svnv\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=svnv\" title=\"Tests\">⚠️</a></td>\n  </tr>\n  <tr>\n    <td align=\"center\"><a href=\"https://toot.cafe/@sorin\"><img src=\"https://avatars1.githubusercontent.com/u/2109702?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Sorin Davidoi</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/issues?q=author%3Asorin-davidoi\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=sorin-davidoi\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=sorin-davidoi\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://github.com/scvnathan\"><img src=\"https://avatars3.githubusercontent.com/u/73474?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Nathan Schneirov</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=scvnathan\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=scvnathan\" title=\"Documentation\">📖</a> <a href=\"#ideas-scvnathan\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=scvnathan\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://lbenie.xyz/\"><img src=\"https://avatars1.githubusercontent.com/u/7316046?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Lucien Bénié</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=lbenie\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=lbenie\" title=\"Documentation\">📖</a> <a href=\"#ideas-lbenie\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=lbenie\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://boris.sh\"><img src=\"https://avatars1.githubusercontent.com/u/17952318?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Boris K</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=bokub\" title=\"Documentation\">📖</a></td>\n    <td align=\"center\"><a href=\"https://twitter.com/antonk52\"><img src=\"https://avatars1.githubusercontent.com/u/5817809?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Anton</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/issues?q=author%3Aantonk52\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=antonk52\" title=\"Code\">💻</a> <a href=\"#ideas-antonk52\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=antonk52\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://github.com/tshelburne\"><img src=\"https://avatars3.githubusercontent.com/u/1202267?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Tim Shelburne</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tshelburne\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=tshelburne\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://typeofweb.com\"><img src=\"https://avatars0.githubusercontent.com/u/1338731?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Michał Miszczyszyn</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=mmiszy\" title=\"Code\">💻</a></td>\n  </tr>\n  <tr>\n    <td align=\"center\"><a href=\"https://github.com/skh-\"><img src=\"https://avatars1.githubusercontent.com/u/1292598?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Sam K Hall</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=skh-\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=skh-\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://github.com/BlooJeans\"><img src=\"https://avatars2.githubusercontent.com/u/1751182?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Matt Jeanes</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=BlooJeans\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://www.selbekk.io\"><img src=\"https://avatars1.githubusercontent.com/u/1307267?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Kristofer Giltvedt Selbekk</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=selbekk\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://mause.me\"><img src=\"https://avatars2.githubusercontent.com/u/1405026?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Elliana May</b></sub></a><br /><a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=Mause\" title=\"Code\">💻</a> <a href=\"https://github.com/manifoldco/swagger-to-ts/commits?author=Mause\" title=\"Tests\">⚠️</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-enable -->\n<!-- prettier-ignore-end -->\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","readmeFilename":"README.md"}