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

Function get_sample_schema

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

Source from the content-addressed store, hash-verified

37552 return u.memoizedCreateXMLExample(o, i, a)
37553 },
37554 get_sample_schema =
37555 (s) =>
37556 (o, i = '', a = {}, u = void 0) => {
37557 const { fn: _ } = s()
37558 return (
37559 'function' == typeof o?.toJS && (o = o.toJS()),
37560 'function' == typeof u?.toJS && (u = u.toJS()),
37561 /xml/.test(i)
37562 ? _.getXmlSampleSchema(o, a, u)
37563 : /(yaml|yml)/.test(i)
37564 ? _.getYamlSampleSchema(o, a, i, u)
37565 : _.getJsonSampleSchema(o, a, i, u)
37566 )
37567 },
37568 json_schema_5_samples = ({ getSystem: s }) => {
37569 const o = get_json_sample_schema(s),

Callers 1

json_schema_5_samplesFunction · 0.85

Calls 1

sFunction · 0.50

Tested by

no test coverage detected