Skip to content

Commit 7118be6

Browse files
committed
Add constants
1 parent 9e9ff78 commit 7118be6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/Microsoft.OpenApi/Models/OpenApiConstants.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,16 @@ public static class OpenApiConstants
700700
/// </summary>
701701
public const string ComponentsSegment = "/components/";
702702

703+
/// <summary>
704+
/// Field: Null
705+
/// </summary>
706+
public const string Null = "null";
707+
708+
/// <summary>
709+
/// Field: Nullable extension
710+
/// </summary>
711+
public const string NullableExtension = "x-nullable";
712+
703713
#region V2.0
704714

705715
/// <summary>

test/Microsoft.OpenApi.Tests/PublicApi/PublicApi.approved.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,9 @@ namespace Microsoft.OpenApi.Models
437437
public const string Name = "name";
438438
public const string Namespace = "namespace";
439439
public const string Not = "not";
440+
public const string Null = "null";
440441
public const string Nullable = "nullable";
442+
public const string NullableExtension = "x-nullable";
441443
public const string OneOf = "oneOf";
442444
public const string OpenApi = "openapi";
443445
public const string OpenIdConnectUrl = "openIdConnectUrl";

0 commit comments

Comments
 (0)