Skip to content

Commit

Permalink
Update PathLevelParameterConverter.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
gricher-crto committed Feb 20, 2025
1 parent b5a3a3a commit fe2ec16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public override object ReadJson(
{
var operation = (JProperty) jToken;

if (operation.Name?.StartsWith("x-", StringComparison.InvariantCultureIgnoreCase)) continue;
if (operation.Name == null || operation.Name.StartsWith("x-", StringComparison.InvariantCultureIgnoreCase)) continue;

result[operation.Name] = JsonConvert.DeserializeObject<OpenApiOperation>(
operation.Value.ToString(),
Expand Down

0 comments on commit fe2ec16

Please sign in to comment.