Skip to content

Commit d20a217

Browse files
committed
Merge remote-tracking branch 'upstream/master'
Catching up with changes in the upstream repo.
2 parents 2fe1ec8 + c7b274c commit d20a217

File tree

128 files changed

+3769
-12606
lines changed

Some content is hidden

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

128 files changed

+3769
-12606
lines changed

.travis.yml

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

DEVELOPMENT.md

Lines changed: 95 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,118 @@
11
## Development Guidelines
22

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 Steering Committee (TSC) will initially follow these processes when merging changes from external contributors or from the TSC itself. This guideline document will be adjusted as practicality dictates.
3+
This document intends to establish guidelines which build a transparent, open mechanism for deciding how to evolve the OpenAPI Specification. The OpenAPI Technical Steering Committee (TSC) will initially follow these processes when merging changes from external contributors or from the TSC itself. This guideline document will be adjusted as practicality dictates.
44

55
## OAI Specification Driving factors
66

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.
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.
88

99
## Specification Change Criteria
1010

11-
The specification _will change_ from the original 2.0 version. We should typically make changes when any of the following criteria are met:
11+
The specification *will evolve over time*. Changes may be made when any of the following criteria are met:
1212

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.
13+
* Clarity. The current "way" something is done doesn't make sense, is complicated, or not clear.
1814

15+
* Consistency. A portion of the specification is not consistent with the rest, or with the industry standard terminology.
16+
17+
* Necessary functionality. We are missing functionality because of a certain design of the specification.
18+
19+
* 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.
20+
21+
* 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.
22+
23+
## Specification Change Process
24+
25+
For each change in the specification we should *always* consider the following:
26+
27+
* 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?
28+
29+
* Tooling. Strive to support code generation, software interfaces, spec generation techniques, as well as other utilities. Some features may be impossible to support in different frameworks/languages. These should be documented and considered during the change approval process.
30+
31+
* Visualization. Can the specification change be graphically visualized somehow in a UI or other interface?
32+
33+
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 @webron" however at least one formal GitHub-based flow approval must be given. After voting criteria is met, any committer can merge the PR. No change should be approved until there is documentation for it, supplied in an accompanying PR.
1934

2035
## Tracking Process
2136

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-
- At any given time, there would be _at most_ 4 work branches. The branches would exist if work has started on them. Assuming a current version of 3.0.0:
25-
- `master` - Current stable version. No PRs would be accepted directly to modify the specification. PRs against supporting files can be accepted.
26-
- `v3.0.1` - The next PATCH version of the specification. This would include non-breaking changes such as typo fixes, document fixes, wording clarifications.
27-
- `v3.1.0` - The next MINOR version.
28-
- `v4.0.0` - The next MAJOR version.
29-
- The `master` branch shall remain the current, released OpenAPI Specification. We will describe and link the work branch(es) on the **default** README.md on master.
30-
- Examples of how something is described _currently_ vs. the proposed solution should accompany any change proposal.
31-
- New features should be done in feature branches/forks which, upon approval, are merged into the proper work branch.
32-
- 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.
33-
- 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.
34-
- A PR will be used to describe the _proposed_ solution, and linked to the original issue.
35-
- 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.
36-
- When the a work branch is ready and approved, the branch will be merged to master.
37+
* GitHub is the medium of record for all spec designs, use cases, and so on.
38+
39+
* 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).
40+
41+
* At any given time, there would be *at most* 4 work branches. The branches would exist if work has started on them. Assuming a current version of 3.0.0:
42+
43+
* master - Current stable version. No PRs would be accepted directly to modify the specification. PRs against supporting files can be accepted.
44+
45+
* v3.0.1-dev - The next PATCH version of the specification. This would include non-breaking changes such as typo fixes, document fixes, wording clarifications.
46+
47+
* v3.1.0 - The next MINOR version.
48+
49+
* v4.0.0 - The next MAJOR version.
50+
51+
* The master branch shall remain the current, released OpenAPI Specification. We will describe and link the work branch(es) on the **default** README.md on master.
52+
53+
* Examples of how something is described *currently* vs. the proposed solution should accompany any change proposal.
3754

38-
## Approving Changes
55+
* New features should be done in feature branches/forks which, upon approval, are merged into the proper work branch.
3956

40-
For each change in the specification we should _always_ consider the following:
57+
* Use labels for the workflow of specification changes. Examples of labels are proposed, housekeeping, migration-review, tooling-, needs documentation, review (candidate for upcoming TSC mtg), rejected, and needs approval. These labels must be assigned by project committers. Style is lowercase with dashes in place of spaces.
4158

42-
- 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?
43-
- 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.
44-
- Visualization. Can the specification change be graphically visualized somehow in a UI or other interface?
59+
* 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.
4560

46-
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 @webron". After voting criteria is met, any committer can merge the PR. (**TODO**: we will want to formalize what voting criteria actually is).
61+
* A PR will be used to describe the *proposed* solution and linked to the original issue.
4762

48-
No change should be approved until there is documentation for it, supplied in an accompanying PR.
63+
* 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.
64+
65+
* When the work branch is ready and approved, the branch will be merged to master.
66+
67+
## Release Process
68+
69+
A release requires a vote on the release notes by TSC members within the voting period. Major or minor release voting periods will be announced by the Liaison in the Slack channel and noted on the calendar at least 6 days in advance. During this time, TSC members who have not yet voted must note their approval on the GitHub pull request for the release notes. Patch releases happen at the first TSC meeting of a calendar month. The Liaison is responsible for coordinating the actual merge to Master with marketing support, if any.
70+
71+
* Patch-level releases require majority approval by TSC members. (Max voting period 3 days)
72+
73+
* Minor: requires approval by 66% of TSC members. (Max voting period 7 days)
74+
75+
* Major: requires approval by 66% of TSC members. (Max voting period 14 days)
76+
77+
## Draft Features
78+
79+
Where suitable, features will be introduced as draft but OAI approved extensions.
80+
By introducing new features this way we enable new features to be designed, documented and then implemented by tools that are interested in the feature, without putting the burden of implementation on all tooling.
81+
If the feature is successfully implemented and there is demonstrable value added by the feature, it will become a candidate for inclusion in a future release of the specification, at which point all tools will be expected to support the feature.
82+
83+
Draft feature extensions are identified by the `x-oas-draft-` prefix and can only be used where existing extensions are permitted.
84+
This ensures no existing tooling will affected by the introduction of the draft feature.
85+
If the feature is deemed appropriate for inclusion in the OAS, the `x-oas-draft-` prefix will be removed.
86+
Tooling that supports draft features should plan for the future removal of the prefix.
87+
When tooling adds support for a later version of OAS that includes the final implementation of the feature, it MUST not support the use of the draft prefix for that feature.
88+
Draft features will only be promoted into minor or major releases of the specification and therefore will be transparent to OpenAPI description writers and tooling providers who choose not to use the feature while in its draft state.
89+
90+
Draft features will be documented as GitHub issues and labeled with the `draft-feature` label and will be initially labelled as `draft:proposal`. When the proposal is considered sufficiently stable for pilot implementation, it will be labeled `draft:pilot`.
91+
If during the development of a draft feature, it is determined that the feature needs to change in a way that may break existing draft implementations, the extension name itself may be versioned with a version suffix. e.g. `-v2`
92+
When a draft feature becomes part of a future update to the specification any version suffix will be removed.
93+
Draft features that are deemed not appropriate for inclusion MUST be marked with the `draft:abandoned` label.
94+
Draft-features that are considered suitably specified and have had successful pilot implementations will be marked with the `draft:graduated` label.
95+
96+
Not all future new features will be introduced in this way.
97+
Some new features impact the specification in ways that cannot be encapsulated in an extension.
98+
However, where a new feature can be introduced in this way, it should be.
4999

50100
## Transparency
51101

52-
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.
102+
The process should 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. General discussions should happen on the GitHub issues for this project.
103+
104+
## Participation
105+
106+
While governance of the specification is the role of the TSC, the evolution of the specification happens through the participation of members of the developer community at large. Any person willing to contribute to the effort is welcome, and contributions may include filing or participating in issues, creating pull requests, or helping others with such activities.
107+
108+
## Community Roles
109+
110+
While these developer community roles are informal, there are many ways to get involved with the OpenAPI community, such as:
111+
112+
* Contributor: Includes but is not limited to any [contributor to the specification](https://github.com/OAI/OpenAPI-Specification/graphs/contributors) via an accepted pull request or who participates in issues or TSC calls.
113+
114+
* Implementer: any person involved in the creation or maintenance of tooling that leverages the current OpenAPI Specification
53115

54-
- Asynchronous discussions should live in the GitHub issues for this project.
55-
- Realtime discussions should be in a public chat such as IRC or Slack.
116+
* Ambassador: represents the OpenAPI Specification to the developer community. This could be through talks at conferences or meetups, blog posts, or answering questions in places like Twitter, Stack Overflow, or the GitHub repo.
56117

118+
* Supporter: uses the specification and appreciates its value.

0 commit comments

Comments
 (0)