You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to send a param with type array, but the params that I am getting in the controller is always of type string.
Swagger_api definition:
swagger_api :invite do
summary 'Invite employees to organization'
param :form, 'organization[emails]', :array, :optional, 'Employee emails (should be array)'
param :header, 'auth-token', :string, :required, 'Authentication token'
response :unauthorized
response :not_acceptable, 'The request you made is not acceptable'
end
I am trying to send a param with type
array
, but the params that I am getting in the controller is always of typestring
.Swagger_api definition:
Generated swagger doc:
Params that I am getting in the controller:
Is
array
even supported? Or do I need to change something here?The text was updated successfully, but these errors were encountered: