You can create an empty Api application and then check Enable OpenApi. This will generate an Api application with Swagger. You can use this as a reference to see if the configuration is missing or otherwise caused