Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3091

ListValidator should implement MinMaxValidator

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Beta29
    • None
    • Management
    • None

      If the kernel detects an attribute uses MinMaxValidator it uses the min and max to report min/max or min-length/max-length metadata, with the "-length" option used for model types where that is appropriate. So MinMaxValidator is appropriate for LIST attributes since the data will be reported correctly.

      But the primary validator for lists, ListValidator does not implement MinMaxValidator even though it stores and uses a min and max for its validation.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: