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: src/Microsoft.OpenApi/Models/Interfaces/IOpenApiExample.cs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ public interface IOpenApiExample : IOpenApiDescribedElement, IOpenApiSummarizedE
12
12
/// Embedded literal example. The value field and externalValue field are mutually
13
13
/// exclusive. To represent examples of media types that cannot naturally represented
14
14
/// in JSON or YAML, use a string value to contain the example, escaping where necessary.
15
+
/// You must use the <see cref="JsonNullSentinel.IsJsonNullSentinel(JsonNode?)"/> method to check whether Default was assigned a null value in the document.
16
+
/// Assign <see cref="JsonNullSentinel.JsonNull"/> to use get null as a serialized value.
Copy file name to clipboardExpand all lines: src/Microsoft.OpenApi/Models/Interfaces/IOpenApiHeader.cs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,8 @@ public interface IOpenApiHeader : IOpenApiDescribedElement, IOpenApiReadOnlyExte
48
48
49
49
/// <summary>
50
50
/// Example of the media type.
51
+
/// You must use the <see cref="JsonNullSentinel.IsJsonNullSentinel(JsonNode?)"/> method to check whether Default was assigned a null value in the document.
52
+
/// Assign <see cref="JsonNullSentinel.JsonNull"/> to use get null as a serialized value.
Copy file name to clipboardExpand all lines: src/Microsoft.OpenApi/Models/Interfaces/IOpenApiParameter.cs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,8 @@ public interface IOpenApiParameter : IOpenApiDescribedElement, IOpenApiReadOnlyE
89
89
/// the example value SHALL override the example provided by the schema.
90
90
/// To represent examples of media types that cannot naturally be represented in JSON or YAML,
91
91
/// a string value can contain the example with escaping where necessary.
92
+
/// You must use the <see cref="JsonNullSentinel.IsJsonNullSentinel(JsonNode?)"/> method to check whether Default was assigned a null value in the document.
93
+
/// Assign <see cref="JsonNullSentinel.JsonNull"/> to use get null as a serialized value.
Copy file name to clipboardExpand all lines: src/Microsoft.OpenApi/Models/Interfaces/IOpenApiSchema.cs
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,8 @@ public interface IOpenApiSchema : IOpenApiDescribedElement, IOpenApiReadOnlyExte
117
117
/// The default value represents what would be assumed by the consumer of the input as the value of the schema if one is not provided.
118
118
/// Unlike JSON Schema, the value MUST conform to the defined type for the Schema Object defined at the same level.
119
119
/// For example, if type is string, then default can be "foo" but cannot be 1.
120
+
/// You must use the <see cref="JsonNullSentinel.IsJsonNullSentinel(JsonNode?)"/> method to check whether Default was assigned a null value in the document.
121
+
/// Assign <see cref="JsonNullSentinel.JsonNull"/> to use get null as a serialized value.
120
122
/// </summary>
121
123
publicJsonNode?Default{get;}
122
124
@@ -238,6 +240,8 @@ public interface IOpenApiSchema : IOpenApiDescribedElement, IOpenApiReadOnlyExte
238
240
/// A free-form property to include an example of an instance for this schema.
239
241
/// To represent examples that cannot be naturally represented in JSON or YAML,
240
242
/// a string value can be used to contain the example with escaping where necessary.
243
+
/// You must use the <see cref="JsonNullSentinel.IsJsonNullSentinel(JsonNode?)"/> method to check whether Default was assigned a null value in the document.
244
+
/// Assign <see cref="JsonNullSentinel.JsonNull"/> to use get null as a serialized value.
Copy file name to clipboardExpand all lines: src/Microsoft.OpenApi/Models/JsonSchemaReference.cs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@ public class JsonSchemaReference : OpenApiReferenceWithDescription
17
17
/// <summary>
18
18
/// A default value which by default SHOULD override that of the referenced component.
19
19
/// If the referenced object-type does not allow a default field, then this field has no effect.
20
+
/// You must use the <see cref="JsonNullSentinel.IsJsonNullSentinel(JsonNode?)"/> method to check whether Default was assigned a null value in the document.
21
+
/// Assign <see cref="JsonNullSentinel.JsonNull"/> to use get null as a serialized value.
Copy file name to clipboardExpand all lines: src/Microsoft.OpenApi/Models/OpenApiMediaType.cs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ public class OpenApiMediaType : IOpenApiSerializable, IOpenApiExtensible
21
21
/// <summary>
22
22
/// Example of the media type.
23
23
/// The example object SHOULD be in the correct format as specified by the media type.
24
+
/// You must use the <see cref="JsonNullSentinel.IsJsonNullSentinel(JsonNode?)"/> method to check whether Default was assigned a null value in the document.
25
+
/// Assign <see cref="JsonNullSentinel.JsonNull"/> to use get null as a serialized value.
Copy file name to clipboardExpand all lines: src/Microsoft.OpenApi/Models/RuntimeExpressionAnyWrapper.cs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,8 @@ public RuntimeExpressionAnyWrapper(RuntimeExpressionAnyWrapper runtimeExpression
29
29
30
30
/// <summary>
31
31
/// Gets/Sets the <see cref="JsonNode"/>
32
+
/// You must use the <see cref="JsonNullSentinel.IsJsonNullSentinel(JsonNode?)"/> method to check whether Default was assigned a null value in the document.
33
+
/// Assign <see cref="JsonNullSentinel.JsonNull"/> to use get null as a serialized value.
0 commit comments