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

Function hasExample

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

Source from the content-addressed store, hash-verified

74760 }
74761 ),
74762 PT = ['array', 'object', 'number', 'integer', 'string', 'boolean', 'null'],
74763 hasExample = (s) => {
74764 if (!isJSONSchemaObject(s)) return !1
74765 const { examples: o, example: i, default: a } = s
74766 return !!(Array.isArray(o) && o.length >= 1) || void 0 !== a || void 0 !== i
74767 },
74768 extractExample = (s) => {
74769 if (!isJSONSchemaObject(s)) return null

Callers 2

inferTypeFunction · 0.85

Calls 2

isJSONSchemaObjectFunction · 0.85
isArrayMethod · 0.45

Tested by

no test coverage detected