You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/upgrade-guide-2.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,9 +71,9 @@ In the OpenAPI specification, there are a few properties that are defined as typ
71
71
72
72
In the v1 library, there are a set of classes that are derived from the `OpenApiAny` base class which is an abstract model which reflects the JSON data model plus some additional primitive types such as `decimal`, `float`, `datetime` etc.
73
73
74
-
In v2 we are removing this abstraction and relying on the JsonNode model to represent these inner types. In v1 we were not able to reliably identify the additional primitive types and it caused a significant amount of false negatives in error reporting as well as incorrectly parsed data values.
74
+
In v2 we are removing this abstraction and relying on the `JsonNode` model to represent these inner types. In v1 we were not able to reliably identify the additional primitive types and it caused a significant amount of false negatives in error reporting as well as incorrectly parsed data values.
75
75
76
-
Due to JsonNode implicit operators, this makes initialization sometimes easier, instead of:
76
+
Due to `JsonNode` implicit operators, this makes initialization sometimes easier, instead of:
77
77
```csharp
78
78
newOpenApiParameter
79
79
{
@@ -85,7 +85,7 @@ Due to JsonNode implicit operators, this makes initialization sometimes easier,
85
85
```
86
86
the assignment becomes simply,
87
87
```csharp
88
-
Example=(float)0.5,
88
+
Example=0.5f,
89
89
```
90
90
91
91
For a more complex example, where the developer wants to create an extension that is an object they would do this in v1:
@@ -153,7 +153,6 @@ The OpenAPI 3.1 specification changes significantly how it leverages JSON Schema
@@ -200,7 +199,7 @@ public class OpenApiSchema : IOpenApiAnnotatable, IOpenApiExtensible, IOpenApiRe
200
199
201
200
## OpenAPI v3.1 Support
202
201
203
-
There are a number of new features in OpenAPI v3.1 that are now supported in OpenAPI.Net.
202
+
There are a number of new features in OpenAPI v3.1 that are now supported in OpenAPI.NET.
204
203
205
204
### Webhooks
206
205
@@ -213,7 +212,6 @@ public class OpenApiDocument : IOpenApiSerializable, IOpenApiExtensible, IOpenA
213
212
/// The key name is a unique string to refer to each webhook, while the (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the expected responses
0 commit comments