Skip to content

Commit 772c98e

Browse files
committed
add quote for path
1 parent 08c05fa commit 772c98e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static class OpenApiParameterRules
5252
{
5353
context.CreateError(
5454
nameof(RequiredMustBeTrueWhenInIsPath),
55-
"\"required\" must be true when parameter location is path");
55+
"\"required\" must be true when parameter location is \"path\"");
5656
}
5757

5858
context.Exit();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void ValidateRequiredIsTrueWhenInIsPathInParameter()
5050
errors.Should().NotBeEmpty();
5151
errors.Select(e => e.Message).Should().BeEquivalentTo(new[]
5252
{
53-
"\"required\" must be true when parameter location is path"
53+
"\"required\" must be true when parameter location is \"path\""
5454
});
5555
}
5656
}

0 commit comments

Comments
 (0)