Closed Edward-Zhou closed 5 months ago
I am trying to use IMultipleExamplesProvider, and made a test with WebApi8 project, which is work if I did not change anything.
IMultipleExamplesProvider
WebApi8
But, If I add builder.Services.Configure<SwaggerOptions>(c => c.SerializeAsV2 = true); which I want to create swagger 2.0.
builder.Services.Configure<SwaggerOptions>(c => c.SerializeAsV2 = true);
It will only return the first Request Example.
multiple example is not supported for swagger 3.0
I am trying to use
IMultipleExamplesProvider
, and made a test withWebApi8
project, which is work if I did not change anything.But, If I add
builder.Services.Configure<SwaggerOptions>(c => c.SerializeAsV2 = true);
which I want to create swagger 2.0.It will only return the first Request Example.