We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e48338d + 6adac99 commit 34b56deCopy full SHA for 34b56de
src/Microsoft.OpenApi/Validations/Rules/OpenApiParameterRules.cs
@@ -103,7 +103,8 @@ public static class OpenApiParameterRules
103
new ValidationRule<OpenApiParameter>(
104
(context, parameter) =>
105
{
106
- if (parameter.In == ParameterLocation.Path && !context.PathString.Contains("{" + parameter.Name + "}"))
+ if (parameter.In == ParameterLocation.Path &&
107
+ !(context.PathString.Contains("{" + parameter.Name + "}") || context.PathString.Contains("#/components")))
108
109
context.Enter("in");
110
context.CreateError(
0 commit comments