Hide operation from swagger, but not from "add service stack reference in C#"

I’ve added a ExcludeAttribute(Feature.Metadata)] on the operation …
It is correctly hidden from swagger … but it disappear from the C# proxy as well …
Is it possible to hide the operation from swagger only ?

using “ServiceStack.Api.OpenApi” version=“4.5.8”

thank you
enrico

Currently, you can use ApiDeclarationFilter to remove operations you do not want to show up in Swagger UI.

Plugins.Add(new OpenApiFeature()
{
    ApiDeclarationFilter = (api) =>
    {
        api.Paths.Remove("/path-to-hide");
    }
}