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

Class ItemsVisitor

frontend/public/swagger-ui-bundle.js:46136–46158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46134 }
46135 const $d = JSONSchemaVisitor,
46136 isJSONReferenceLikeElement = (s) => Nu(s) && s.hasKey('$ref')
46137 class ItemsVisitor extends Mixin(Nd, Rd, yd) {
46138 ObjectElement(s) {
46139 const o = isJSONReferenceLikeElement(s)
46140 ? ['document', 'objects', 'JSONReference']
46141 : ['document', 'objects', 'JSONSchema']
46142 return ((this.element = this.toRefractedElement(o, s)), qu)
46143 }
46144 ArrayElement(s) {
46145 return (
46146 (this.element = new Su.wE()),
46147 this.element.classes.push('json-schema-items'),
46148 s.forEach((s) => {
46149 const o = isJSONReferenceLikeElement(s)
46150 ? ['document', 'objects', 'JSONReference']
46151 : ['document', 'objects', 'JSONSchema'],
46152 i = this.toRefractedElement(o, s)
46153 this.element.push(i)
46154 }),
46155 this.copyMetaAndAttributes(s, this.element),
46156 qu
46157 )
46158 }
46159 }
46160 const Ud = ItemsVisitor
46161 const Vd = class RequiredVisitor extends yd {

Callers

nothing calls this directly

Calls 1

MixinFunction · 0.85

Tested by

no test coverage detected