using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.SwaggerGen;

namespace OBSBoardsApi.Swagger
{
    public class OperationFilterSwagger : IOperationFilter
    {
        public void Apply(OpenApiOperation operation, OperationFilterContext context)
        {
            operation.Parameters = operation.Parameters.Where(v =>
                v.Name != "Groups" &&
                v.Name != "Aggregates" &&
                v.Name != "GroupPaging" &&
                v.Name != "IncludeSubGroupCount" &&
                v.Name != "Skip" &&
                v.Name != "Take"
            ).ToList();
        }
    }
}
