[jboss-jira] [JBoss JIRA] (WFCORE-2251) ObjectTypeValidator should not implement AllowedValuesValidator

Brian Stansberry (JIRA) issues at jboss.org
Wed Jan 3 22:21:00 EST 2018


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

Brian Stansberry reassigned WFCORE-2251:
----------------------------------------

    Assignee: Brian Stansberry


> ObjectTypeValidator should not implement AllowedValuesValidator
> ---------------------------------------------------------------
>
>                 Key: WFCORE-2251
>                 URL: https://issues.jboss.org/browse/WFCORE-2251
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Domain Management
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>            Priority: Minor
>
> ObjectTypeValidator is incorrectly implementing AllowedValuesValidator and should not implement it at all.
> The values returned from an AllowedValuesValidator are meant to be an enumeration of the *complete* legal values for the attribute. ObjectTypeValidator is simply returning the legal keys for the fields in the object, which are not complete legal values.
> The result of this is any attribute that uses this validator (which all complex objects probably do) will report bogus and unnecessary data in the read-resource-description "allowed-values" metadata. Unnecessary because the description of the attribute already includes full details of the fields via the "value-type" metadata.
> I'm classifying this as minor because the bogus metadata likely does no harm.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list