Skip to content

Commit 576de46

Browse files
committed
Tried pre-loading the ruleset
1 parent 474944d commit 576de46

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

test/Microsoft.OpenApi.Readers.Tests/TestCustomExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void ParseCustomExtension()
4848
}
4949
}
5050

51-
public class FooExtension : IOpenApiExtension, IOpenApiElement
51+
internal class FooExtension : IOpenApiExtension, IOpenApiElement
5252
{
5353
public string Baz { get; set; }
5454

test/Microsoft.OpenApi.Tests/Services/OpenApiValidatorTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.Collections.Generic;
66
using FluentAssertions;
7-
using Microsoft.OpenApi.Exceptions;
87
using Microsoft.OpenApi.Interfaces;
98
using Microsoft.OpenApi.Models;
109
using Microsoft.OpenApi.Properties;
@@ -132,7 +131,7 @@ public void ValidateCustomExtension()
132131

133132
}
134133

135-
public class FooExtension : IOpenApiExtension, IOpenApiElement
134+
internal class FooExtension : IOpenApiExtension, IOpenApiElement
136135
{
137136
public string Baz { get; set; }
138137

test/Microsoft.OpenApi.Tests/Validations/ValidationRuleSetTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ namespace Microsoft.OpenApi.Validations.Tests
88
{
99
public class ValidationRuleSetTests
1010
{
11+
public ValidationRuleSetTests()
12+
{
13+
var preload = ValidationRuleSet.DefaultRuleSet;
14+
}
15+
1116
[Fact]
1217
public void DefaultRuleSetReturnsTheCorrectRules()
1318
{

test/Microsoft.OpenApi.Tests/Walkers/WalkerLocationTests.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System.Collections.Generic;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT license.
3+
4+
using System.Collections.Generic;
25
using FluentAssertions;
36
using Microsoft.OpenApi.Models;
47
using Microsoft.OpenApi.Services;
@@ -154,7 +157,7 @@ public void WalkDOMWithCycles()
154157
}
155158
}
156159

157-
public class LocatorVisitor : OpenApiVisitorBase
160+
internal class LocatorVisitor : OpenApiVisitorBase
158161
{
159162
public List<string> Locations = new List<string>();
160163
public override void Visit(OpenApiInfo info)

0 commit comments

Comments
 (0)