MCPcopy Index your code
hub / github.com/dataease/SQLBot / resolveSchema$refField

Function resolveSchema$refField

frontend/public/swagger-ui-bundle.js:52906–52915  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

52904 }
52905 const ex = class JsonSchemaUriError extends Ko {}
52906 const tx = class EvaluationJsonSchemaUriError extends ex {},
52907 resolveSchema$refField = (s, o) => {
52908 if (void 0 === o.$ref) return
52909 const i = getHash(serializers_value(o.$ref)),
52910 a = serializers_value(o.meta.get('ancestorsSchemaIdentifiers')),
52911 u = Aa((s, o) => resolve(s, sanitize(stripHash(o))), s, [
52912 ...a,
52913 serializers_value(o.$ref),
52914 ])
52915 return `${u}${'#' === i ? '' : i}`
52916 },
52917 refractToSchemaElement = (s) => {
52918 if (refractToSchemaElement.cache.has(s)) return refractToSchemaElement.cache.get(s)

Callers 2

SchemaElementMethod · 0.85
SchemaElementMethod · 0.85

Calls 7

getHashFunction · 0.85
serializers_valueFunction · 0.85
resolveFunction · 0.85
stripHashFunction · 0.85
sanitizeFunction · 0.70
getMethod · 0.65
AaFunction · 0.50

Tested by

no test coverage detected