Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@
description: Gets or sets the ID of the created Todo item.
}
},
description: Represents the model for a created Todo item.
description: Represents the model for a created Todo item.,
example: {
id: a03952ca-880e-4af7-9cfa-630be0feb4a5
}
},
CreateTodoItemModel: {
type: object,
Expand All @@ -273,7 +276,10 @@
description: Gets or sets the text of the Todo item.
}
},
description: Represents the model for creating a new Todo item.
description: Represents the model for creating a new Todo item.,
example: {
text: Buy eggs 🥚
}
},
ProblemDetails: {
type: object,
Expand All @@ -299,6 +305,12 @@
type: string,
nullable: true
}
},
example: {
type: https://tools.ietf.org/html/rfc7231#section-6.5.1,
title: Bad Request,
status: 400,
detail: The specified value is invalid.
}
},
TodoItemModel: {
Expand All @@ -321,7 +333,12 @@
description: Gets or sets the date and time the Todo item was last updated.
}
},
description: Represents a Todo item.
description: Represents a Todo item.,
example: {
id: a03952ca-880e-4af7-9cfa-630be0feb4a5,
text: Buy eggs 🥚,
isCompleted: false
}
},
TodoListViewModel: {
type: object,
Expand All @@ -334,7 +351,16 @@
description: Gets or sets the Todo item(s).
}
},
description: Represents a collection of Todo items.
description: Represents a collection of Todo items.,
example: {
items: [
{
id: a03952ca-880e-4af7-9cfa-630be0feb4a5,
text: Buy eggs 🥚,
isCompleted: false
}
]
}
}
},
securitySchemes: {
Expand Down
6 changes: 2 additions & 4 deletions tests/TodoApp.Tests/OpenApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ public OpenApiTests(TodoAppFixture fixture, ITestOutputHelper outputHelper)
public static TheoryData<string> OpenApiUrls() => new()
{
{ "/nswag/v1.json" },
//// HACK Disabled due to https://github.com/dotnet/aspnetcore/issues/56975 and
//// https://github.com/dotnet/aspnetcore/issues/56990
////{ "/openapi/v1.json" },
////{ "/swagger/v1/swagger.json" },
{ "/openapi/v1.json" },
{ "/swagger/v1/swagger.json" },
};

[Theory]
Expand Down