@Test public void smallestNested() throws InvalidKeyPathException { Path path = KeyPathParser.parse("$[\"a\"]"); Schema schema = SchemaBuilder .record("X") .fields() .name("a") .type(Schema.create(Type.STRING)) .noDefault() .endRecord(); new KeyPathValidator(path, schema).validate(); }
public void validate() throws InvalidKeyPathException { List<Element> elements = path.elements(); validateElement(elements, rootSchema, elements.get(0).toString()); }
KeyPathValidator { public void validate() throws InvalidKeyPathException { List<Element> elements = path.elements(); validateElement(elements, rootSchema, elements.get(0).toString()); } }
KeyPathValidator { public void validate() throws InvalidKeyPathException { List<Element> elements = path.elements(); validateElement(elements, rootSchema, elements.get(0).toString()); } KeyPathValidator(Path path, Schema schema); }
KeyPathValidator { public void validate() throws InvalidKeyPathException { List<Element> elements = path.elements(); validateElement(elements, rootSchema, elements.get(0).toString()); } KeyPathValidator(Path path, Schema schema); void validate(); }
KeyPathValidator { public void validate() throws InvalidKeyPathException { List<Element> elements = path.elements(); validateElement(elements, rootSchema, elements.get(0).toString()); } KeyPathValidator(Path path, Schema schema); void validate();  }