You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Aspnet core ApiVersion, some of my Controllers are Excluded when generating a Swagger Document on a specific version., simply by using DocInclusionPredicate.
unfortunately Swashbuckle still generates all the excluded Controllers Schemas.
the expected result is not even bother to create them.
currently, i has to implement a "Tree Shake" of definitions (document filter) that removes unreferenced definitions, But the expected result is to exlude these schamas on earlier phases as they are no references by any rendered operation.
more over sometimes, the controller with [ApiVersion] X, has conflict in schemas on controller with [ApiVersion] Y. for example Request Body class is the same name with different Namespace. which make things more complicated.
by excluding these schemas that are not use on earlier phase, it would fix the entire problem
The text was updated successfully, but these errors were encountered:
When using Aspnet core
ApiVersion
, some of my Controllers are Excluded when generating a Swagger Document on a specific version., simply by usingDocInclusionPredicate
.unfortunately Swashbuckle still generates all the excluded Controllers Schemas.
the expected result is not even bother to create them.
currently, i has to implement a "Tree Shake" of definitions (document filter) that removes unreferenced definitions, But the expected result is to exlude these schamas on earlier phases as they are no references by any rendered operation.
more over sometimes, the controller with [ApiVersion] X, has conflict in schemas on controller with [ApiVersion] Y. for example Request Body class is the same name with different Namespace. which make things more complicated.
by excluding these schemas that are not use on earlier phase, it would fix the entire problem
The text was updated successfully, but these errors were encountered: