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

Function parameter_builders_path

frontend/public/swagger-ui-bundle.js:55831–55855  ·  view source on GitHub ↗
({ req: s, value: o, parameter: i, baseURL: a })

Source from the content-addressed store, hash-verified

55829 o
55830 )
55831 )
55832 function parameter_builders_path({ req: s, value: o, parameter: i, baseURL: a }) {
55833 const { name: u, style: _, explode: w, content: x } = i
55834 if (void 0 === o) return
55835 const C = s.url.replace(a, '')
55836 let j
55837 if (x) {
55838 const s = Object.keys(x)[0]
55839 j = es_resolve(C, { [u]: o }, { encoder: (o) => encodeCharacters(serialize(o, s)) })
55840 } else
55841 j = es_resolve(
55842 C,
55843 { [u]: o },
55844 {
55845 encoder: (s) =>
55846 stylize({
55847 key: i.name,
55848 value: s,
55849 style: _ || 'simple',
55850 explode: null != w && w,
55851 escape: 'reserved',
55852 }),
55853 }
55854 )
55855 s.url = a + j
55856 }
55857 function query({ req: s, value: o, parameter: i }) {
55858 if (((s.query = s.query || {}), void 0 !== o && i.content)) {

Callers

nothing calls this directly

Calls 6

es_resolveFunction · 0.85
encodeCharactersFunction · 0.85
serializeFunction · 0.85
stylizeFunction · 0.85
replaceMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected