Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REVIEW ONLY] Add written-word drafts since a PR is a good way to review #4095

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions blog-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
OpenAPI Initiative is pleased to announce a patch release of the 3.0 and 3.1 OpenAPI specifications.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
In patch releases, no changes are made to the way that APIs are described, but the specification wording itself contains many updates, expansions, and clarifications where previous the points may have been unclear or not covered.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
Think of this release as the "Words Mean Things" edition.
lornajane marked this conversation as resolved.
Show resolved Hide resolved

## Released versions

3.1.1 is the newest and recommended version of OpenAPI.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
If you are starting a new project today, or have the option to upgrade, this is your target version.
Tooling that supports 3.1.0 is expected to work without problems on 3.1.1 since the patch releases don't contain structure changes.
lornajane marked this conversation as resolved.
Show resolved Hide resolved

3.0.4 is an additional release on the 3.0 branch to incorporate the improved wording to the 3.0 branch of the specification where the changes applied there.
It is expected that 3.0.4 will be the final release in the 3.0.x line.

## Summary of changes

The releases include as many explanations, clarifications and expanded sections as we could manage, driven mostly by the questions and comments we get from the users and tools creators of OpenAPI.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
The highlights include a lot of new content to expand on existing content and reduce ambiguity.
The sections regarding parameters, encoding and schemas have had significant updates and expansion to cover more cases.
You will also find some security clarifications and a whole new "Security Considerations" section has been added.

Look out for additional apendices with some great additional explanations that support the additions to the main body of the specification.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
We added a great collection of new content sections and appendix entries about handling data including data types, serialization and encoding.
In 3.1, there is more information about parsing documents and resolving references since the adoption of JSON Schema.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved

The updates also strayed into distinctly "meta" areas, so we've also got:

- examples of using the `example(s)` fields
- reference to a schema to represent the OpenAPI schema
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
- we have clearly defined when something was undefined
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved

## Beyond the specification

In addition to the main specifications that you can always find at https://spec.openapis.org, there are a number of other resources that you may find helpful:

- OpenAPI's documentation and examples is available at https://learn.openapis.org.
This site holds all the examples used in the main OpenAPI specification, and much more additional information besides.
- A [non-authoritative JSON Schema representation of the OpenAPI specification](https://spec.openapis.org/#non-normative-json-schemas) is available.
This representation should not require changes between 3.1.0 and 3.1.1 since patch releases don't change the structure.
- The [formats registry](https://spec.openapis.org/registry/format/index.html) and the [extensions registry](https://spec.openapis.org/registry/extension/index.html) list some common patterns in specification use.

ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
We also updated the tooling that publishes the specification, changed the GitHub repository structure, cleaned up and reformatted all the Markdown content, and improved our workflow automation.
Which doesn't affect the specification but does make it a nicer place to be and hopefully makes the next release easier too.

## Upgrade process

Most users and tool vendors should have no action to take, since the patch releases contain only wording changes or clarifications and no structure changes.
That said, especially if you publish OpenAPI tools, take a look at the release notes on GitHub to check that there are no surprises!
handrews marked this conversation as resolved.
Show resolved Hide resolved

## Acknowledgements

So many contributors have contributed to this release, it's not possible to name them all.
If you suggested an idea, joined our regular calls to discuss the changes, opened or reviewed a pull request, or participated in any of the discussions about the changes, then we thank you!
We had a LOT of help, and the new releases are very much improved for it (also the previous release was quite some time ago, a lot of people added to the project in the meantime).

Particular thanks goes to the Technical Steering Committee members who teamed up and shepherded the whole thing through, and to Henry Andrews whose counsel and hands-on help were a very welcome addition to the process.

## Get involved

There are lots of ways to get involved with OpenAPI, and we like to hear from everyone who uses OpenAPI (or wants to)!

- Start with [the OpenAPI Initiative website](https://openapis.org) to find out more about all our activities.
- Your organization can [become an OpenAPI Initiative member](https://www.openapis.org/membership/join).
- All the standards and resources are developed in the open on GitHub.
Try one of these projects [OpenAPI specification](https://github.com/OAI/OpenAPI-Specification), the new [Arazzo specification](https://github.com/OAI/Arazzo-Specification), the upcoming [Overlay specification](https://github.com/OAI/Overlay-Specification), or the [learn.openapis.org site](https://github.com/OAI/learn.openapis.org).
All the projects have open issues/discussions and welcome new contributors.
- Join one of our [regular open meetings](https://www.openapis.org/calendar) to find out what's coming up and to get involved.
- We have a Slack group that you can also [get an invitation to join](https://communityinviter.com/apps/open-api/openapi).

53 changes: 53 additions & 0 deletions release-notes-3.1.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Release Notes

This release makes no changes to the OpenAPI standard, however the formal specification document had multiple improvements, including:
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
- clarity and expanded explanations including several new appendices with supplementary details
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
- examples and additional documentation moved to https://learn.openapis.org
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
- the HTML rendering of the specification at https://spec.openapis.org is now considered the authoritative version (formerly it was the Markdown source on GitHub)
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved

OpenAPI description writers should mark their OpenAPI descriptions with the version of OpenAPI specification they used to write their specification, updating where possible.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Member

@earth2marsh earth2marsh Sep 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? Can this be explained more? (note that this is more of a request to description document authors than changes to 3.1.1, so perhaps break it out of this list?)


Tool creators should also not expect changes, but it is recommended to check the list of changes below.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved

## Clearer Definitions

Introduce consistent language around OpenAPI Document/Description/Definition:
- OpenAPI Description means the OpenAPI description of an API, whether it is in one or many files.
- a document means a single file.
- an "entry document" is where the OpenAPI description for an API starts; it may reference other documents.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved

Improved language regarding schemas, explaining the difference between the OpenAPI schema, the schemas used within the OpenAPI schema, and the use of a non-authoritative JSON Schema to supplement the written spec.

[3.1.1]Added guidance around use of schema dialects.

## References

Additional guidance for resolving references and parsing documents was added.
Resolving component names, tags, and operationIds are clarified.
[3.1.1]The adoption of JSON Schema in 3.1.x changed the parsing and referencing, and a new section was added to cover the changes in more depth than in 3.1.0.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved

[3.1.1]Improved explanation of URLs and URIs, and made clear which to use for each URL/URI field.
Clarified that Markdown links are resolved in relation to their rendered context.

## Data Types

Extensive clarifications on data types and encoding.
Added a section on handling binary data.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved

## Security

Added a note that the `security` array that is empty or missing values does not indicate that no security arrangements exist for this API.
Updated references to other standards where newer versions are available, and added more explanation for OpenIDConnect.
Added a "Security Concerns" section containing advice for implementers and users of OpenAPI.

ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
## Request Data

The parameters section was extensively refactored.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
Examples were updated, improved and explanations added.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved
Headers have their own section with examples and specific information.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved

Explanation of OpenAPI `example` and `examples` was expanded and the "Working with Examples" section added with clearer description and examples included.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved

Information regarding file uploads, form-urlencoded request bodies and multipart content were expanded and moved to the refactored Encoding Object section to provide better coverage of edge cases and more examples.
ralfhandl marked this conversation as resolved.
Show resolved Hide resolved