| { |
| "validatedResourceType": "validation/test/resourceType1", |
| "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" |
| } |
| } |
| } |