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

Function SimpleNumberParams

schema/simple.go:127–139  ·  view source on GitHub ↗

SimpleNumberParams converts given number parameters to their corresponding simple parameters.

(params NumberParams)

Source from the content-addressed store, hash-verified

125
126// SimpleNumberParams converts given number parameters to their corresponding simple parameters.
127func SimpleNumberParams(params NumberParams) SimpleParams {
128 return SimpleParams{
129 caseExact: false,
130 description: params.Description,
131 multiValued: params.MultiValued,
132 mutability: params.Mutability.m,
133 name: params.Name,
134 required: params.Required,
135 returned: params.Returned.r,
136 typ: params.Type.t,
137 uniqueness: params.Uniqueness.u,
138 }
139}
140
141// SimpleReferenceParams converts given reference parameters to their corresponding simple parameters.
142func SimpleReferenceParams(params ReferenceParams) SimpleParams {

Callers 5

getSimpleParamsFunction · 0.92
TestValidatorDecimalFunction · 0.92
TestValidatorIntegerFunction · 0.92
schema_test.goFile · 0.85

Calls

no outgoing calls

Tested by 3

TestValidatorDecimalFunction · 0.74
TestValidatorIntegerFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…