Skip to content

Commit

Permalink
chore: aligns parsing pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Jan 8, 2025
1 parent 9d07ebb commit fd25660
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@ private static void ProcessIn(OpenApiParameter o, ParseNode n, OpenApiDocument h
case "query":
case "header":
case "path":
value.TryGetEnumFromDisplayName<ParameterLocation>(out var _in);
o.In = _in;
if (value.TryGetEnumFromDisplayName<ParameterLocation>(out var _in))
{
o.In = _in;
}
break;
default:
o.In = null;
Expand Down

0 comments on commit fd25660

Please sign in to comment.