We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grails run-app
http://localhost:8080/MasterThing
Content-Type application/json
{ "details": [ { "itemName": "Foo" } ] }
Both requests should be OK.
Validation of the unique constraint on DetailItem should be scoped to the master object that is being posted.
unique
DetailItem
HTTP error 422: Property [itemName] of class [class grails.unique.child.DetailItem] with value [Foo] must be unique
Property [itemName] of class [class grails.unique.child.DetailItem] with value [Foo] must be unique
The unique constraint is validated globally for the itemName properly only.
itemName
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Task List
Steps to Reproduce
https://github.com/rmorrise/grails-unique-child
grails run-app
http://localhost:8080/MasterThing
Content-Type application/json
Expected Behaviour
Both requests should be OK.
Validation of the
unique
constraint onDetailItem
should be scoped to the master object that is being posted.Actual Behaviour
HTTP error 422:
Property [itemName] of class [class grails.unique.child.DetailItem] with value [Foo] must be unique
The
unique
constraint is validated globally for theitemName
properly only.Environment Information
Example Application
The text was updated successfully, but these errors were encountered: