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

Function currentProducesFor

frontend/public/swagger-ui-bundle.js:37806–37813  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

37804 : void 0
37805 return (0, ze.fromJS)({ requestContentType: w, responseContentType: u })
37806 }
37807 function currentProducesFor(s, o) {
37808 o = o || []
37809 const i = Ns(s).getIn(['paths', ...o], null)
37810 if (null === i) return
37811 const a = s.getIn(['meta', 'paths', ...o, 'produces_value'], null),
37812 u = i.getIn(['produces', 0], null)
37813 return a || u || 'application/json'
37814 }
37815 function producesOptionsFor(s, o) {
37816 o = o || []

Callers 1

contentTypeValuesFunction · 0.85

Calls 1

NsFunction · 0.50

Tested by

no test coverage detected