Stop flagging documented field beneath option null field as missing

Closes gh-557
This commit is contained in:
Andy Wilkinson
2018-11-01 07:03:29 +00:00
parent eb03213e7a
commit e23c6b45d4
2 changed files with 10 additions and 1 deletions

View File

@@ -86,7 +86,7 @@ class JsonContentHandler implements ContentHandler {
}
ExtractedField extracted = this.fieldProcessor.extract(candidate.getPath(),
payload);
return isEmptyCollection(extracted.getValue());
return extracted.getValue() == null || isEmptyCollection(extracted.getValue());
}
private boolean isEmptyCollection(Object value) {