MCPcopy Create free account
hub / github.com/dataease/SQLBot / fn_get_sample_schema

Function fn_get_sample_schema

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

Source from the content-addressed store, hash-verified

75217 return u.jsonSchema202012.memoizedCreateXMLExample(o, i, a)
75218 },
75219 fn_get_sample_schema =
75220 (s) =>
75221 (o, i = '', a = {}, u = void 0) => {
75222 const { fn: _ } = s()
75223 return (
75224 'function' == typeof o?.toJS && (o = o.toJS()),
75225 'function' == typeof u?.toJS && (u = u.toJS()),
75226 /xml/.test(i)
75227 ? _.jsonSchema202012.getXmlSampleSchema(o, a, u)
75228 : /(yaml|yml)/.test(i)
75229 ? _.jsonSchema202012.getYamlSampleSchema(o, a, i, u)
75230 : _.jsonSchema202012.getJsonSampleSchema(o, a, i, u)
75231 )
75232 },
75233 json_schema_2020_12_samples = ({ getSystem: s }) => {
75234 const o = fn_get_json_sample_schema(s),

Callers 1

Calls 1

sFunction · 0.50

Tested by

no test coverage detected