Skip to content

Commit e86df13

Browse files
committed
chore: makes regex internal
Signed-off-by: Vincent Biret <[email protected]>
1 parent 778184f commit e86df13

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Microsoft.OpenApi/Validations/Rules/OpenApiComponentsRules.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static class OpenApiComponentsRules
1717
/// <summary>
1818
/// The key regex.
1919
/// </summary>
20-
public static readonly Regex KeyRegex = new(@"^[a-zA-Z0-9\.\-_]+$");
20+
internal static readonly Regex KeyRegex = new(@"^[a-zA-Z0-9\.\-_]+$");
2121

2222
/// <summary>
2323
/// All the fixed fields declared above are objects

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,6 @@ namespace Microsoft.OpenApi.Validations.Rules
16711671
[Microsoft.OpenApi.Validations.Rules.OpenApiRule]
16721672
public static class OpenApiComponentsRules
16731673
{
1674-
public static readonly System.Text.RegularExpressions.Regex KeyRegex;
16751674
public static Microsoft.OpenApi.Validations.ValidationRule<Microsoft.OpenApi.Models.OpenApiComponents> KeyMustBeRegularExpression { get; }
16761675
}
16771676
[Microsoft.OpenApi.Validations.Rules.OpenApiRule]

0 commit comments

Comments
 (0)