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

Function getParameterSchema

frontend/public/swagger-ui-bundle.js:30945–30962  ·  view source on GitHub ↗
(s, { isOAS3: o } = {})

Source from the content-addressed store, hash-verified

30943 'multipleOf'
30944 )
30945 function getParameterSchema(s, { isOAS3: o } = {}) {
30946 if (!We().Map.isMap(s)) return { schema: We().Map(), parameterContentMediaType: null }
30947 if (!o)
30948 return 'body' === s.get('in')
30949 ? { schema: s.get('schema', We().Map()), parameterContentMediaType: null }
30950 : { schema: s.filter((s, o) => At.includes(o)), parameterContentMediaType: null }
30951 if (s.get('content')) {
30952 const o = s.get('content', We().Map({})).keySeq().first()
30953 return {
30954 schema: s.getIn(['content', o, 'schema'], We().Map()),
30955 parameterContentMediaType: o,
30956 }
30957 }
30958 return {
30959 schema: s.get('schema') ? s.get('schema', We().Map()) : We().Map(),
30960 parameterContentMediaType: null,
30961 }
30962 }
30963 var Ct = __webpack_require__(48287).Buffer
30964 const jt = 'default',
30965 isImmutable = (s) => We().Iterable.isIterable(s),

Callers 4

ParameterRowClass · 0.85
renderMethod · 0.85

Calls 5

getMethod · 0.65
WeFunction · 0.50
filterMethod · 0.45
includesMethod · 0.45
firstMethod · 0.45

Tested by

no test coverage detected