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

Method convertKeyToRefract

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

Source from the content-addressed store, hash-verified

26272 )
26273 }
26274 convertKeyToRefract(s, o) {
26275 return this.shouldRefract(o)
26276 ? this.serialise(o)
26277 : 'enum' === o.element
26278 ? this.serialiseEnum(o)
26279 : 'array' === o.element
26280 ? o.map((o) =>
26281 this.shouldRefract(o) || 'default' === s
26282 ? this.serialise(o)
26283 : 'array' === o.element || 'object' === o.element || 'enum' === o.element
26284 ? o.children.map((s) => this.serialise(s))
26285 : o.toValue()
26286 )
26287 : 'object' === o.element
26288 ? (o.content || []).map(this.serialise, this)
26289 : o.toValue()
26290 }
26291 serialiseEnum(s) {
26292 return s.children.map((s) => this.serialise(s))
26293 }

Callers 1

serialiseObjectMethod · 0.95

Calls 5

shouldRefractMethod · 0.95
serialiseMethod · 0.95
serialiseEnumMethod · 0.95
mapMethod · 0.45
toValueMethod · 0.45

Tested by

no test coverage detected