ContributionsMost RecentMost LikesSolutionsRe: Conditionally enable/disable swagger documentation for endpoints based on environment. I am facing the same issue, I also need to disable the specification in prod env.