(i)
| 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) |
no test coverage detected