Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
translate
  • Loading branch information
BrennanConroy committed May 27, 2025
commit 5a082f0e454039d7d0cb488c182cd51a5af8daf8
Original file line number Diff line number Diff line change
Expand Up @@ -742,10 +742,10 @@ public async Task CustomConverterThatOutputsArrayWithDefaultValue()
// Assert
await VerifyOpenApiDocument(builder, document =>
{
var operation = document.Paths["/api"].Operations[HttpMethod.Post];
var operation = document.Paths["/api"].Operations[OperationType.Post];
var param = Assert.Single(operation.Parameters);
Assert.NotNull(param.Schema);
Assert.IsType<JsonArray>(param.Schema.Default);
Assert.IsType<OpenApiArray>(param.Schema.Default);
// Type is null, it's up to the user to configure this via a custom schema
// transformer for types with a converter.
Assert.Null(param.Schema.Type);
Expand All @@ -769,10 +769,10 @@ public async Task CustomConverterThatOutputsObjectWithDefaultValue()
// Assert
await VerifyOpenApiDocument(builder, document =>
{
var operation = document.Paths["/api"].Operations[HttpMethod.Post];
var operation = document.Paths["/api"].Operations[OperationType.Post];
var param = Assert.Single(operation.Parameters);
Assert.NotNull(param.Schema);
Assert.IsType<JsonObject>(param.Schema.Default);
Assert.IsType<OpenApiObject>(param.Schema.Default);
// Type is null, it's up to the user to configure this via a custom schema
// transformer for types with a converter.
Assert.Null(param.Schema.Type);
Expand Down
Loading