Skip to content

Commit b7d0e38

Browse files
Enable disabled tests
Enable tests that have been disabled due to issues in .NET 9 preview 7.
1 parent 1c712fc commit b7d0e38

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed

tests/TodoApp.Tests/OpenApiTests.Schema_Is_Correct_schemaUrl=openapi.verified.txt

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,10 @@
263263
description: Gets or sets the ID of the created Todo item.
264264
}
265265
},
266-
description: Represents the model for a created Todo item.
266+
description: Represents the model for a created Todo item.,
267+
example: {
268+
id: a03952ca-880e-4af7-9cfa-630be0feb4a5
269+
}
267270
},
268271
CreateTodoItemModel: {
269272
type: object,
@@ -273,7 +276,10 @@
273276
description: Gets or sets the text of the Todo item.
274277
}
275278
},
276-
description: Represents the model for creating a new Todo item.
279+
description: Represents the model for creating a new Todo item.,
280+
example: {
281+
text: Buy eggs 🥚
282+
}
277283
},
278284
ProblemDetails: {
279285
type: object,
@@ -299,6 +305,12 @@
299305
type: string,
300306
nullable: true
301307
}
308+
},
309+
example: {
310+
type: https://tools.ietf.org/html/rfc7231#section-6.5.1,
311+
title: Bad Request,
312+
status: 400,
313+
detail: The specified value is invalid.
302314
}
303315
},
304316
TodoItemModel: {
@@ -321,7 +333,12 @@
321333
description: Gets or sets the date and time the Todo item was last updated.
322334
}
323335
},
324-
description: Represents a Todo item.
336+
description: Represents a Todo item.,
337+
example: {
338+
id: a03952ca-880e-4af7-9cfa-630be0feb4a5,
339+
text: Buy eggs 🥚,
340+
isCompleted: false
341+
}
325342
},
326343
TodoListViewModel: {
327344
type: object,
@@ -334,7 +351,16 @@
334351
description: Gets or sets the Todo item(s).
335352
}
336353
},
337-
description: Represents a collection of Todo items.
354+
description: Represents a collection of Todo items.,
355+
example: {
356+
items: [
357+
{
358+
id: a03952ca-880e-4af7-9cfa-630be0feb4a5,
359+
text: Buy eggs 🥚,
360+
isCompleted: false
361+
}
362+
]
363+
}
338364
}
339365
},
340366
securitySchemes: {

tests/TodoApp.Tests/OpenApiTests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ public OpenApiTests(TodoAppFixture fixture, ITestOutputHelper outputHelper)
2626
public static TheoryData<string> OpenApiUrls() => new()
2727
{
2828
{ "/nswag/v1.json" },
29-
//// HACK Disabled due to https://github.com/dotnet/aspnetcore/issues/56975 and
30-
//// https://github.com/dotnet/aspnetcore/issues/56990
31-
////{ "/openapi/v1.json" },
32-
////{ "/swagger/v1/swagger.json" },
29+
{ "/openapi/v1.json" },
30+
{ "/swagger/v1/swagger.json" },
3331
};
3432

3533
[Theory]

0 commit comments

Comments
 (0)