| 295 | raise validation.ValidationError(index, six.text_type(e)) |
| 296 | |
| 297 | def read(self): |
| 298 | item_type = self.spec.get("items", {}).get("type", "string") |
| 299 | |
| 300 | if item_type not in ["string", "integer", "number", "boolean"]: |
| 301 | message = ( |
| 302 | "Interactive mode does not support arrays of %s type yet" % item_type |
| 303 | ) |
| 304 | raise ReaderNotImplemented(message) |
| 305 | |
| 306 | result = super(ArrayReader, self).read() |
| 307 | |
| 308 | return result |
| 309 | |
| 310 | def _construct_template(self): |
| 311 | self.template = "{0} (comma-separated list)" |