src/edu/stanford/nlp/sempre/interactive/JsonSchema.java
public String type() {
    if (!node.has("type")) {
      throw new RuntimeException("No 'type'.");
    }
    String type = node.get("type").asText();
    if (this.isEnum()) {
      type = "enum";
    } else if (type.equals("array")) {
      List<JsonSchema> items = schemas("items");
      assert(items.size() == 1);
      String innerType = items.get(0).type();
      type = String.format("array<%s>", innerType);
    } else if (type.equals("object")) {
      return objectName();
    }

    return type;
  }
/**
   * says enum, the kind of object, and what array we have
   * @return
   */
says enum, the kind of object, and what array we have
@return
says enum the kind of object and what array we have @return
public String type() {
    if (!node.has("type")) {
      throw new RuntimeException("No 'type'.");
    }
    String type = node.get("type").asText();
    if (this.isEnum()) {
      type = "enum";
    } else if (type.equals("array")) {
      List<JsonSchema> items = schemas("items");
      assert(items.size() == 1);
      String innerType = items.get(0).type();
      type = String.format("array<%s>", innerType);
    } else if (type.equals("object")) {
      return objectName();
    }
    return type;
  }
public String type ( ) { if ( ! node . has ( "type" ) ) { throw new RuntimeException ( "No 'type'." ) ; } String type = node . get ( "type" ) . asText ( ) ; if ( this . isEnum ( ) ) { type = "enum" ; } else if ( type . equals ( "array" ) ) { List < JsonSchema > items = schemas ( "items" ) ; assert ( items . size ( ) == 1 ) ; String innerType = items . get ( 0 ) . type ( ) ; type = String . format ( "array<%s>" , innerType ) ; } else if ( type . equals ( "object" ) ) { return objectName ( ) ; } return type ; }
says enum, the kind of object, and what array we have
 @return
says enum the kind of object and what array we have @return