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

Function canAddProperty

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

Source from the content-addressed store, hash-verified

37332 null !== s.maxProperties &&
37333 void 0 !== s.maxProperties &&
37334 pe >= s.maxProperties,
37335 canAddProperty = (o) =>
37336 !s ||
37337 null === s.maxProperties ||
37338 void 0 === s.maxProperties ||
37339 (!hasExceededMaxProperties() &&
37340 (!((o) => !(s && s.required && s.required.length && s.required.includes(o)))(o) ||
37341 s.maxProperties -
37342 pe -
37343 (() => {
37344 if (!s || !s.required) return 0
37345 let o = 0
37346 return (
37347 a
37348 ? s.required.forEach((s) => (o += void 0 === ae[s] ? 0 : 1))
37349 : s.required.forEach(
37350 (s) => (o += void 0 === ae[Y]?.find((o) => void 0 !== o[s]) ? 0 : 1)
37351 ),
37352 s.required.length - o
37353 )
37354 })() >
37355 0))
37356 if (
37357 ((le = a

Callers 2

sampleFromSchemaGenericFunction · 0.85

Calls 5

hasExceededMaxPropertiesFunction · 0.85
includesMethod · 0.45
forEachMethod · 0.45
findMethod · 0.45
isArrayMethod · 0.45

Tested by

no test coverage detected