We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35f0721 commit 9a4193aCopy full SHA for 9a4193a
modules/swagger-compat-spec-parser/src/main/java/io/swagger/parser/SwaggerCompatConverter.java
@@ -265,6 +265,12 @@ public Property propertyFromTypedObject(ExtendedTypedObject obj) {
265
if("array".equals(type)) {
266
ArrayProperty am = new ArrayProperty();
267
Items items = obj.getItems();
268
+ if(items == null) {
269
+ System.out.println("Error! Missing array type for property! Assuming `object` -- please fix your spec");
270
+ Json.prettyPrint(obj);
271
+ items = new Items();
272
+ items.setType("object");
273
+ }
274
type = items.getType() == null ? null : items.getType().toString();
275
format = items.getFormat() == null ? null : items.getFormat().toString();
276
0 commit comments