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

Function getDefaultRequestBodyValue

frontend/public/swagger-ui-bundle.js:69569–69576  ·  view source on GitHub ↗
(s, o, i, a)

Source from the content-addressed store, hash-verified

69567 )
69568 )
69569 },
69570 getDefaultRequestBodyValue = (s, o, i, a) => {
69571 const u = s.getIn(['content', o]) ?? (0, ze.OrderedMap)(),
69572 _ = u.get('schema', (0, ze.OrderedMap)()).toJS(),
69573 w = void 0 !== u.get('examples'),
69574 x = u.get('example'),
69575 C = w ? u.getIn(['examples', i, 'value']) : x
69576 return stringify(a.getSampleSchema(_, o, { includeWriteOnly: !0 }, C))
69577 },
69578 components_request_body = ({
69579 userHasEditedBody: s,

Callers 3

components_request_bodyFunction · 0.85

Calls 2

stringifyFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected