private static void validateSessionFields()

in spanner-data-validator-java/src/main/java/com/google/migration/dto/session/SessionFileReader.java [27:37]


  private static void validateSessionFields(JsonObject sessionJSON) {
    if (!sessionJSON.has("SpSchema")) {
      throw new IllegalArgumentException("Cannot find \"SpSchema\" field in session file.");
    }
    if (!sessionJSON.has("SrcSchema")) {
      throw new IllegalArgumentException("Cannot find \"SrcSchema\" field in session file.");
    }
    if (!sessionJSON.has("SyntheticPKeys")) {
      throw new IllegalArgumentException("Cannot find \"SyntheticPKeys\" field in session file.");
    }
  }