import_swagger - process array schema with example
Previously the importer would fail when processing
a schema for an array that had a defined example. This
kind of input is a valid swagger document. Instead of
failing, simply ignore the example.
@@ -114,7 +114,7 @@ def parse_typespec(tspec):
descr = tspec.pop('description', None)
if typ == 'array':
- assert not (set(tspec.keys()) - {'type', 'items'}), tspec
+ assert not (set(tspec.keys()) - {'type', 'items', 'example'}), tspec
# skip invalid type
if '$ref' in tspec['items'] and 'type' in tspec['items']:
