Skip to content

Commit 34b56de

Browse files
authored
Merge branch 'vnext' into issues/734
2 parents e48338d + 6adac99 commit 34b56de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public static class OpenApiParameterRules
103103
new ValidationRule<OpenApiParameter>(
104104
(context, parameter) =>
105105
{
106-
if (parameter.In == ParameterLocation.Path && !context.PathString.Contains("{" + parameter.Name + "}"))
106+
if (parameter.In == ParameterLocation.Path &&
107+
!(context.PathString.Contains("{" + parameter.Name + "}") || context.PathString.Contains("#/components")))
107108
{
108109
context.Enter("in");
109110
context.CreateError(

0 commit comments

Comments
 (0)