rmorrise opened a new issue, #14608:
URL: https://github.com/apache/grails-core/issues/14608

   ### Task List
   
   - [x] Steps to reproduce provided
   - [x] Stacktrace (if present) provided
   - [x] Example that reproduces the problem uploaded to Github
   - [x] Full description of the issue provided (see below)
   
   ### Steps to Reproduce
   
   1. Check out the sample project
   2. POST to /master with the following input:
   
   {
    "misspelledDetail": []
   }
   
   ### Expected Behaviour
   
   When using the default input binding behavior for a Domain object, Grails 
should have a 'strict' input validation setting.
   
   If this setting is enabled, the input binding process should reject property 
values which are unmapped, resulting in an HTTP 400 (validation error).
   
   Alternately, something like the JSON-schema tool could be used:
   [http://json-schema.org/](http://json-schema.org/)
   
   ### Actual Behaviour
   
   Grails ignores the invalid JSON property and persists a blank domain object.
   
   ### Environment Information
   
   - **Operating System**: Win7 x64
   - **GORM Version:** 6.1.4.RELEASE
   - **Grails Version (if using Grails):** 3.3.0.M2
   - **JDK Version:** 1.8.0_131
   
   ### Example Application
   
   I created this example for another issue, but it can be used here, as well:
   
   - 
[https://github.com/rmorrise/bindToSubclassExample](https://github.com/rmorrise/bindToSubclassExample)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to