Not sure if its the correct solution but add a subdirectory 'docs' and use:
```
RspecApiDocumentation.configure do |config|
config.docs_dir = Rails.root.join('public/docs')
...
end
```
and
```
SwaggerUiEngine.configure do |config|
config.swagger_url = '/docs/open_api.json'
...
end
```