MCPcopy Index your code
hub / github.com/json-editor/json-editor / getItemSchema

Method getItemSchema

src/editors/array.js:182–198  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

180 }
181
182 getItemSchema (i) {
183 if (Array.isArray(this.schema.items)) {
184 if (i >= this.schema.items.length) {
185 if (this.schema.additionalItems === true) {
186 return {}
187 } else if (this.schema.additionalItems) {
188 return extend({}, this.schema.additionalItems)
189 }
190 } else {
191 return extend({}, this.schema.items[i])
192 }
193 } else if (this.schema.items) {
194 return extend({}, this.schema.items)
195 } else {
196 return {}
197 }
198 }
199
200 getItemInfo (i) {
201 let schema = this.getItemSchema(i)

Callers 2

getItemInfoMethod · 0.95
getElementEditorMethod · 0.95

Calls 1

extendFunction · 0.90

Tested by

no test coverage detected