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

Method parse

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

Source from the content-addressed store, hash-verified

52808 }
52809 return !1
52810 }
52811 async parse(s) {
52812 if (this.sourceMap)
52813 throw new jw(
52814 "openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option"
52815 )
52816 const o = new Au(),
52817 i = s.toString()
52818 try {
52819 const s = fn.load(i, { schema: rn })
52820 if (this.allowEmpty && void 0 === s) return o
52821 const a = Ab.refract(s, this.refractorOpts)
52822 return (a.classes.push('result'), o.push(a), o)
52823 } catch (o) {
52824 throw new jw(`Error parsing "${s.uri}"`, { cause: o })
52825 }
52826 }
52827 }
52828 const Ww = _curry3(function propEq(s, o, i) {

Callers

nothing calls this directly

Calls 3

toStringMethod · 0.45
loadMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected