MCPcopy Create free account
hub / github.com/dataease/SQLBot / sanitizeRef

Function sanitizeRef

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

Source from the content-addressed store, hash-verified

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),
37223 ms = ['maxProperties', 'minProperties'],
37224 gs = ['minItems', 'maxItems'],

Callers 1

sampleFromSchemaGenericFunction · 0.85

Calls 1

deeplyStripKeyFunction · 0.85

Tested by

no test coverage detected