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

Function get_xml_sample_schema

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

Source from the content-addressed store, hash-verified

37539 }
37540 return x.replace(/\t/g, ' ')
37541 },
37542 get_xml_sample_schema = (s) => (o, i, a) => {
37543 const { fn: u } = s()
37544 if ((o && !o.xml && (o.xml = {}), o && !o.xml.name)) {
37545 if (!o.$$ref && (o.type || o.items || o.properties || o.additionalProperties))
37546 return '<?xml version="1.0" encoding="UTF-8"?>\n\x3c!-- XML example cannot be generated; root element name is undefined --\x3e'
37547 if (o.$$ref) {
37548 let s = o.$$ref.match(/\S*\/(\S+)$/)
37549 o.xml.name = s[1]
37550 }
37551 }
37552 return u.memoizedCreateXMLExample(o, i, a)
37553 },
37554 get_sample_schema =
37555 (s) =>

Callers 1

json_schema_5_samplesFunction · 0.85

Calls 1

sFunction · 0.50

Tested by

no test coverage detected