Skip to content

Repository files navigation

Grails Cascade Validation Plugin

Maven Central License CI

This plugin establishes a cascaded constraint property for validatable objects — domain classes and classes implementing grails.validation.Validateable. When cascaded: true is set on a nested object, the nested object's validate() method is invoked and its errors are reported as part of the parent object's validation.

Installation

dependencies {
    implementation 'io.github.gpc:cascade-validation:7.0.1'
}

Compatibility

Plugin version Grails version Java version
8.0.x Grails 8 21+
7.0.x Grails 7 17+
4.0.x Grails 5 / 6 11+

Documentation

The reference documentation, including the upgrade notes for the cascadecascaded rename, is published at https://gpc.github.io/grails-cascade-validation/.

Contributing

See CONTRIBUTING.md.

About

Establishes a 'cascade' constraint property for validateable objects. If "cascade:true" is set on a nested object, the nested object's validate() method will be invoked and the results will be reported as part of the parent object's validation. Based on a blog post by Eric Kelm: http://asoftwareguy.com/2013/07/01/grails-cascade-validation-for-pog…

Topics

Resources

Contributing

Stars

0 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages