class SchemaUtil {

  public static String getSchemaDefinitionString(Schema schema) {
    StringBuilder stringBuilder = new StringBuilder("[");
    boolean addComma = false;
    for (Field field : schema.fields()) {
      if (addComma) {
        stringBuilder.append(" , ");
      } else {
        addComma = true;
      }
      stringBuilder.append(field.name())
          .append(" : ")
          .append(field.schema().type());
    }
    stringBuilder.append("]");
    return stringBuilder.toString();
  }

}