MCPcopy Index your code
hub / github.com/dataease/SQLBot / primitive

Function primitive

frontend/public/swagger-ui-bundle.js:37214–37219  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

37212 integer: () => 0,
37213 boolean: (s) => 'boolean' != typeof s.default || s.default,
37214 },
37215 primitive = (s) => {
37216 s = objectify(s)
37217 let { type: o, format: i } = s,
37218 a = fs[`${o}_${i}`] || fs[o]
37219 return isFunc(a) ? a(s) : 'Unknown Type: ' + s.type
37220 },
37221 sanitizeRef = (s) =>
37222 deeplyStripKey(s, '$$ref', (s) => 'string' == typeof s && s.indexOf('#') > -1),

Callers 1

sampleFromSchemaGenericFunction · 0.85

Calls 3

objectifyFunction · 0.85
isFuncFunction · 0.85
aFunction · 0.70

Tested by

no test coverage detected