I'm having a problem with Swashbuckle when hiding a call the definition of the model linked to the call remains in the definition in the JSON generated.
Using the Document filter, I'm able to remove the call from the interface.
The calls remain in the JSON generated but are invisible in Swagger UI. We can also see the definition for the Model and Enum linked to theses calls.
Theses are internal calls and need to be hidden from external eyes in the JSON.
How can I hide all the calls and their references?
Using [ApiExplorerSettings(IgnoreApi = true)] would fix my problem but I need to filter with an existing attribute.
So I found the answer to my question through hard work. I'm putting it here so that the next person with my issue will have a nicer time then me.
Then in the DocumentFilter