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

Function uri_evaluate

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

Source from the content-addressed store, hash-verified

52922 refractToSchemaElement.cache = new WeakMap()
52923 const maybeRefractToSchemaElement = (s) =>
52924 isPrimitiveElement(s) ? refractToSchemaElement(s) : s,
52925 uri_evaluate = (s, o) => {
52926 const { cache: i } = uri_evaluate,
52927 a = stripHash(s),
52928 isSchemaElementWith$id = (s) => uE(s) && void 0 !== s.$id
52929 if (!i.has(o)) {
52930 const s = traversal_filter(isSchemaElementWith$id, o)
52931 i.set(o, Array.from(s))
52932 }
52933 const u = i.get(o).find((s) => {
52934 const o = ((s, o) => {
52935 if (void 0 === o.$id) return
52936 const i = serializers_value(o.meta.get('ancestorsSchemaIdentifiers'))
52937 return Aa((s, o) => resolve(s, sanitize(stripHash(o))), s, i)
52938 })(a, s)
52939 return o === a
52940 })
52941 if (bc(u)) throw new tx(`Evaluation failed on URI: "${s}"`)
52942 return isAnchor(uriToAnchor(s))
52943 ? $anchor_evaluate(uriToAnchor(s), u)
52944 : apidom_evaluate(u, fromURIReference(s))
52945 }
52946 uri_evaluate.cache = new WeakMap()
52947 const rx = class MaximumDereferenceDepthError extends Ow {}

Callers 2

SchemaElementMethod · 0.85
SchemaElementMethod · 0.85

Calls 15

stripHashFunction · 0.85
traversal_filterFunction · 0.85
serializers_valueFunction · 0.85
resolveFunction · 0.85
isAnchorFunction · 0.85
uriToAnchorFunction · 0.85
$anchor_evaluateFunction · 0.85
apidom_evaluateFunction · 0.85
fromURIReferenceFunction · 0.85
sanitizeFunction · 0.70
getMethod · 0.65
AaFunction · 0.50

Tested by

no test coverage detected