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

Method composeJsonSchema

frontend/public/swagger-ui-bundle.js:61731–61736  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

61729 const { param: s } = this.props
61730 return s ? `${s.get('name')}-${s.get('in')}` : null
61731 }
61732 composeJsonSchema(s) {
61733 const { fn: o } = this.props,
61734 i = s.get('oneOf')?.get(0)?.toJS(),
61735 a = s.get('anyOf')?.get(0)?.toJS()
61736 return (0, ze.fromJS)(o.mergeJsonSchema(s.toJS(), i ?? a ?? {}))
61737 }
61738 render() {
61739 let {

Callers 2

ParameterRowClass · 0.95
renderMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected