{"_id":"do-swagger2openapi","_rev":"13-31c460b9da7eaf5710b84b5f41e403b3","name":"do-swagger2openapi","dist-tags":{"latest":"7.0.20"},"versions":{"7.0.9":{"name":"do-swagger2openapi","version":"7.0.9","keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"author":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com"},"license":"BSD-3-Clause","_id":"do-swagger2openapi@7.0.9","maintainers":[{"name":"space777","email":"1130483391@qq.com"}],"homepage":"https://github.com/space-77/oas-kit#readme","bugs":{"url":"https://github.com/space-77/oas-kit/issues"},"bin":{"boast":"boast.js","oas-validate":"oas-validate.js","swagger2openapi":"swagger2openapi.js"},"dist":{"shasum":"8a1e359c028f8d70b8e79e24886b10a717c1ac9d","tarball":"https://registry.npmjs.org/do-swagger2openapi/-/do-swagger2openapi-7.0.9.tgz","fileCount":12,"integrity":"sha512-GZv6LX37jkEpbbPX5qqSDB/lK1T85+qw85M4Xo8WVVqn//rKJ3DZRWDoCJNsqpaEYVZhB1LUYpIy075xum9VPg==","signatures":[{"sig":"MEQCICou43buua9C8rQE9cEh28qhxB6203HPGCqL8AvE/7qpAiAtV48rv3QS1KzHQcXbJBv63khfvvNb8ii3BvYC4NQWsA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":121558},"main":"index.js","types":"types/index.d.ts","funding":"https://github.com/space-77/oas-kit?sponsor=1","gitHead":"5cbeab49334ebe18c117764d086e1cfe7d708e97","scripts":{"test":"mocha"},"_npmUser":{"name":"space777","email":"1130483391@qq.com"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"url":"git+https://github.com/space-77/oas-kit.git","type":"git"},"_npmVersion":"6.14.17","description":"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate","directories":{},"_nodeVersion":"14.20.0","dependencies":{"yaml":"^1.10.0","yargs":"^17.0.1","reftools":"^1.1.9","node-fetch":"^2.6.1","oas-resolver":"^2.5.6","call-me-maybe":"^1.0.1","deep-for-each":"^3.0.0","node-fetch-h2":"^2.3.0","oas-validator":"^5.0.8","node-readfiles":"^0.2.0","oas-kit-common":"^1.0.8","oas-schema-walker":"^1.1.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/do-swagger2openapi_7.0.9_1684649392825_0.3345736098308869","host":"s3://npm-registry-packages"}},"7.0.10":{"name":"do-swagger2openapi","version":"7.0.10","keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"author":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com"},"license":"BSD-3-Clause","_id":"do-swagger2openapi@7.0.10","maintainers":[{"name":"space777","email":"1130483391@qq.com"}],"homepage":"https://github.com/space-77/oas-kit#readme","bugs":{"url":"https://github.com/space-77/oas-kit/issues"},"bin":{"boast":"boast.js","oas-validate":"oas-validate.js","swagger2openapi":"swagger2openapi.js"},"dist":{"shasum":"6b3d509c3f9c9dec5de63cb95d6bc0353827144f","tarball":"https://registry.npmjs.org/do-swagger2openapi/-/do-swagger2openapi-7.0.10.tgz","fileCount":12,"integrity":"sha512-oeMvPv5K0wW57D+C7zhxSF0xG+aYZ2pUihfcRW9UZDXIuQkoBYSIR9FrwQINqFOu4LgfOc5Ky72JQ5R30hAVdQ==","signatures":[{"sig":"MEUCIA7O0a//Sh0wd6swcLaHO1b9RW88OGfXwNO3LKgOJr5qAiEAjd23cS4ljcB+Lk9Bs6OT31S0l0cKt10DqKMqbCHFLjE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":120070},"main":"index.js","types":"types/index.d.ts","funding":"https://github.com/space-77/oas-kit?sponsor=1","gitHead":"5cbeab49334ebe18c117764d086e1cfe7d708e97","scripts":{"test":"mocha"},"_npmUser":{"name":"space777","email":"1130483391@qq.com"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"url":"git+https://github.com/space-77/oas-kit.git","type":"git"},"_npmVersion":"6.14.17","description":"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate","directories":{},"_nodeVersion":"14.20.0","dependencies":{"yaml":"^1.10.0","yargs":"^17.0.1","reftools":"^1.1.9","node-fetch":"^2.6.1","oas-resolver":"^2.5.6","call-me-maybe":"^1.0.1","deep-for-each":"^3.0.0","node-fetch-h2":"^2.3.0","oas-validator":"^5.0.8","node-readfiles":"^0.2.0","do-oas-kit-common":"^1.0.9","oas-schema-walker":"^1.1.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/do-swagger2openapi_7.0.10_1684649935830_0.28118340213973525","host":"s3://npm-registry-packages"}},"7.0.11":{"name":"do-swagger2openapi","version":"7.0.11","keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"author":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com"},"license":"BSD-3-Clause","_id":"do-swagger2openapi@7.0.11","maintainers":[{"name":"space777","email":"1130483391@qq.com"}],"homepage":"https://github.com/space-77/oas-kit#readme","bugs":{"url":"https://github.com/space-77/oas-kit/issues"},"bin":{"boast":"boast.js","oas-validate":"oas-validate.js","swagger2openapi":"swagger2openapi.js"},"dist":{"shasum":"68c6d5334f407384afeb843f29e10dd90e7232cf","tarball":"https://registry.npmjs.org/do-swagger2openapi/-/do-swagger2openapi-7.0.11.tgz","fileCount":12,"integrity":"sha512-Y/Lt7fqZL4XaTOp4JIqRRYMZFvTFp17yns8oTls2knzvW7q2SDx2IMrZG7XySnlnVKFgScjTwQpfUWh34+sejA==","signatures":[{"sig":"MEUCIQCmvVxRhHYmc1YZl/4palrh9hXLRsJK0LU+H5En+Fzw2wIgZjSU9AWx1JRjbP/xp0HLdV9j/lqFw9jpJL58Iv5GEzg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":120095},"main":"index.js","types":"types/index.d.ts","funding":"https://github.com/space-77/oas-kit?sponsor=1","gitHead":"5cbeab49334ebe18c117764d086e1cfe7d708e97","scripts":{"dev":"node dev","test":"mocha"},"_npmUser":{"name":"space777","email":"1130483391@qq.com"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"url":"git+https://github.com/space-77/oas-kit.git","type":"git"},"_npmVersion":"6.14.17","description":"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate","directories":{},"_nodeVersion":"14.20.0","dependencies":{"yaml":"^1.10.0","yargs":"^17.0.1","reftools":"^1.1.9","node-fetch":"^2.6.1","oas-resolver":"^2.5.6","call-me-maybe":"^1.0.1","deep-for-each":"^3.0.0","node-fetch-h2":"^2.3.0","oas-validator":"^5.0.8","node-readfiles":"^0.2.0","do-oas-kit-common":"^1.0.10","oas-schema-walker":"^1.1.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/do-swagger2openapi_7.0.11_1684654351260_0.3784271039919227","host":"s3://npm-registry-packages"}},"7.0.12":{"name":"do-swagger2openapi","version":"7.0.12","keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"author":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com"},"license":"BSD-3-Clause","_id":"do-swagger2openapi@7.0.12","maintainers":[{"name":"space777","email":"1130483391@qq.com"}],"homepage":"https://github.com/space-77/oas-kit#readme","bugs":{"url":"https://github.com/space-77/oas-kit/issues"},"bin":{"boast":"boast.js","oas-validate":"oas-validate.js","swagger2openapi":"swagger2openapi.js"},"dist":{"shasum":"2d979e36fdbd451d15fdc89d316da3ead1ae23a7","tarball":"https://registry.npmjs.org/do-swagger2openapi/-/do-swagger2openapi-7.0.12.tgz","fileCount":12,"integrity":"sha512-l89DZzeFjQvsELqe6ZwvEZqutxfmPX/yoU8uyxBeq+3x4mqbt3peG+6rQa551R9dboxZQanAipBtz3XkuB5ruA==","signatures":[{"sig":"MEYCIQCODxQGBTjCNSNm96RCokmIg4IxLxRshyJos1mL78KPVAIhAP1WILQXWavW83vGl5ZRQhwqS7hv6AtTf28pWc+CKQ07","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":120182},"main":"index.js","types":"types/index.d.ts","funding":"https://github.com/space-77/oas-kit?sponsor=1","gitHead":"5cbeab49334ebe18c117764d086e1cfe7d708e97","scripts":{"dev":"node dev","test":"mocha"},"_npmUser":{"name":"space777","email":"1130483391@qq.com"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"url":"git+https://github.com/space-77/oas-kit.git","type":"git"},"_npmVersion":"6.14.17","description":"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate","directories":{},"_nodeVersion":"14.20.0","dependencies":{"yaml":"^1.10.0","yargs":"^17.0.1","reftools":"^1.1.9","node-fetch":"^2.6.1","oas-resolver":"^2.5.6","call-me-maybe":"^1.0.1","deep-for-each":"^3.0.0","node-fetch-h2":"^2.3.0","oas-validator":"^5.0.8","node-readfiles":"^0.2.0","do-oas-kit-common":"^1.0.10","oas-schema-walker":"^1.1.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/do-swagger2openapi_7.0.12_1684663193709_0.6475791246537181","host":"s3://npm-registry-packages"}},"7.0.13":{"name":"do-swagger2openapi","version":"7.0.13","keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"author":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com"},"license":"BSD-3-Clause","_id":"do-swagger2openapi@7.0.13","maintainers":[{"name":"space777","email":"1130483391@qq.com"}],"homepage":"https://github.com/space-77/oas-kit#readme","bugs":{"url":"https://github.com/space-77/oas-kit/issues"},"bin":{"boast":"boast.js","oas-validate":"oas-validate.js","swagger2openapi":"swagger2openapi.js"},"dist":{"shasum":"f9fe8af6dd96d2769ee320d056c6ebe8b5e20e32","tarball":"https://registry.npmjs.org/do-swagger2openapi/-/do-swagger2openapi-7.0.13.tgz","fileCount":12,"integrity":"sha512-c2OS/4lbLhB2ZDIXiC6tYgMsmFPNJSGbdlG0hTBHY/0C15JlwRrsTJcUU+JITDYyUhSgVnePObXg6dh43IdrKQ==","signatures":[{"sig":"MEUCIQC8IeaKzEEcW9/UY1NwVh2lj9ytAsM7BjmvOn7Rdnj8MQIgcO30rvSf6MfSC5TvFiSEhxbPymPKAMb1XzJrG9RjUes=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":120457},"main":"index.js","types":"types/index.d.ts","funding":"https://github.com/space-77/oas-kit?sponsor=1","gitHead":"5cbeab49334ebe18c117764d086e1cfe7d708e97","scripts":{"dev":"node dev","test":"mocha"},"_npmUser":{"name":"space777","email":"1130483391@qq.com"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"url":"git+https://github.com/space-77/oas-kit.git","type":"git"},"_npmVersion":"6.14.17","description":"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate","directories":{},"_nodeVersion":"14.20.0","dependencies":{"yaml":"^1.10.0","yargs":"^17.0.1","reftools":"^1.1.9","node-fetch":"^2.6.1","oas-resolver":"^2.5.6","call-me-maybe":"^1.0.1","deep-for-each":"^3.0.0","node-fetch-h2":"^2.3.0","oas-validator":"^5.0.8","node-readfiles":"^0.2.0","do-oas-kit-common":"^1.0.10","oas-schema-walker":"^1.1.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/do-swagger2openapi_7.0.13_1686280351302_0.6810103489925621","host":"s3://npm-registry-packages"}},"7.0.14":{"name":"do-swagger2openapi","version":"7.0.14","keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"author":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com"},"license":"BSD-3-Clause","_id":"do-swagger2openapi@7.0.14","maintainers":[{"name":"space777","email":"1130483391@qq.com"}],"homepage":"https://github.com/space-77/oas-kit#readme","bugs":{"url":"https://github.com/space-77/oas-kit/issues"},"bin":{"boast":"boast.js","oas-validate":"oas-validate.js","swagger2openapi":"swagger2openapi.js"},"dist":{"shasum":"2bc70cecb91fb0400a2bc5d814864236132e1159","tarball":"https://registry.npmjs.org/do-swagger2openapi/-/do-swagger2openapi-7.0.14.tgz","fileCount":12,"integrity":"sha512-LrnaeSECw0WfX2tE1KinpluMjoEN9utuwOC6NqZee7a0+VxzEDILalmwBb2etaOupLvj0uXWfP6ot/t2bwvAJA==","signatures":[{"sig":"MEUCIChLGg3vsJTFVlw1IF+5CjFp/Lfc5f3IsjfBs9ssKSGLAiEAzclBuXQYvXyWXGWWprvEQttLq/RkN+FQpFJMNUWwatc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":120473},"main":"index.js","types":"types/index.d.ts","funding":"https://github.com/space-77/oas-kit?sponsor=1","gitHead":"5cbeab49334ebe18c117764d086e1cfe7d708e97","scripts":{"dev":"node dev","test":"mocha"},"_npmUser":{"name":"space777","email":"1130483391@qq.com"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"url":"git+https://github.com/space-77/oas-kit.git","type":"git"},"_npmVersion":"6.14.17","description":"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate","directories":{},"_nodeVersion":"14.20.0","dependencies":{"yaml":"^1.10.0","yargs":"^17.0.1","reftools":"^1.1.9","node-fetch":"^2.6.1","oas-resolver":"^2.5.6","call-me-maybe":"^1.0.1","deep-for-each":"^3.0.0","node-fetch-h2":"^2.3.0","oas-validator":"^5.0.8","node-readfiles":"^0.2.0","do-oas-kit-common":"^1.0.10","oas-schema-walker":"^1.1.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/do-swagger2openapi_7.0.14_1687103524127_0.2103945686418205","host":"s3://npm-registry-packages"}},"7.0.15":{"name":"do-swagger2openapi","version":"7.0.15","keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"author":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com"},"license":"BSD-3-Clause","_id":"do-swagger2openapi@7.0.15","maintainers":[{"name":"space777","email":"1130483391@qq.com"}],"homepage":"https://github.com/space-77/oas-kit#readme","bugs":{"url":"https://github.com/space-77/oas-kit/issues"},"bin":{"boast":"boast.js","oas-validate":"oas-validate.js","swagger2openapi":"swagger2openapi.js"},"dist":{"shasum":"01dbff2f2819a0c23702c2afa89534a23d3f9fd1","tarball":"https://registry.npmjs.org/do-swagger2openapi/-/do-swagger2openapi-7.0.15.tgz","fileCount":12,"integrity":"sha512-pVCqb45CUzS2fvbHatMu9PtKAX7OUAZAeG+8fZ6fkVNyD3d75FCS8VbtjXxjlVces4eHFcR3HuwasGH9xhCplw==","signatures":[{"sig":"MEUCIQDl4n85FnGQvf7XczxpTmObQl/87wV5usWNAS+M5l3cagIgNMjmpjGDwVv8G+szEijiuundZpN6ve97+kAIkcsmG/U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":123218},"main":"index.js","types":"types/index.d.ts","funding":"https://github.com/space-77/oas-kit?sponsor=1","gitHead":"5cbeab49334ebe18c117764d086e1cfe7d708e97","scripts":{"dev":"node dev","test":"mocha"},"_npmUser":{"name":"space777","email":"1130483391@qq.com"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"url":"git+https://github.com/space-77/oas-kit.git","type":"git"},"_npmVersion":"8.15.0","description":"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate","directories":{},"_nodeVersion":"16.17.0","dependencies":{"yaml":"^1.10.0","yargs":"^17.0.1","reftools":"^1.1.9","node-fetch":"^2.6.1","oas-resolver":"^2.5.6","call-me-maybe":"^1.0.1","deep-for-each":"^3.0.0","node-fetch-h2":"^2.3.0","oas-validator":"^5.0.8","node-readfiles":"^0.2.0","do-oas-kit-common":"^1.0.10","oas-schema-walker":"^1.1.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/do-swagger2openapi_7.0.15_1691662035074_0.6171863345634387","host":"s3://npm-registry-packages"}},"7.0.16":{"name":"do-swagger2openapi","version":"7.0.16","keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"author":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com"},"license":"BSD-3-Clause","_id":"do-swagger2openapi@7.0.16","maintainers":[{"name":"space777","email":"1130483391@qq.com"}],"homepage":"https://github.com/space-77/oas-kit#readme","bugs":{"url":"https://github.com/space-77/oas-kit/issues"},"bin":{"boast":"boast.js","oas-validate":"oas-validate.js","swagger2openapi":"swagger2openapi.js"},"dist":{"shasum":"2cfe8f33d88e7f9c3d56b6b60233e2f3523c9ee1","tarball":"https://registry.npmjs.org/do-swagger2openapi/-/do-swagger2openapi-7.0.16.tgz","fileCount":12,"integrity":"sha512-Hm8vZ18G6WWmRyEqJWYp9rZtaLQ9Rh/AZbGhTflb8kOxw5eSmKOxNNci8KQ1nV+TL8Moe/G8g8BTAonRpZc8Zg==","signatures":[{"sig":"MEQCIAPfdsjETem/O7CmndVY8mWFjyYGLrrA4HMiajrc/bFnAiA1uvLdjqUtzz4zFoyZClRz05+SJ0HjWO3SRkhqL4p4eA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":123212},"main":"index.js","types":"types/index.d.ts","funding":"https://github.com/space-77/oas-kit?sponsor=1","gitHead":"5cbeab49334ebe18c117764d086e1cfe7d708e97","scripts":{"dev":"node dev","test":"mocha"},"_npmUser":{"name":"space777","email":"1130483391@qq.com"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"url":"git+https://github.com/space-77/oas-kit.git","type":"git"},"_npmVersion":"8.15.0","description":"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate","directories":{},"_nodeVersion":"16.17.0","dependencies":{"yaml":"^1.10.0","yargs":"^17.0.1","reftools":"^1.1.9","node-fetch":"^2.6.1","oas-resolver":"^2.5.6","call-me-maybe":"^1.0.1","deep-for-each":"^3.0.0","node-fetch-h2":"^2.3.0","oas-validator":"^5.0.8","node-readfiles":"^0.2.0","do-oas-kit-common":"^1.0.10","oas-schema-walker":"^1.1.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/do-swagger2openapi_7.0.16_1691662709518_0.7369581841234794","host":"s3://npm-registry-packages"}},"7.0.17":{"name":"do-swagger2openapi","version":"7.0.17","keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"author":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com"},"license":"BSD-3-Clause","_id":"do-swagger2openapi@7.0.17","maintainers":[{"name":"space777","email":"1130483391@qq.com"}],"homepage":"https://github.com/space-77/oas-kit#readme","bugs":{"url":"https://github.com/space-77/oas-kit/issues"},"bin":{"boast":"boast.js","oas-validate":"oas-validate.js","swagger2openapi":"swagger2openapi.js"},"dist":{"shasum":"bc86a3b5c6d85342dec18ea49882aea7438753d0","tarball":"https://registry.npmjs.org/do-swagger2openapi/-/do-swagger2openapi-7.0.17.tgz","fileCount":12,"integrity":"sha512-+wKV7+AHUj3RnbmgcRqTMqDepiqJGYKMuHKWeoAdouaWuGI9gchqnbIIp9NDr2G7P1UFMnlaOkOZZTC8/lMC0g==","signatures":[{"sig":"MEUCIFkxUP0RHWxJlZN8sKFAIUBpEEczFocaqJGX489+gafKAiEAzONRNnWrE8a7ok/+Va/aS7y2sDrgrmRQ4U1TRowyw74=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":123891},"main":"index.js","types":"types/index.d.ts","funding":"https://github.com/space-77/oas-kit?sponsor=1","gitHead":"5cbeab49334ebe18c117764d086e1cfe7d708e97","scripts":{"dev":"node dev","test":"mocha"},"_npmUser":{"name":"space777","email":"1130483391@qq.com"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"url":"git+https://github.com/space-77/oas-kit.git","type":"git"},"_npmVersion":"6.14.17","description":"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate","directories":{},"_nodeVersion":"14.20.0","dependencies":{"yaml":"^1.10.0","yargs":"^17.0.1","reftools":"^1.1.9","node-fetch":"^2.6.1","oas-resolver":"^2.5.6","call-me-maybe":"^1.0.1","deep-for-each":"^3.0.0","node-fetch-h2":"^2.3.0","oas-validator":"^5.0.8","node-readfiles":"^0.2.0","do-oas-kit-common":"^1.0.10","oas-schema-walker":"^1.1.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/do-swagger2openapi_7.0.17_1695784907893_0.2787285511358202","host":"s3://npm-registry-packages"}},"7.0.18":{"name":"do-swagger2openapi","version":"7.0.18","keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"author":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com"},"license":"BSD-3-Clause","_id":"do-swagger2openapi@7.0.18","maintainers":[{"name":"space777","email":"1130483391@qq.com"}],"homepage":"https://github.com/space-77/oas-kit#readme","bugs":{"url":"https://github.com/space-77/oas-kit/issues"},"bin":{"boast":"boast.js","oas-validate":"oas-validate.js","swagger2openapi":"swagger2openapi.js"},"dist":{"shasum":"30cc0fad22d4b543d668f3b3e84349d1cb93113a","tarball":"https://registry.npmjs.org/do-swagger2openapi/-/do-swagger2openapi-7.0.18.tgz","fileCount":12,"integrity":"sha512-rPDue4SCSsPGLrgJHw7zBG5KxhEYeeCahqm96/lqu1t01moYlyP9Z8ZKpZpE5WFCsAwQ/LNJhPF6Xk5HIQ2+ZQ==","signatures":[{"sig":"MEUCIQCtB3Giv0LAftDHYLThwrN77usAfQdOXTp8+Usz7KAX5gIgfVMfAOsVGfg6BVYnPxlYiObhOyUpUxkpyfWW8WdK1+g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":123567},"main":"index.js","types":"types/index.d.ts","funding":"https://github.com/space-77/oas-kit?sponsor=1","gitHead":"5cbeab49334ebe18c117764d086e1cfe7d708e97","scripts":{"dev":"node dev","test":"mocha"},"_npmUser":{"name":"space777","email":"1130483391@qq.com"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"url":"git+https://github.com/space-77/oas-kit.git","type":"git"},"_npmVersion":"6.14.17","description":"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate","directories":{},"_nodeVersion":"14.20.0","dependencies":{"yaml":"^1.10.0","yargs":"^17.0.1","reftools":"^1.1.9","node-fetch":"^2.6.1","oas-resolver":"^2.5.6","call-me-maybe":"^1.0.1","deep-for-each":"^3.0.0","node-fetch-h2":"^2.3.0","oas-validator":"^5.0.8","node-readfiles":"^0.2.0","do-oas-kit-common":"^1.0.10","oas-schema-walker":"^1.1.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/do-swagger2openapi_7.0.18_1695785486169_0.7376084242478398","host":"s3://npm-registry-packages"}},"7.0.19":{"name":"do-swagger2openapi","version":"7.0.19","keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"author":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com"},"license":"BSD-3-Clause","_id":"do-swagger2openapi@7.0.19","maintainers":[{"name":"space777","email":"1130483391@qq.com"}],"homepage":"https://github.com/space-77/oas-kit#readme","bugs":{"url":"https://github.com/space-77/oas-kit/issues"},"bin":{"boast":"boast.js","oas-validate":"oas-validate.js","swagger2openapi":"swagger2openapi.js"},"dist":{"shasum":"d5d4b7440e99fe55b642e74810b5230425a73b09","tarball":"https://registry.npmjs.org/do-swagger2openapi/-/do-swagger2openapi-7.0.19.tgz","fileCount":12,"integrity":"sha512-9JAxA/Y/jWwNOU24s4QAbvb5j0nS3qVZfq0MG87zJaeudPvakj0o+nOfM4eaYQi6hA7OTk0Tmc6UUwM4oBgCaA==","signatures":[{"sig":"MEQCID3gKET7dxgFPp5rx2j3FYYWIJFXJHV/+pHJ7p0N9T/2AiBJwJ7Slzktfn+4wzGT1QuOWYFkUwq23eiYPZC6qOmepA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":124404},"main":"index.js","types":"types/index.d.ts","funding":"https://github.com/space-77/oas-kit?sponsor=1","gitHead":"5cbeab49334ebe18c117764d086e1cfe7d708e97","scripts":{"dev":"node dev","test":"mocha"},"_npmUser":{"name":"space777","email":"1130483391@qq.com"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"url":"git+https://github.com/space-77/oas-kit.git","type":"git"},"_npmVersion":"6.14.17","description":"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate","directories":{},"_nodeVersion":"14.20.0","dependencies":{"yaml":"^1.10.0","yargs":"^17.0.1","reftools":"^1.1.9","node-fetch":"^2.6.1","oas-resolver":"^2.5.6","call-me-maybe":"^1.0.1","deep-for-each":"^3.0.0","node-fetch-h2":"^2.3.0","oas-validator":"^5.0.8","node-readfiles":"^0.2.0","do-oas-kit-common":"^1.0.10","oas-schema-walker":"^1.1.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/do-swagger2openapi_7.0.19_1726466910596_0.7928922567594152","host":"s3://npm-registry-packages"}},"7.0.20":{"name":"do-swagger2openapi","version":"7.0.20","keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"author":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com"},"license":"BSD-3-Clause","_id":"do-swagger2openapi@7.0.20","maintainers":[{"name":"space777","email":"1130483391@qq.com"}],"homepage":"https://github.com/space-77/oas-kit#readme","bugs":{"url":"https://github.com/space-77/oas-kit/issues"},"bin":{"boast":"boast.js","oas-validate":"oas-validate.js","swagger2openapi":"swagger2openapi.js"},"dist":{"shasum":"ad9f6eff5b659bcc93f7aee31e823195666ba968","tarball":"https://registry.npmjs.org/do-swagger2openapi/-/do-swagger2openapi-7.0.20.tgz","fileCount":12,"integrity":"sha512-MJRZRpM9uNLFxT73kuohXhYFRHdxz2EqI4OtXbpSKi9PI0HHD++9aOXwnUOlOgbL+hf5dfr6vGTiS0lfbkH+rQ==","signatures":[{"sig":"MEQCIBXOOUDsGQa5QftSholTYh9UoShMOyT/tABpTg1YLnh6AiA3aNOKc2Nxw+Vlk2cCrgL1Q0DdMyRGb8m4Z3+IiAw2dQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":124105},"main":"index.js","types":"types/index.d.ts","funding":"https://github.com/space-77/oas-kit?sponsor=1","gitHead":"5cbeab49334ebe18c117764d086e1cfe7d708e97","scripts":{"dev":"node dev","test":"mocha"},"_npmUser":{"name":"space777","email":"1130483391@qq.com"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"url":"git+https://github.com/space-77/oas-kit.git","type":"git"},"_npmVersion":"6.14.17","description":"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate","directories":{},"_nodeVersion":"14.20.0","dependencies":{"yaml":"^1.10.0","yargs":"^17.0.1","reftools":"^1.1.9","node-fetch":"^2.6.1","oas-resolver":"^2.5.6","call-me-maybe":"^1.0.1","deep-for-each":"^3.0.0","node-fetch-h2":"^2.3.0","oas-validator":"^5.0.8","node-readfiles":"^0.2.0","do-oas-kit-common":"^1.0.10","oas-schema-walker":"^1.1.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/do-swagger2openapi_7.0.20_1726467270035_0.07594590293412362","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-05-21T06:09:52.825Z","modified":"2025-12-19T17:02:35.728Z","7.0.9":"2023-05-21T06:09:53.012Z","7.0.10":"2023-05-21T06:18:56.043Z","7.0.11":"2023-05-21T07:32:31.436Z","7.0.12":"2023-05-21T09:59:53.886Z","7.0.13":"2023-06-09T03:12:31.469Z","7.0.14":"2023-06-18T15:52:04.344Z","7.0.15":"2023-08-10T10:07:15.283Z","7.0.16":"2023-08-10T10:18:29.673Z","7.0.17":"2023-09-27T03:21:48.133Z","7.0.18":"2023-09-27T03:31:26.365Z","7.0.19":"2024-09-16T06:08:30.784Z","7.0.20":"2024-09-16T06:14:30.227Z"},"bugs":{"url":"https://github.com/space-77/oas-kit/issues"},"author":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com"},"license":"BSD-3-Clause","homepage":"https://github.com/space-77/oas-kit#readme","keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"repository":{"url":"git+https://github.com/space-77/oas-kit.git","type":"git"},"description":"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate","maintainers":[{"email":"1130483391@qq.com","name":"space777_org"}],"readme":"# do-swagger2openapi\r\n\r\n![logo](https://github.com/Mermade/oas-kit/blob/master/docs/logo.png?raw=true)\r\n\r\n[![OpenAPI Validation](https://mermade.org.uk/openapi-converter/api/v1/badge?url=https://mermade.org.uk/openapi-converter/examples/openapi.json)](https://mermade.org.uk/openapi-converter/api/v1/validate?url=https://mermade.org.uk/openapi-converter/examples/openapi.json)\r\n![Build](https://img.shields.io/travis/Mermade/oas-kit/master.svg)\r\n[![Tested on APIs.guru](https://api.apis.guru/badges/tested_on.svg)](https://APIs.guru)\r\n[![Tested on Mermade OpenAPIs](https://img.shields.io/badge/Additional%20Docs-74426-brightgreen.svg)](https://github.com/mermade/openapi-definitions)\r\n[![Coverage Status](https://coveralls.io/repos/github/Mermade/swagger2openapi/badge.svg?branch=master)](https://coveralls.io/github/Mermade/swagger2openapi?branch=master)\r\n[![Known Vulnerabilities](https://snyk.io/test/npm/swagger2openapi/badge.svg)](https://snyk.io/test/npm/swagger2openapi)\r\n[![Greenkeeper badge](https://badges.greenkeeper.io/Mermade/oas-kit.svg)](https://greenkeeper.io/)\r\n\r\nConvert Swagger 2.0 definitions into OpenApi 3.0.x\r\n\r\nThe online version of the converter/validator runs on a [Linode](https://www.linode.com/?r=5734be467cc501b23267cf66d451bc339042ddfa) VPS. If you are considering a hosted server, please sign up through this link so we both receive free credit.\r\n\r\nCurrently tracking [v3.0.x](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md)\r\n\r\n## Installation:\r\nThis is a node.js module, which you can run on the command line. First ensure you have npm installed (tested on version 6.1+), and then install as follows:\r\n```bash\r\nnpm install -g do-swagger2openapi\r\n```\r\nOr, add it to your node.js projects as shown below in option B.\r\n\r\n## Usage:\r\n### A. Command line:\r\n\r\n```text\r\ndo-swagger2openapi [options] [filename|url]\r\nOptions:\r\n  --refSiblings        mode to handle $ref's with sibling properties\r\n                                        [choices: \"remove\", \"preserve\", \"allOf\"]\r\n  --resolveInternal    resolve internal references also                [boolean]\r\n  --warnProperty       Property name to use for warning extensions\r\n                                             [string] [default: \"x-s2o-warning\"]\r\n  --version            Show version number                             [boolean]\r\n  -c, --components     output information to unresolve a definition    [boolean]\r\n  -d, --debug          enable debug mode, adds specification-extensions[boolean]\r\n  -e, --encoding       encoding for input/output files[string] [default: \"utf8\"]\r\n  -f, --fatal          make resolution errors fatal                    [boolean]\r\n  -h, --help           Show help                                       [boolean]\r\n  -i, --indent         JSON indent to use, defaults to 4 spaces         [string]\r\n  -o, --outfile        the output file to write to                      [string]\r\n  -p, --patch          fix up small errors in the source definition    [boolean]\r\n  -r, --resolve        resolve external references                     [boolean]\r\n  -t, --targetVersion  override default target version of 3.0.0         [string]\r\n  -u, --url            url of original spec, creates x-origin entry     [string]\r\n  -v, --verbose        increase verbosity                                [count]\r\n  -w, --warnOnly       Do not throw on non-patchable errors, add warning\r\n                       extensions                                      [boolean]\r\n  -y, --yaml           write YAML, default JSON (overridden by --outfile\r\n                       filepath extension)                             [boolean]\r\n  -b, --rbname         Extension to use to preserve body parameter names in\r\n                       converted operations (\"\" == disabled)\r\n                                                          [string] [default: \"\"]\r\n```\r\n\r\n### B. Node.js API:\r\n\r\n```javascript\r\nconst converter = require('do-swagger2openapi');\r\nlet options = {};\r\n//options.patch = true; // fix up small errors in the source definition\r\n//options.warnOnly = true; // Do not throw on non-patchable errors\r\nconverter.convertObj(swagger, options, function(err, options){\r\n  // options.openapi contains the converted definition\r\n});\r\n// also available are asynchronous convertFile, convertUrl, convertStr and convertStream functions\r\n// if you omit the callback parameter, you will instead receive a Promise\r\n```\r\n\r\nNote that the `options` object passed in is modified/extended by the `convert*` functions.\r\n\r\nSee the [boast command-line tool](/packages/swagger2openapi/boast.js) for a fuller CLI tool for converting, validating and linting.\r\n\r\nSee here for complete [documentation](/docs/options.md) of the `options` object.\r\n\r\n### C. Browser:\r\n\r\nOr use the [online version](https://mermade.org.uk/openapi-converter) which also includes its own [API](http://petstore.swagger.io/?url=https://mermade.org.uk/openapi-converter/contract/swagger.json).\r\n\r\n#### Browser Support\r\n\r\nSee [initial documentation](/docs/browser.md).\r\n\r\n## Features\r\n\r\n### OpenAPI 3.0.x validation\r\n\r\n`oas-validate` can be used as a validator if given one or more existing OpenAPI 3.x definitions. The validator (however it is called) uses [WHATWG](https://whatwg.org/) URL parsing if available (node 7.x and above). The validator can have a linting mode enabled with the `--lint` option. Rules are defined [here](/packages/oas-linter/rules.yaml). Contributions of rules and rule actions for the linter are very much appreciated.\r\n\r\n```text\r\noas-validate.js [options] {path-to-docs}...\r\n\r\nOptions:\r\n  --lint            lint the definition                                [boolean]\r\n  --validateSchema  Run schema validation step: first, last* or never   [string]\r\n  --warnOnly        Do not throw on non-patchable errors               [boolean]\r\n  -h, --help        Show help                                          [boolean]\r\n  --version         Show version number                                [boolean]\r\n  -e, --encoding    encoding for input/output files   [string] [default: \"utf8\"]\r\n  -f, --fail        path to docs expected to fail                       [string]\r\n  -j, --jsonschema  path to alternative JSON schema                     [string]\r\n  -l, --laxurls     lax checking of empty urls                         [boolean]\r\n  -m, --mediatype   check media-types against RFC pattern              [boolean]\r\n  -n, --nopatch     do not patch minor errors in the source definition [boolean]\r\n  -o, --output      output conversion result  [string] [default: \"openapi.yaml\"]\r\n  -q, --quiet       do not show test passes on console, for CI         [boolean]\r\n  -r, --resolve     resolve external references                        [boolean]\r\n  -s, --stop        stop on first error                                [boolean]\r\n  -v, --verbose     increase verbosity                                   [count]\r\n  -w, --whatwg      enable WHATWG URL parsing                          [boolean]\r\n  -y, --yaml        skip YAML-safe test                                [boolean]\r\n```\r\n\r\n### Reference preservation\r\n\r\n`swagger2openapi` by default preserves almost all `$ref` JSON references in your API definition, and does not dereference\r\nevery item, as with some model-based parsers. The exception is internal references within externally referenced documents. To enable internal `$ref` resolution across the whole document, use the `--resolveInternal` option, which also disables creation of `$ref`s for shared `requestBodies`.\r\n\r\n### Schema transformations\r\n\r\n`swagger2openapi` will automatically 'repair' a number of problems where non-compliant Swagger 2.0 schemas have been used. It will attempt to transform JSON schemas (used incorrectly) into OpenAPI 3.0.x Schema objects.\r\n\r\n### Specification extensions\r\n\r\n`swagger2openapi` has support for a limited number of real-world [specification extensions](/docs/extensions.md) which have a direct bearing on the conversion. All other specification extensions are left untouched. swagger2openapi is [swaggerplusplus](https://github.com/mermade/swaggerplusplus)-compatible.\r\n\r\nIt is expected to be able to configure the process of specification-extension modification using options or a plugin mechanism in a future release.\r\n\r\n## Tests\r\n\r\nTo run a test-suite:\r\n\r\n```shell\r\nnode oas-validate [-f {path-to-expected-failures}]... [{path-to-APIs|single-file...}]\r\n```\r\n\r\nThe test harness currently expects files with a `.json` or `.yaml` extension, or a single named file, and has been tested on LTS Node.js versions against\r\n\r\n* [APIs.guru](https://github.com/APIs-guru/openapi-directory)\r\n* [Mermade OpenApi specifications collection](https://github.com/mermade/openapi_specifications)\r\n* [OpenAPI3-Examples (pass/fail)](https://github.com/mermade/openapi3-examples)\r\n* [SOM-Research collection](https://github.com/SOM-Research/hapi)\r\n\r\nAdditionally `swagger2openapi` has been tested on a corpus of 74,426 real-world valid Swagger 2.0 definitions from GitHub and [SwaggerHub](https://swaggerhub.com/). However, if you have a definition which causes errors in the converter or does not pass validation, please do not hesitate to [raise an issue](https://github.com/Mermade/swagger2openapi/issues).\r\n\r\n### Regression tests\r\n\r\nRegression tests (thanks [@domharrington](https://github.com/domharrington)) live in the `/test` directory and can be run with `npx mocha`. Each sub-directory of `s2o-test` should contain an input `swagger.yaml` file, an expected output `openapi.yaml` file and an optional `options.yaml` file. You can put private test cases in sub-directories starting with an underscore character. In the `resolver` sub-directory, each directory should contain an `input.yaml`, an `output.yaml` and an optional `options.yaml` file.\r\n\r\n### Version history\r\n\r\n* [Change-Log](https://github.com/Mermade/oas-kit/blob/master/CHANGELOG.md#change-log)\r\n\r\n## License\r\n\r\n[BSD-3-Clause](LICENSE) except the `openapi-3.0.json` schema, which is taken from the [OpenAPI-Specification](https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v3.0/schema.yaml) which is licensed under the [Apache-2](http://www.apache.org/licenses/LICENSE-2.0) license.\r\n","readmeFilename":"README.md"}