Closed andreasblueher closed 5 years ago
I've looked into the validators for prevalidating definitions and I was wondering if there's a way to check if more than 1 securitygroupdefinition has "AssociatedOwnerGroup = yes" assigned to it, because that could cause issues.
Yes, it is possible. We have an infrastructure to check three types of validity:
All is under this namespace:
https://github.com/SubPointSolutions/spmeta2/tree/master/SPMeta2/SPMeta2/Validation/Validators
In this case, it would be a "collection" validator similar to FieldCollectionValidator
This API is rather old. There is another validation API under the following namespace:
https://github.com/SubPointSolutions/spmeta2/tree/master/SPMeta2/SPMeta2/Services/Impl/Validation
This one works similar to model handlers and has a broader access to the model tree.
Most likely this PR won't go. Waiting for @andreasblueher's review on the following work:
https://github.com/SubPointSolutions/spmeta2/issues/1108#issuecomment-390963801
Regarding my issue #1108 I've changed the corresponding handler, while the validators still remain empty.