Skip to content

Commit

Permalink
Update dotnet/src/Functions/Functions.OpenApi/OpenApi/OpenApiDocument…
Browse files Browse the repository at this point in the history
…Parser.cs

Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>
  • Loading branch information
markwallace-microsoft and SergeyMenshykh authored Dec 13, 2024
1 parent e708899 commit 2aa9d3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ private static List<RestApiParameter> CreateRestApiOperationParameters(string op
return null;
}

var mediaType = GetMediaType(requestBody.Content) ?? throw new KernelException($"Neither of the media types of {operationId} is supported."); ;
var mediaType = GetMediaType(requestBody.Content) ?? throw new KernelException($"Neither of the media types of {operationId} is supported.");
var mediaTypeMetadata = requestBody.Content[mediaType];

var payloadProperties = GetPayloadProperties(operationId, mediaTypeMetadata.Schema);
Expand Down

0 comments on commit 2aa9d3a

Please sign in to comment.