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

Method parse

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

Source from the content-addressed store, hash-verified

52721 }
52722 return !1
52723 }
52724 async parse(s) {
52725 if (this.sourceMap)
52726 throw new jw(
52727 "yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option"
52728 )
52729 const o = new Au(),
52730 i = s.toString()
52731 try {
52732 const s = fn.load(i, { schema: rn })
52733 if (this.allowEmpty && void 0 === s) return o
52734 const a = transformers_from(s)
52735 return (a.classes.push('result'), o.push(a), o)
52736 } catch (o) {
52737 throw new jw(`Error parsing "${s.uri}"`, { cause: o })
52738 }
52739 }
52740 }
52741 const Vw = class OpenAPIJSON3_1Parser extends Pw {

Callers

nothing calls this directly

Calls 4

transformers_fromFunction · 0.85
toStringMethod · 0.45
loadMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected