Skip to content

Commit

Permalink
fix: netstandard2 compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <[email protected]>
  • Loading branch information
baywet committed Nov 28, 2024
1 parent 438b998 commit fb5a185
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ internal static List<RestApiOperation> CreateRestApiOperations(OpenApiDocument d
servers: operationServers,
path: path,
method: new HttpMethod(method),
description: description[..Math.Min(description.Length, 1000)],
description: description.Substring(0, Math.Min(description.Length, 1000)),
parameters: CreateRestApiOperationParameters(operationItem.OperationId, operationItem.Parameters),
payload: CreateRestApiOperationPayload(operationItem.OperationId, operationItem.RequestBody),
responses: CreateRestApiOperationExpectedResponses(operationItem.Responses).ToDictionary(static item => item.Item1, static item => item.Item2),
Expand Down

0 comments on commit fb5a185

Please sign in to comment.