Using ApiDeclarationFilter we can remove paths from openapi specification without removing it from MetaData (/types/typescript for example).
SchemaFilter allows going through the models that are in api.Definitions on the openapi spec.
ApiDeclarationFilter also has access to these deffinitions. However, there does not seem to be a way to tag them in anyway to be unique/specific type. We wish to hide certain DTOs from the OpenApi documentation specification but not from the metadata (/types/typescript)
Is there another way to inject into the generation higher up or is there a tag we can tag DTOs with that we can match on to then remove them in ApiDeclarationFilter ? Imporantly we need to keep the models in the meta data but not in the openapi specification