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

Method parse

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

Source from the content-addressed store, hash-verified

52686 }
52687 return !1
52688 }
52689 async parse(s) {
52690 if (this.sourceMap)
52691 throw new jw("json-swagger-client parser plugin doesn't support sourceMaps option")
52692 const o = new Au(),
52693 i = s.toString()
52694 if (this.allowEmpty && '' === i.trim()) return o
52695 try {
52696 const s = transformers_from(JSON.parse(i))
52697 return (s.classes.push('result'), o.push(s), o)
52698 } catch (o) {
52699 throw new jw(`Error parsing "${s.uri}"`, { cause: o })
52700 }
52701 }
52702 }
52703 const Uw = class YAMLParser extends Pw {

Callers 15

validateValueBySchemaFunction · 0.45
authorizeRequestFunction · 0.45
loadedFunction · 0.45
sampleFromSchemaGenericFunction · 0.45
_deepCloneFunction · 0.45
serializeResponseFunction · 0.45
es_parseFunction · 0.45
array_indexFunction · 0.45
array_dashFunction · 0.45
transformers_fromFunction · 0.45
canParseMethod · 0.45

Calls 3

transformers_fromFunction · 0.85
toStringMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected