Swagger: strip off trailing slash from basePath