We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77793cc + 67960a2 commit 6b3394dCopy full SHA for 6b3394d
aspnetcore/release-notes/aspnetcore-9/includes/openAPI_completion.md
@@ -89,9 +89,9 @@ var builder = WebApplication.CreateBuilder();
89
90
builder.Services.AddOpenApi(options =>
91
{
92
- options.UseSchemaTransformer((schema, context, cancellationToken) =>
+ options.AddSchemaTransformer((schema, context, cancellationToken) =>
93
94
- if (context.Type == typeof(Todo))
+ if (context.JsonTypeInfo.Type == typeof(Todo))
95
96
schema.Example = new OpenApiObject
97
0 commit comments