rspec_api_documentation
rspec_api_documentation copied to clipboard
Fix (open api writer): Allow to use same parameter name in different scopes
I faced with a problem that I can't use the same parameter name in different scopes. For example
parameter :name, 'Player 1 name', scope: [:data, :player1]
parameter :name, 'Player 2 name', scope: [:data, :player2]
gives you only the first parameter in the result open api json.
This PR fixes this issue.