Skip to content

Commit 2d8640a

Browse files
committed
code cleanup
1 parent 9c19f93 commit 2d8640a

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

4-
using System;
54
using System.Text.Json;
65
using System.Text.Json.Nodes;
7-
using Microsoft.OpenApi.Any;
86
using Microsoft.OpenApi.Models;
97

108
namespace Microsoft.OpenApi.Validations.Rules

src/Microsoft.OpenApi/Validations/ValidationRuleSet.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
// Copyright (c) Microsoft Corporation. All rights reserved.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
32
// Licensed under the MIT license.
43

54
using System;
@@ -9,7 +8,6 @@
98
using Microsoft.OpenApi.Exceptions;
109
using Microsoft.OpenApi.Properties;
1110
using Microsoft.OpenApi.Validations.Rules;
12-
using System.Data;
1311

1412
namespace Microsoft.OpenApi.Validations
1513
{

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,6 +1691,13 @@ namespace Microsoft.OpenApi.Validations.Rules
16911691
{
16921692
public static Microsoft.OpenApi.Validations.ValidationRule<Microsoft.OpenApi.Models.OpenApiLicense> LicenseRequiredFields { get; }
16931693
}
1694+
public static class OpenApiNonDefaultRules
1695+
{
1696+
public static Microsoft.OpenApi.Validations.ValidationRule<Microsoft.OpenApi.Models.OpenApiHeader> HeaderMismatchedDataType { get; }
1697+
public static Microsoft.OpenApi.Validations.ValidationRule<Microsoft.OpenApi.Models.OpenApiMediaType> MediaTypeMismatchedDataType { get; }
1698+
public static Microsoft.OpenApi.Validations.ValidationRule<Microsoft.OpenApi.Models.OpenApiParameter> ParameterMismatchedDataType { get; }
1699+
public static Microsoft.OpenApi.Validations.ValidationRule<Microsoft.OpenApi.Models.OpenApiSchema> SchemaMismatchedDataType { get; }
1700+
}
16941701
[Microsoft.OpenApi.Validations.Rules.OpenApiRule]
16951702
public static class OpenApiOAuthFlowRules
16961703
{

0 commit comments

Comments
 (0)