Uploaded image for project: 'Bean Validation'
  1. BVAL-208

Support groups translation during cascaded validations

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 final
    • Component/s: None
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      Description

      Cascaded validation via @Valid should allow to transform validated groups when traversing from one object to the other. Something like:

      public class User {
          @Valid
          @ConvertGroup.List( {
              @ConvertGroup(from=Default.class, to=BasicPostal.class),
              @ConvertGroup(from=Complete.class, to=FullPostal.class)
          } )
          Set<Address> getAddresses() { ... }
      }
      
      public class User {
          @Valid
          @ConvertGroup( 
              from={Default.class, Complete.class},
              to={BasicPostal.class, FullPostal.class}
          )
          Set<Address> getAddresses() { ... }
      }
      

        Attachments

          Issue links

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: