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

Function handleMinMaxItems

frontend/public/swagger-ui-bundle.js:37319–37325  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

37317 : schemaHasAny(ys)
37318 ? ((j = 'number'), (s.type = 'number'))
37319 : u || s.enum || ((j = 'string'), (s.type = 'string')))
37320 const handleMinMaxItems = (o) => {
37321 if ((null != s?.maxItems && (o = o.slice(0, s?.maxItems)), null != s?.minItems)) {
37322 let i = 0
37323 for (; o.length < s?.minItems; ) o.push(o[i++ % o.length])
37324 }
37325 return o
37326 },
37327 ce = objectify(B)
37328 let le,

Callers 1

sampleFromSchemaGenericFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected