MCPcopy Create free account
hub / github.com/elimity-com/scim / Example_removeAllMembers

Function Example_removeAllMembers

internal/patch/remove_test.go:11–20  ·  view source on GitHub ↗

The following example shows how remove all members of a group.

()

Source from the content-addressed store, hash-verified

9
10// The following example shows how remove all members of a group.
11func 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.
23func Example_removeComplexMultiValuedAttributeValue() {

Callers

nothing calls this directly

Calls 3

ValidateMethod · 0.95
CoreGroupSchemaFunction · 0.92
NewValidatorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…