[ 
https://issues.apache.org/jira/browse/SLING-4011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14226027#comment-14226027
 ] 

Konrad Windszus commented on SLING-4011:
----------------------------------------

In the above PR I allowed the property "name-regex" below property resources 
and children resources in the Model Resource. In the case that regular 
expression is given, all properties/childresources are validated which match 
that name.
The required handling is untouched (SLING-4013), therefore it is an error for 
{{name-regex}} as well if there is not at least one property/childresource 
matching that pattern.


> Allow ValidationModel nodes in the JCR contain wildcards below children and 
> properties 
> ---------------------------------------------------------------------------------------
>
>                 Key: SLING-4011
>                 URL: https://issues.apache.org/jira/browse/SLING-4011
>             Project: Sling
>          Issue Type: Improvement
>          Components: Validation
>            Reporter: Konrad Windszus
>              Labels: validator
>             Fix For: Validation 1.0.0
>
>
> According to 
> https://github.com/apache/sling/blob/trunk/contrib/validation/README.md the 
> nodes in the JCR specifying a validation model must always give an explicit 
> property name or child node name. This is sometimes not possible if the 
> subnodes/properties are generated automatically. Therefore it would be great 
> if the elements directly below {{children}} and {{properties}} would allow 
> wildcards.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to