diff --git a/dotnet/src/Functions/Functions.UnitTests/OpenApi/OpenApiDocumentParserV30Tests.cs b/dotnet/src/Functions/Functions.UnitTests/OpenApi/OpenApiDocumentParserV30Tests.cs index 6c5e1ac74c35..d2fbe5b6357c 100644 --- a/dotnet/src/Functions/Functions.UnitTests/OpenApi/OpenApiDocumentParserV30Tests.cs +++ b/dotnet/src/Functions/Functions.UnitTests/OpenApi/OpenApiDocumentParserV30Tests.cs @@ -506,17 +506,28 @@ public async Task ItCanParsePathItemPathParametersAsync() { var document = """ - { - "openapi": "3.0.0", - "info": { - "title": "Test API", - "version": "1.0.0" - }, - "paths": { - "/items/{itemId}/{format}": { + { + "openapi": "3.0.0", + "info": { + "title": "Test API", + "version": "1.0.0" + }, + "paths": { + "/items/{itemId}/{format}": { + "parameters": [ + { + "name": "itemId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "get": { "parameters": [ { - "name": "itemId", + "name": "format", "in": "path", "required": true, "schema": { @@ -524,27 +535,16 @@ public async Task ItCanParsePathItemPathParametersAsync() } } ], - "get": { - "parameters": [ - { - "name": "format", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "summary": "Get an item by ID", - "responses": { - "200": { - "description": "Successful response" - } + "summary": "Get an item by ID", + "responses": { + "200": { + "description": "Successful response" } } } } } + } """; await using var steam = new MemoryStream(Encoding.UTF8.GetBytes(document));