We have a use case in which we want to produce different swagger docs derived from the same API. Implementing the AbstractSpecFilter is what we need. However, it lacks the hook for filtering specific definitions. Using isRemovingUnreferencedDefinitions is too broad for our use case.
We suggest add an isDefinitionAllowed method to address this use case.