Skip to content

Commit 1d538dc

Browse files
authored
Merge pull request #2420 from microsoft/docs/versioning
docs: adds an insert about versioning issues for the preview
2 parents d0a57d8 + 9548412 commit 1d538dc

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- using the raw image URL so it displays correctly on nuget.org -->
22
![Category overview screenshot](https://raw.githubusercontent.com/microsoft/OpenAPI.NET/main/docs/images/oainet.png "Microsoft + OpenAPI = Love")
33

4-
# OpenAPI.NET
4+
# OpenAPI.NET
55

66
|Package|Nuget|
77
|--|--|
@@ -14,7 +14,7 @@ The **OpenAPI.NET** SDK contains a useful object model for OpenAPI documents in
1414

1515
**See more information on the OpenAPI specification and its history here: <a href="https://www.openapis.org">OpenAPI Initiative</a>**
1616

17-
Project Objectives
17+
Project Objectives:
1818

1919
- Provide a single shared object model in .NET for OpenAPI descriptions.
2020
- Include the most primitive Reader for ingesting OpenAPI JSON and YAML documents in both V2 and V3 formats.
@@ -26,6 +26,18 @@ Project Objectives
2626
- Install core Nuget package [**Microsoft.OpenApi**](https://www.nuget.org/packages/Microsoft.OpenApi)
2727
- Install readers Nuget package [**Microsoft.OpenApi.Readers**](https://www.nuget.org/packages/Microsoft.OpenApi.Readers)
2828

29+
> Note: version 2 of this library, which brings support for OpenAPI 3.1, is currently in preview. Due to early versioning issues with the preview, and package renaming, the installation must be done with a specific version number to get the latest version:
30+
> ```bash
31+
> # x-release-please-start-version
32+
> dotnet add package Microsoft.OpenAPI --version 2.0.0-preview.29
33+
> # x-release-please-end
34+
> # x-release-please-start-version
35+
> dotnet add package Microsoft.OpenAPI.YamlReader --version 2.0.0-preview.29
36+
> # x-release-please-end
37+
> ```
38+
> Until this new version is generally available, dependabot will periodically create pull requests which **downgrade** to preview 9, they should be ignored.
39+
> You can read more about the changes of this upcoming version [in the upgrade guide](./docs/upgrade-guide-2.md).
40+
2941
# Processors
3042
The OpenAPI.NET project holds the base object model for representing OpenAPI documents as .NET objects. Some developers have found the need to write processors that convert other data formats into this OpenAPI.NET object model. We'd like to curate that list of processors in this section of the readme.
3143

release-please-config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
"type": "xml",
2626
"path": "Directory.Build.props",
2727
"xpath": "//Project/PropertyGroup/Version"
28+
},
29+
{
30+
"type": "generic",
31+
"path": "README.md"
2832
}
2933
]
3034
}

0 commit comments

Comments
 (0)