I saw a similar answer for Swagger 2.x
here - How do you turn off swagger-ui in production so I was wondering if there is something similar I could do for open API as well? I tried something like :
@Configuration
@Profile("!prod")
public class OpenAPIConfig
{
}
but this doesn't work. Any thoughts/suggestions?