swagger-core

用于生成Swagger API规范的示例和服务器集成,可以轻松访问REST API。(Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API)

Github星跟蹤圖

Swagger Core

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

Build Status

Build Status

Swagger Core is a Java implementation of the OpenAPI Specification. Current version supports JAX-RS2.

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 Version, Release Date, OpenAPI Spec compatibility, Notes, Status
-------------------------, ------------, --------------------------, -----, ----
2.1.1 (current stable), 2020-01-02, 3.0, tag v2.1.1, Supported
2.1.0, 2019-11-16, 3.0, tag v2.1.0, Supported
2.0.10, 2019-10-11, 3.0, tag v2.0.10, Supported
2.0.9, 2019-08-22, 3.0, tag v2.0.9, Supported
2.0.8, 2019-04-24, 3.0, tag v2.0.8, Supported
2.0.7, 2019-02-18, 3.0, tag v2.0.7, Supported
2.0.6, 2018-11-27, 3.0, tag v2.0.6, Supported
2.0.5, 2018-09-19, 3.0, tag v2.0.5, Supported
2.0.4, 2018-09-05, 3.0, tag v2.0.4, Supported
2.0.3, 2018-08-09, 3.0, tag v2.0.3, Supported
1.6.0 (current stable), 2019-11-16, 2.0, tag v1.6.0, Supported
1.5.24, 2019-10-11, 2.0, tag v1.5.24, Supported
1.5.23, 2019-08-22, 2.0, tag v1.5.23, Supported
1.5.22, 2019-02-18, 2.0, tag v1.5.22, Supported
1.5.21, 2018-08-09, 2.0, tag v1.5.21, Supported
1.5.20, 2018-05-23, 2.0, tag v1.5.20, Supported
2.0.2, 2018-05-23, 3.0, tag v2.0.2, Supported
2.0.1, 2018-04-16, 3.0, tag v2.0.1, Supported
1.5.19, 2018-04-16, 2.0, tag v1.5.19, Supported
2.0.0, 2018-03-20, 3.0, tag v2.0.0, Supported
2.0.0-rc4, 2018-01-22, 3.0, tag v2.0.0-rc4, Supported
2.0.0-rc3, 2017-11-21, 3.0, tag v2.0.0-rc3, Supported
2.0.0-rc2, 2017-09-29, 3.0, tag v2.0.0-rc2, Supported
2.0.0-rc1, 2017-08-17, 3.0, tag v2.0.0-rc1, Supported
1.5.18, 2018-01-22, 2.0, tag v1.5.18, Supported
1.5.17, 2017-11-21, 2.0, tag v1.5.17, Supported
1.5.16, 2017-07-15, 2.0, tag v1.5.16, Supported
1.3.12, 2014-12-23, 1.2, tag v1.3.12, Supported
1.2.4, 2013-06-19, 1.1, tag swagger-project_2.10.0-1.2.4, Deprecated
1.0.0, 2011-10-16, 1.0, tag v1.0, Deprecated

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:

  • Java 8
  • Apache maven 3.0.4 or greater
  • Jackson 2.4.5 or greater

To build from source (currently 2.1.2-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.

主要指標

概覽
名稱與所有者swagger-api/swagger-core
主編程語言Java
編程語言Java (語言數: 3)
平台BSD, Linux, Mac, Solaris, Windows
許可證Apache License 2.0
所有者活动
創建於2011-07-05 23:44:11
推送於2025-07-28 06:56:15
最后一次提交2025-07-25 14:23:53
發布數151
最新版本名稱v2.2.34 (發布於 )
第一版名稱v1.0 (發布於 2011-10-16 21:11:33)
用户参与
星數7.4k
關注者數309
派生數2.2k
提交數4.4k
已啟用問題?
問題數3004
打開的問題數784
拉請求數1427
打開的拉請求數72
關閉的拉請求數420
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?