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

Method ContainsAttribute

schema/schema.go:35–42  ·  view source on GitHub ↗

ContainsAttribute checks whether the list of Core Attributes contains an attribute with the given name.

(name string)

Source from the content-addressed store, hash-verified

33
34// ContainsAttribute checks whether the list of Core Attributes contains an attribute with the given name.
35func (as Attributes) ContainsAttribute(name string) (CoreAttribute, bool) {
36 for _, a := range as {
37 if strings.EqualFold(name, a.name) {
38 return a, true
39 }
40 }
41 return CoreAttribute{}, false
42}
43
44// Schema is a collection of attribute definitions that describe the contents of an entire or partial resource.
45type Schema struct {

Callers 5

validateAttributePathFunction · 0.80
validateSubAttributeFunction · 0.80
PassesFilterMethod · 0.80
referenceContainsMethod · 0.80

Calls

no outgoing calls