Home

Awesome

Swagger Core <img src="https://raw.githubusercontent.com/swagger-api/swagger.io/wordpress/images/assets/SW-logo-clr.png" height="50" align="right">

NOTE: If you're looking for Swagger Core 1.5.X and OpenAPI 2.0, please refer to 1.5 branch.

NOTE: Since version 2.1.7, Swagger Core also supports the Jakarta namespace. There are a parallel set of artifacts with the -jakarta suffix, providing the same functionality as the unsuffixed (i.e.: javax) artifacts. Please see the Wiki for more details.

NOTE: Since version 2.2.0 Swagger Core supports OpenAPI 3.1; see this page for details

Build Test Deploy Maven Central

Swagger Core is a Java implementation of the OpenAPI Specification. Current version supports JAX-RS2 (javax and jakarta namespaces).

Get started with Swagger Core!

See the guide on getting started with Swagger Core to get started with adding Swagger to your API.

See the Wiki!

The github wiki contains documentation, samples, contributions, etc. Start there.

Compatibility

The OpenAPI Specification has undergone several revisions since initial creation in 2010. The Swagger Core project has the following compatibilities with the OpenAPI Specification:

Swagger core VersionRelease DateOpenAPI Spec compatibilityNotesStatus
2.2.25 (current stable)2024-10-023.xtag v2.2.25Supported
2.2.242024-09-233.xtag v2.2.24Supported
2.2.232024-08-283.xtag v2.2.23Supported
2.2.222024-05-153.xtag v2.2.22Supported
2.2.212024-03-203.xtag v2.2.21Supported
2.2.202023-12-193.xtag v2.2.20Supported
2.2.192023-11-103.xtag v2.2.19Supported
2.2.182023-10-253.xtag v2.2.18Supported
2.2.172023-10-123.xtag v2.2.17Supported
2.2.162023-09-183.xtag v2.2.16Supported
2.2.152023-07-083.xtag v2.2.15Supported
2.2.142023-06-263.xtag v2.2.14Supported
2.2.132023-06-243.xtag v2.2.13Supported
2.2.122023-06-133.xtag v2.2.12Supported
2.2.112023-06-013.xtag v2.2.11Supported
2.2.102023-05-153.xtag v2.2.10Supported
2.2.92023-03-203.xtag v2.2.9Supported
2.2.82023-01-063.xtag v2.2.8Supported
2.2.72022-11-153.0tag v2.2.7Supported
2.2.62022-11-023.0tag v2.2.6Supported
2.2.52022-11-023.0tag v2.2.5Supported
2.2.42022-10-163.0tag v2.2.4Supported
2.2.32022-09-273.0tag v2.2.3Supported
2.2.22022-07-203.0tag v2.2.2Supported
2.2.12022-06-153.0tag v2.2.1Supported
2.2.02022-04-043.0tag v2.2.0Supported
2.1.132022-02-073.0tag v2.1.13Supported
2.1.122021-12-233.0tag v2.1.12Supported
2.1.112021-09-293.0tag v2.1.11Supported
2.1.102021-06-283.0tag v2.1.10Supported
2.1.92021-04-203.0tag v2.1.9Supported
2.1.82021-04-183.0tag v2.1.8Supported
2.1.72021-02-183.0tag v2.1.7Supported
2.1.62020-12-043.0tag v2.1.6Supported
2.1.52020-10-013.0tag v2.1.5Supported
2.1.42020-07-243.0tag v2.1.4Supported
2.1.32020-06-273.0tag v2.1.3Supported
2.1.22020-04-013.0tag v2.1.2Supported
2.1.12020-01-023.0tag v2.1.1Supported
2.1.02019-11-163.0tag v2.1.0Supported
2.0.102019-10-113.0tag v2.0.10Supported
2.0.92019-08-223.0tag v2.0.9Supported
2.0.82019-04-243.0tag v2.0.8Supported
2.0.72019-02-183.0tag v2.0.7Supported
2.0.62018-11-273.0tag v2.0.6Supported
2.0.52018-09-193.0tag v2.0.5Supported
2.0.42018-09-053.0tag v2.0.4Supported
2.0.32018-08-093.0tag v2.0.3Supported
1.6.14 (current stable)2024-03-192.0tag v1.6.14Supported
1.6.132024-01-262.0tag v1.6.13Supported
1.6.122023-10-142.0tag v1.6.12Supported
1.6.112023-05-152.0tag v1.6.11Supported
1.6.102023-03-212.0tag v1.6.10Supported
1.6.92022-11-152.0tag v1.6.9Supported
1.6.82022-10-162.0tag v1.6.8Supported
1.6.72022-09-272.0tag v1.6.7Supported
1.6.62022-04-042.0tag v1.6.6Supported
1.6.52022-02-072.0tag v1.6.5Supported
1.6.42021-12-232.0tag v1.6.4Supported
1.6.32021-09-292.0tag v1.6.3Supported
1.6.22020-07-012.0tag v1.6.2Supported
1.6.12020-04-012.0tag v1.6.1Supported
1.6.02019-11-162.0tag v1.6.0Supported
1.5.242019-10-112.0tag v1.5.24Supported
1.5.232019-08-222.0tag v1.5.23Supported
1.5.222019-02-182.0tag v1.5.22Supported
1.5.212018-08-092.0tag v1.5.21Supported
1.5.202018-05-232.0tag v1.5.20Supported
2.0.22018-05-233.0tag v2.0.2Supported
2.0.12018-04-163.0tag v2.0.1Supported
1.5.192018-04-162.0tag v1.5.19Supported
2.0.02018-03-203.0tag v2.0.0Supported
2.0.0-rc42018-01-223.0tag v2.0.0-rc4Supported
2.0.0-rc32017-11-213.0tag v2.0.0-rc3Supported
2.0.0-rc22017-09-293.0tag v2.0.0-rc2Supported
2.0.0-rc12017-08-173.0tag v2.0.0-rc1Supported
1.5.182018-01-222.0tag v1.5.18Supported
1.5.172017-11-212.0tag v1.5.17Supported
1.5.162017-07-152.0tag v1.5.16Supported
1.3.122014-12-231.2tag v1.3.12Supported
1.2.42013-06-191.1tag swagger-project_2.10.0-1.2.4Deprecated
1.0.02011-10-161.0tag v1.0Deprecated

Change History

If you're interested in the change history of swagger and the Swagger Core framework, see here.

Prerequisites

You need the following installed and available in your $PATH:

To build from source (currently 2.2.26-SNAPSHOT)

# first time building locally
mvn -N

Subsequent builds:

mvn install

This will build the modules.

Of course if you don't want to build locally you can grab artifacts from maven central:

https://repo1.maven.org/maven2/io/swagger/core/

Sample Apps

The samples have moved to a new repository and contain various integrations and configurations.

Security contact

Please disclose any security-related issues or vulnerabilities by emailing security@swagger.io, instead of using the public issue tracker.