From fb5a185244cae1270b8374775bd2d2543f74eaf5 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 28 Nov 2024 11:13:13 -0500 Subject: [PATCH] fix: netstandard2 compatibility Signed-off-by: Vincent Biret --- .../Functions.OpenApi/OpenApi/OpenApiDocumentParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/src/Functions/Functions.OpenApi/OpenApi/OpenApiDocumentParser.cs b/dotnet/src/Functions/Functions.OpenApi/OpenApi/OpenApiDocumentParser.cs index 4e09028ec311..9b2fc00b434b 100644 --- a/dotnet/src/Functions/Functions.OpenApi/OpenApi/OpenApiDocumentParser.cs +++ b/dotnet/src/Functions/Functions.OpenApi/OpenApi/OpenApiDocumentParser.cs @@ -211,7 +211,7 @@ internal static List 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),