#5397 exclusion of paths in swagger config fixed