Problems problems,
CompositeValidator validators ) {
Document properties = parent.getDocument("properties");
Set<String> propertiesWithSchemas = new HashSet<String>();
if (properties != null && properties.size() != 0) {
for (Field field : properties.fields()) {
String name = field.getName();
Object value = field.getValue();
Path path = Paths.path(parentPath, "properties", name);
if (!(value instanceof Document)) {
problems.recordError(path, "Expected a nested object");