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

Function fn_get_xml_sample_schema

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

Source from the content-addressed store, hash-verified

75204 }
75205 return x.replace(/\t/g, ' ')
75206 },
75207 fn_get_xml_sample_schema = (s) => (o, i, a) => {
75208 const { fn: u } = s()
75209 if ((o && !o.xml && (o.xml = {}), o && !o.xml.name)) {
75210 if (!o.$$ref && (o.type || o.items || o.properties || o.additionalProperties))
75211 return '<?xml version="1.0" encoding="UTF-8"?>\n\x3c!-- XML example cannot be generated; root element name is undefined --\x3e'
75212 if (o.$$ref) {
75213 let s = o.$$ref.match(/\S*\/(\S+)$/)
75214 o.xml.name = s[1]
75215 }
75216 }
75217 return u.jsonSchema202012.memoizedCreateXMLExample(o, i, a)
75218 },
75219 fn_get_sample_schema =
75220 (s) =>

Callers 1

Calls 1

sFunction · 0.50

Tested by

no test coverage detected