Skip to content

Add a feature like Jackson Mixin (but for validation) #224

@SentryMan

Description

@SentryMan

Say we want to override the validation behavior on a class we can't modify.

public class MixinTarget {
  @NotNull(groups=Redmanes.class)
  String knight;
  String av;
}

we could use @Mixin to override

@MixIn(MixinTarget.class)
public abstract class MixinClass {

  @NotNull(groups=CleanRot.class)
  String knight;

   @NotBlank
   String av;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions