Skip to content

Commit fb77181

Browse files
author
Ron
authored
Merge pull request #1283 from OAI/OpenAPI.next
Publish OAS 3.0.0
2 parents ae9322e + baad5d9 commit fb77181

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+4700
-1508
lines changed

.travis.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
sudo: false
2-
language: scala
3-
scala:
4-
- 2.10.4
52
script:
63
- npm install
7-
- npm test
8-
- sbt ++$TRAVIS_SCALA_VERSION test
4+
env:
5+
- VALIDATORS=tv4
6+
- VALIDATORS=zschema
7+
matrix:
8+
allow_failures:
9+
- env: VALIDATORS=tv4
10+
install:
11+
- rm -rf ~/.nvm
12+
- curl -L https://raw.githubusercontent.com/creationix/nvm/master/install.sh | sh
13+
- source ~/.nvm/nvm.sh
14+
- nvm install 6.1
15+
- nvm use 6.1
16+
script:
17+
- npm install
18+
- node node_modules/mdv/mdv versions/3.*.md

CONTRIBUTORS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
* Darrel Miller [@darrelmiller](https://github.com/darrelmiller)
2+
* Jason Harmon [@jharmn](https://github.com/jharmn)
3+
* Jeremy Whitlock [@whitlockjc](https://github.com/whitlockjc)
4+
* Kris Hahn [@KrisHahn](https://github.com/krishahn)
5+
* Marsh Gardiner [@earth2marsh](https://github.com/earth2marsh)
6+
* Mike Ralphson [@MikeRalphson](https://github.com/mikeralphson)
7+
* Rob Dolin [@RobDolinMS](https://github.com/robdolinms)
8+
* Ron Ratovsky [@webron](https://github.com/webron)
9+
* Tony Tam [@fehguy](https://github.com/fehguy)

DEVELOPMENT.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## Development Guidelines
2+
3+
This document intends to establish guidelines which build a transparent, open mechanism for deciding how to evolve the OpenAPI Specification. The Open API Technical Contributor Board will initially follow these processes when merging changes from external contributors or from the TCB itself. This guideline document will be adjusted as practicality dictates.
4+
5+
## OAI Specification Driving factors
6+
7+
The OpenAPI Specification should be use-case driven. We can specify support for hypothetical use cases as we see fit, but specifications should be backed by realistic scenarios.
8+
9+
## Specification Change Criteria
10+
11+
The specification _will change_ from the original 2.0 version. We should typically make changes when any of the following criteria are met:
12+
13+
- Clarity. The current "way" something is done doesn't make sense, is complicated, or not clear.
14+
- Consistency. A portion of the specification is not consistent with the rest, or with the industry standard terminology.
15+
- Necessary functionality. We are missing functionality because of a certain design of the specification.
16+
- Forward-looking designs. As usage of APIs evolves to new protocols, formats, and patterns, we should always consider what the next important functionality should be.
17+
- Impact. A change will provide impact on a large number of use cases. We should not be forced to accommodate every use case. We should strive to make the _common_ and _important_ use cases both well supported and common in the definition of the OAI Spec. We cannot be edge-case driven.
18+
19+
20+
## Tracking Process
21+
22+
- Use GitHub for all spec designs, use cases, and so on.
23+
- As with 2.0, the **human readable** document is the source of truth. If using a JSON Schema again to document the spec, it is secondary to the human documentation. The documentation should live in a *.md file, in parallel to the 2.0 document (versions/3.0.0.md for example).
24+
- The `master` branch shall remain the current, released OpenAPI Specification (i.e., 2.0). We will work in an OpenAPI.next branch, which shall be described and linked to on the **default** README.md on master.
25+
- Examples of how something is described _currently_ vs. the proposed solution should accompany any change proposal.
26+
- New features should be done in feature branches which, upon approval, are merged into the OpenAPI.next branch.
27+
- Use labels for the workflow of specification changes. Examples of labels are `proposed`, `needs migration review`, `needs tooling review`, `needs documentation`, `rejected`, and `needs approval`. These labels must be assigned by project committers.
28+
- An issue will be opened for each feature change. Embedded in the issue, or ideally linked in a file via pull-request (PR), a document about use cases should be supplied with the change.
29+
- A PR will be used to describe the _proposed_ solution, and linked to the original issue.
30+
- Not all committers will contribute to every single proposed change. There may be many open proposals at once, and multiple efforts may happen in parallel.
31+
- When the OpenApi.next spec is complete and approved for release, the branch will be merged to master.
32+
33+
## Approving Changes
34+
35+
For each change in the specification we should _always_ consider the following:
36+
37+
- Migration. Is this a construct that has a path from the existing 2.0 specification? If so, how complicated is it to migrate to the proposed change?
38+
- Tooling. Strive to support code generation, software interfaces, and spec generation techniques. Some features may be impossible to support in different frameworks/languages. These should be documented and considered during the change approval process.
39+
- Visualization. Can the specification change be graphically visualized somehow in a UI or other interface?
40+
41+
Spec changes should be approved by a majority of the committers. Approval can be given by commenting on the issue itself, for example, "Approved by @fehguy". After voting criteria is met, any committer can merge the PR. (**TODO**: we will want to formalize what voting criteria actually is).
42+
43+
No change should be approved until there is documentation for it, supplied in an accompanying PR.
44+
45+
## Transparency
46+
47+
We should always be as transparent as possible. Sometimes there will be discussions that use customer names, sensitive use cases, and so on. These must be anonymized, discussed in a private repository, or conducted offline.
48+
49+
- Asynchronous discussions should live in the GitHub issues for this project.
50+
- Realtime discussions should be in a public chat such as IRC or Slack.
51+

IMPLEMENTATIONS.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
### Implementations
2+
3+
Below is a list of known tooling that implements the 3.0.0 specification. Because
4+
the 3.0.0 specification has not yet been released, refer to the details of projects listed below for any notes about stability and roadmap. The process
5+
to create the best possible 3.0.0 specification includes feedback from end-users
6+
and tooling creators. We strongly encourage draft tooling be
7+
made available for early users of the OAS.
8+
9+
These tools are not necessarily endorsed by the OAI.
10+
11+
#### Low-Level tooling
12+
13+
| Title | Project Link | Language |Description |
14+
|----------------|--------------|----------|---------------------|
15+
| swagger-parser | [GitHub/swagger-api](https://github.com/swagger-api/swagger-parser/tree/feature/3.0.0-rc0) | Java | Swagger 1.0, 1.1, 1.2, 2.0 to Open API Specification converter |
16+
| swagger-models | [GitHub/swagger-api](https://github.com/swagger-api/swagger-core/tree/feature/3.0.0-rc0/modules/swagger-models) | Java | Open API 3.0 Java Pojos |
17+
| KaiZen OpenAPI Parser | [GitHub/RepreZen/KaiZen-OpenAPI-Parser](https://github.com/RepreZen/KaiZen-OpenAPI-Parser) | Java | High-performance Parser, Validator, and Java Object Model for OpenAPI 3.x |
18+
| openapi3-ts | [GitHub/metadevpro/openapi3-ts](https://github.com/metadevpro/openapi3-ts) | TypeScript | TS Model & utils for OpenAPI 3.0.x contracts |
19+
| swagger2openapi | [GitHub/mermade/swagger2openapi](https://github.com/mermade/swagger2openapi) | Node.js | An OpenAPI / Swagger 2.0 to OpenAPI 3.0.x converter and validator |
20+
| Tavis.OpenApi | [GitHub/tavis-sofware/Tavis.OpenApi](https://github.com/tavis-software/Tavis.OpenApi/) | dotnet | C# based parser with definition validation and migration support from V2 |
21+
22+
23+
#### Editors
24+
25+
| Title | Project Link | Language |Description |
26+
|----------------|--------------|----------|---------------------|
27+
| KaiZen OpenAPI Editor | [GitHub/RepreZen/KaiZen-OpenAPI-Editor](https://github.com/RepreZen/KaiZen-OpenAPI-Editor) | Java | Eclipse Editor for OpenAPI 2.0 and 3.0 |
28+
| RepreZen API Studio | [RepreZen.com/OpenAPI](https://www.reprezen.com/OpenAPI) | Java | Commercial desktop IDE for API design, documentation & development |
29+
| OpenApi-gui | [GitHub/Mermade/openapi-gui](https://github.com/Mermade/openapi-gui) | Node.js | GUI / visual editor for creating and editing OpenApi / Swagger definitions |
30+
31+
32+
#### User Interfaces
33+
34+
| Title | Project Link | Language |Description |
35+
|----------------|--------------|----------|---------------------|
36+
| openapi-viewer | [GitHub/koumoul/openapi-viewer](https://github.com/koumoul-dev/openapi-viewer) | Vue.js | Browse and test a REST API described with the OpenAPI 3.0 Specification. |
37+
38+
39+
#### Server Implementations
40+
41+
42+
#### Code Generators
43+
44+
| Title | Project Link | Language |Description |
45+
|----------------|--------------|----------|---------------------|
46+
| baucis-openapi3 | [Github/metadevpro/baucis-openapi3](https://github.com/metadevpro/baucis-openapi3) | Node.js | [Baucis.js](https://github.com/wprl/baucis) plugin for generating OpenAPI 3.0 compliant API contracts. |
47+
| Google Gnostic | [GitHub/googleapis/gnostic](https://github.com/googleapis/gnostic) | Go | Compile OpenAPI descriptions into equivalent Protocol Buffer representations. |

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2016 The Linux Foundation
1+
Copyright 2017 The Linux Foundation
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.

README.md

Lines changed: 31 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,60 @@
1-
# The OpenAPI Specification (fka The Swagger Specification)
1+
# The OpenAPI Specification
22

33
[![Build Status](https://travis-ci.org/OAI/OpenAPI-Specification.svg?branch=master)](https://travis-ci.org/OAI/OpenAPI-Specification)
44

5-
## Looking for the upcoming 3.0 version? See here:
6-
[The pre-release OAS 3.0.0 Specification Branch](https://github.com/OAI/OpenAPI-Specification/blob/OpenAPI.next/README.md)
7-
85
![](https://avatars3.githubusercontent.com/u/16343502?v=3&s=200)
96

10-
The goal of The OpenAPI Specification is to define a standard, language-agnostic interface to REST APIs which allows both humans and computers to discover and understand the capabilities of the service without access to source code, documentation, or through network traffic inspection. When properly defined via OpenAPI, a consumer can understand and interact with the remote service with a minimal amount of implementation logic. Similar to what interfaces have done for lower-level programming, OpenAPI removes the guesswork in calling the service.
7+
The OpenAPI Specification is a community driven, open specification within the [Open API Initiative](https://www.openapis.org/), a Linux Foundation Collaborative Project.
118

12-
Use cases for machine-readable API interfaces include interactive documentation, code generation for documentation, client, and server, as well as automated test cases. OpenAPI-enabled APIs expose JSON files that correctly adhere to the OpenAPI Specification, documented in this repository. These files can either be produced and served statically, or be generated dynamically from your application.
9+
The OpenAPI Specification (OAS) defines a standard, programming language-agnostic interface description for REST APIs, which allows both humans and computers to discover and understand the capabilities of a service without requiring access to source code, additional documentation, or inspection of network traffic. When properly defined via OpenAPI, a consumer can understand and interact with the remote service with a minimal amount of implementation logic. Similar to what interface descriptions have done for lower-level programming, the OpenAPI Specification removes guesswork in calling a service.
1310

14-
Without going into a long history of interfaces to Web Services, this is not the first attempt to do so. We can learn from CORBA, WSDL and WADL. These specifications had good intentions but were limited by proprietary vendor-specific implementations, being bound to a specific programming language, and goals which were too open-ended. In the end, they failed to gain traction.
11+
Use cases for machine-readable API definition documents include, but are not limited to, interactive documentation; code generation for documentation, clients, and servers; and automation of test cases. OpenAPI documents describe an API's services and are represented in either YAML or JSON formats. These documents may either be produced and served statically or be generated dynamically from an application.
1512

16-
OpenAPI does not require you to rewrite your existing API. It does not require binding any software to a service--the service being described may not even be yours. It does, however, require the capabilities of the service be described in the structure of the OpenAPI Specification. Not all services can be described by OpenAPI--this specification is not intended to cover every possible use-case of a REST-ful API. OpenAPI does not define a specific development process such as design-first or code-first. It does facilitate either technique by establishing clear interactions with a REST API.
13+
The OpenAPI Specification does not require rewriting existing APIs. It does not require binding any software to a servicethe service being described may not even be owned by the creator of its description. It does, however, require the capabilities of the service be described in the structure of the OpenAPI Specification. Not all services can be described by OpenAPIthis specification is not intended to cover every possible style of REST APIs. The OpenAPI Specification does not mandate a specific development process such as design-first or code-first. It does facilitate either technique by establishing clear interactions with a REST API.
1714

1815
This GitHub project is the starting point for OpenAPI.
19-
Here you will find the information you need about the OpenAPI Specification, a simple static sample of what it looks like,
20-
and some general information regarding the project.
21-
22-
23-
## Current Version - 2.0
16+
Here you will find the information you need about the OpenAPI Specification, simple examples of what it looks like, and some general information regarding the project.
2417

25-
The current version of the OpenAPI specification is 2.0 - and you can find it [here](versions/2.0.md).
18+
## Current Version - 3.0
2619

27-
### [OpenAPI 2.0 Specification](versions/2.0.md)
20+
The current version of the OpenAPI specification is [OpenAPI Specification 3.0](versions/3.0.0.md).
2821

29-
This repository contains the existing Swagger 1.2, 2.0 specifications as well as proposals for the next version of the specification, which will be called the OpenAPI Specification 3.0. The proposals live in the [OpenAPI.next](https://github.com/OAI/OpenAPI-Specification/tree/OpenAPI.next) branch.
22+
### Previous Versions
3023

31-
## Structure
24+
This repository also contains the [OpenAPI Specification 2.0](versions/2.0), which is identical to the Swagger 2.0 specification before it was renamed to “OpenAPI Specification”,
25+
as well as the Swagger 1.2 and Swagger 2.0 specifications.
3226

33-
Each section should contain v1.2 and v2.0 folders to avoid confusion between the versions.
27+
Each folder in this repository, such as [examples](examples) and [schemas](schemas), should contain folders pertaining to the current and previous versions of the specification.
3428

35-
Please keep in mind that the other projects under OpenAPI use an independent version system.
36-
As such, don't confuse the version of the OpenAPI Specification they support and the version of that given library.
29+
## See It in Action
3730

38-
## The Wiki
31+
If you just want to see it work, check out the [list of current examples](examples/v3.0).
3932

40-
Check out the [wiki](https://github.com/OAI/OpenAPI-Specification/wiki) for additional and relevant information about the project.
33+
## Tools and Libraries
4134

42-
This includes:
43-
- Static sample tutorial.
44-
- List of known deployments.
45-
- Revision history.
35+
Looking to see how you can create your own OpenAPI definition, present it, or otherwise use it? Check out the growing
36+
[list of 3.0 Implementations](IMPLEMENTATIONS.md).
4637

47-
## See it in Action
38+
## Participation
4839

49-
If you just want to see it work, check out the [pet store sample](http://petstore.swagger.io/).
40+
The current process for development of the OpenAPI Specification is described in
41+
[Development Guidelines](DEVELOPMENT.md).
42+
Development of the next version of the OpenAPI Specification is guided by the [Technical Developer Community](https://www.openapis.org/participate/how-to-contribute/governance#TDC). This group of committers bring their API expertise, incorporate feedback from the community, and expand the group of committers as appropriate. All development activity on the future specification will be performed as features and merged into this branch. Upon release of the future specification, this branch will be merged to master.
5043

51-
## Tools and Libraries
44+
The Open API Initiative encourages participation from individuals and companies alike.
45+
If you want to participate in the evolution of the OpenAPI Specification, consider taking the following actions:
5246

53-
Looking to see how you can create your own OpenAPI definition, present it or otherwise use it? Check out our [list of tools](http://swagger.io/open-source-integrations/) over at [http://swagger.io](http://swagger.io/open-source-integrations/).
47+
* Review the [current specification](versions/3.0.0.md). The human-readable markdown file _is the source of truth_ for the specification.
48+
* Review the [development](DEVELOPMENT.md) process so you understand how the spec is evolving.
49+
* Check the [issues](https://github.com/OAI/OpenAPI-Specification/issues) and [pull requests](https://github.com/OAI/OpenAPI-Specification/pulls) to see if someone has already documented your idea or feedback on the specification. You can follow an existing conversation by adding a comment to the existing issue or PR.
50+
* Create an issue to describe a new concern. If possible, propose a solution.
5451

55-
(Yes, there used to be a really long list here, we just moved it to the main website)
52+
Not all feedback can be accommodated and there may be solid arguments for or against a change being appropriate for the specification.
5653

5754
## License
5855

59-
Copyright 2016 The Linux Foundation
6056

61-
Licensed under the Apache License, Version 2.0 (the "License");
62-
you may not use this file except in compliance with the License.
63-
You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
57+
See: [License (Apache-2.0)](https://github.com/OAI/OpenAPI-Specification/blob/master/LICENSE)
58+
6459

65-
Unless required by applicable law or agreed to in writing, software
66-
distributed under the License is distributed on an "AS IS" BASIS,
67-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
68-
See the License for the specific language governing permissions and
69-
limitations under the License.
60+
![Analytics](https://ga-beacon.appspot.com/UA-831873-42/readme.md?pixel)

build.sbt

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)