Skip to content

amrrbakry/grape-nested-params-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

related: ruby-grape/grape#1933

Steps to reproduce:

  • clone repo && cd
  • run $ bundle install && rake db:create
  • start server: $ rails s
  • fire request:
curl -X POST \
  'http://localhost:3000/base/sessions?registration[waiting_list_enabled]=true' \
  -H 'Cache-Control: no-cache'

expected response:

{
    "error": "Total capacity must be present"
}

actual response:

{
    "error": "registration[total_capacity] must be present"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published