class SchemaUtils {

  public static boolean isValidObject(Object object, Schema schema) {
    JsonNode jsonNode = BatfishObjectMapper.mapper().valueToTree(object);
    try {
      convertType(jsonNode, schema);
    } catch (ClassCastException e) {
      return false;
    }
    return true;
  }

  private  SchemaUtils();

}