The following example shows how remove all members of a group.
()
| 9 | |
| 10 | // The following example shows how remove all members of a group. |
| 11 | func Example_removeAllMembers() { |
| 12 | operation := `{ |
| 13 | "op": "remove", |
| 14 | "path": "members" |
| 15 | }` |
| 16 | validator, _ := NewValidator(operation, schema.CoreGroupSchema()) |
| 17 | fmt.Println(validator.Validate()) |
| 18 | // Output: |
| 19 | // <nil> <nil> |
| 20 | } |
| 21 | |
| 22 | // The following example shows how remove a value from a complex multi-valued attribute. |
| 23 | func Example_removeComplexMultiValuedAttributeValue() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…