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

Function SimpleBooleanParams

schema/simple.go:97–109  ·  view source on GitHub ↗

SimpleBooleanParams converts given boolean parameters to their corresponding simple parameters.

(params BooleanParams)

Source from the content-addressed store, hash-verified

95
96// SimpleBooleanParams converts given boolean parameters to their corresponding simple parameters.
97func SimpleBooleanParams(params BooleanParams) SimpleParams {
98 return SimpleParams{
99 caseExact: false,
100 description: params.Description,
101 multiValued: params.MultiValued,
102 mutability: params.Mutability.m,
103 name: params.Name,
104 required: params.Required,
105 returned: params.Returned.r,
106 typ: attributeDataTypeBoolean,
107 uniqueness: attributeUniquenessNone,
108 }
109}
110
111// SimpleDateTimeParams converts given date time parameters to their corresponding simple parameters.
112func SimpleDateTimeParams(params DateTimeParams) SimpleParams {

Callers 8

getUserSchemaFunction · 0.92
getSimpleParamsFunction · 0.92
TestValidatorBooleanFunction · 0.92
schema_test.goFile · 0.85
schemaAttributesFunction · 0.85
CoreUserSchemaFunction · 0.85
ResourceTypeSchemaFunction · 0.85

Calls

no outgoing calls

Tested by 3

getUserSchemaFunction · 0.74
TestValidatorBooleanFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…