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

Function SimpleDateTimeParams

schema/simple.go:112–124  ·  view source on GitHub ↗

SimpleDateTimeParams converts given date time parameters to their corresponding simple parameters.

(params DateTimeParams)

Source from the content-addressed store, hash-verified

110
111// SimpleDateTimeParams converts given date time parameters to their corresponding simple parameters.
112func SimpleDateTimeParams(params DateTimeParams) SimpleParams {
113 return SimpleParams{
114 caseExact: false,
115 description: params.Description,
116 multiValued: params.MultiValued,
117 mutability: params.Mutability.m,
118 name: params.Name,
119 required: params.Required,
120 returned: params.Returned.r,
121 typ: attributeDataTypeDateTime,
122 uniqueness: attributeUniquenessNone,
123 }
124}
125
126// SimpleNumberParams converts given number parameters to their corresponding simple parameters.
127func SimpleNumberParams(params NumberParams) SimpleParams {

Callers 5

getSimpleParamsFunction · 0.92
TestValidatorDateTimeFunction · 0.92
schema_test.goFile · 0.85
CommonAttributesFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestValidatorDateTimeFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…