This PR adds a simple convenience function that I've added as an extension method elsewhere on projects that use golem. It allows one to intuitively re-use a validation context thus:
ctx.validate {
/* your validation here */
}
instead of the more verbose and unintuitive
ctx.apply {
/* your validation here */
validate()
}
This PR adds a simple convenience function that I've added as an extension method elsewhere on projects that use golem. It allows one to intuitively re-use a validation context thus:
instead of the more verbose and unintuitive