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

Function producesOptionsFor

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

Source from the content-addressed store, hash-verified

37812 u = i.getIn(['produces', 0], null)
37813 return a || u || 'application/json'
37814 }
37815 function producesOptionsFor(s, o) {
37816 o = o || []
37817 const i = Ns(s),
37818 a = i.getIn(['paths', ...o], null)
37819 if (null === a) return
37820 const [u] = o,
37821 _ = a.get('produces', null),
37822 w = i.getIn(['paths', u, 'produces'], null),
37823 x = i.getIn(['produces'], null)
37824 return _ || w || x
37825 }
37826 function consumesOptionsFor(s, o) {
37827 o = o || []

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
NsFunction · 0.50

Tested by

no test coverage detected