[jboss-jira] [JBoss JIRA] (WFCORE-3091) ListValidator should implement MinMaxValidator

Brian Stansberry (JIRA) issues at jboss.org
Sat Jul 22 11:43:00 EDT 2017


     [ https://issues.jboss.org/browse/WFCORE-3091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated WFCORE-3091:
-------------------------------------
    Git Pull Request: https://github.com/wildfly/wildfly-core/pull/2638  (was: https://github.com/wildfly/wildfly-core/pull/2635)


> ListValidator should implement MinMaxValidator
> ----------------------------------------------
>
>                 Key: WFCORE-3091
>                 URL: https://issues.jboss.org/browse/WFCORE-3091
>             Project: WildFly Core
>          Issue Type: Enhancement
>          Components: Domain Management
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list