Skip to content
JS
Package

swagger2openapi

Convert Swagger 2.0 definitions to OpenApi 3.0 and validate

v7.0.8, 7 Jul 2021BSD-3-ClauseCommonJSTypes: NoneDocumentation toolingLinting and formatting
$ npm install swagger2openapi

Key numbers

As of 25 Sept 2026
Weekly downloads
3m
+55% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
11
Direct, from package.json
Last release
5 years ago
v7.0.8
GitHub stars
747
119 forks
Open issues / PRs
23 / 22
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
02m4m6mSept 2025Mar 2026Sept 2026High 4.7m (18 Aug 2026)Low 1.2m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

3,022,661 downloads last week, 15,973,805 in the last month. The 12-month change of +55% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
0150 in total
Latest version
7.0.8, 7 Jul 20215 years ago
First published
19 Dec 2016
Last push to GitHub
27 Oct 20231,063 days before the snapshot
Repository archived
No
Open issues
23
Open pull requests
22
Commits, last 52 weeks
0
Dependents on npm
530

Major versions

  1. v7 first release 7.0.0, 2 Sept 2020
  2. v6 first release 6.0.0, 24 Mar 2020
  3. v5 first release 5.0.0, 17 Jan 2019
  4. v4 first release 4.0.0, 14 Dec 2018
  5. v3 first release 3.0.0, 27 Jun 2018
  6. v2 first release 2.0.0, 27 Mar 2017
  7. v1 first release 1.0.0, 19 Dec 2016

Recent releases

VersionPublished
7.0.87 Jul 2021
7.0.717 Jun 2021
7.0.631 May 2021
7.0.524 Jan 2021
7.0.420 Nov 2020
7.0.314 Oct 2020
7.0.222 Sept 2020
7.0.118 Sept 2020
7.0.02 Sept 2020
6.2.312 Aug 2020
6.2.231 Jul 2020
6.2.113 Jul 2020
6.2.013 Jul 2020
6.1.18 Jul 2020
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
102 kB
Dependencies (11)
yamlyargsreftoolsnode-fetchoas-resolvercall-me-maybenode-fetch-h2oas-validatornode-readfilesoas-kit-commonoas-schema-walker
npm install swagger2openapi
  • jsDelivrhttps://cdn.jsdelivr.net/npm/swagger2openapi@7.0.8/
  • unpkghttps://unpkg.com/swagger2openapi@7.0.8/
  • esm.shhttps://esm.sh/swagger2openapi@7.0.8
PackageWeekly downloadsGzipLast releaseModuleComparison
@scalar/openapi-validator150.8k-todayESM only-
zod-openapi994k-24 days agoESM + CommonJS-
@redocly/openapi-core6.4m-2 days agoESM + CommonJS-
@scalar/openapi-types4.4m-2 days agoESM only-
eslint-plugin-tsdoc844.2k-9 days agoCommonJS-
eslint-doc-generator47.3k-30 days agoESM only-
@scalar/openapi-parser2m-todayESM only-
@scalar/fastify-api-reference254.8k-todayESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.