| { |
| "validatingResourceType": "validation/test/resourceType1", |
| "applicablePaths": [ |
| "/validation/testing/fakeFolder1", |
| "/content/validated" |
| ], |
| "sling:resourceType": "sling/validation/model", |
| "properties": { |
| "jcr:primaryType" : "nt:unstructured", |
| "field1": { |
| "jcr:primaryType" : "nt:unstructured", |
| "propertyType": "string", |
| "validators": { |
| "jcr:primaryType" : "nt:unstructured", |
| "org.apache.sling.validation.core.RegexValidator": { |
| "jcr:primaryType" : "nt:unstructured", |
| "validatorArguments" : ["regex=^\\p{Upper}+$"], |
| "severity" : "10" |
| } |
| } |
| }, |
| "field2" : { |
| "jcr:primaryType" : "nt:unstructured" |
| } |
| } |
| } |