mirror of
https://github.com/nsnail/IGeekFan.AspNetCore.Knife4jUI.git
synced 2025-04-16 23:32:51 +08:00
15 lines
398 B
C#
15 lines
398 B
C#
using Microsoft.OpenApi.Any;
|
|
using Microsoft.OpenApi.Models;
|
|
using Swashbuckle.AspNetCore.SwaggerGen;
|
|
|
|
namespace Basic.Swagger
|
|
{
|
|
public class AssignOperationVendorExtensions : IOperationFilter
|
|
{
|
|
public void Apply(OpenApiOperation operation, OperationFilterContext context)
|
|
{
|
|
operation.Extensions.Add("x-purpose", new OpenApiString("test"));
|
|
}
|
|
}
|
|
}
|