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

Function consumesOptionsFor

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

Source from the content-addressed store, hash-verified

37823 x = i.getIn(['produces'], null)
37824 return _ || w || x
37825 }
37826 function consumesOptionsFor(s, o) {
37827 o = o || []
37828 const i = Ns(s),
37829 a = i.getIn(['paths', ...o], null)
37830 if (null === a) return
37831 const [u] = o,
37832 _ = a.get('consumes', null),
37833 w = i.getIn(['paths', u, 'consumes'], null),
37834 x = i.getIn(['consumes'], null)
37835 return _ || w || x
37836 }
37837 const operationScheme = (s, o, i) => {
37838 let a = s.get('url').match(/^([a-z][a-z0-9+\-.]*):/),

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
NsFunction · 0.50

Tested by

no test coverage detected