public TestSummary validateFromCli() {
    Set<Path> pathsToWatch = ConcurrentHashMap.newKeySet();
    output.println();
    output.println("Validating...");
    output.println();
    BaseSchemaValidator.Result result;
    result = validate(pathsToWatch);
    int failed = 0;
    if (result != null) {

      int passed = 0;
      List<ExampleResult> failures = new ArrayList<>();
      for (var example : result.results) {
        if (example.ok()) {
          passed++;
          output.printf("%s %s%n", PASS_BADGE, example.example().name());
        } else {
          failed++;
          printFailure(example, output);
          failures.add(example);
        }
      }
      if (!failures.isEmpty()) {
        output.println();
        output.println("Summary of failures:");
        for (var failure : failures) {
          printFailure(failure, output);
        }
      }
      List<String> summary = new ArrayList<>();
      boolean none = (passed + failed) == 0;
      if (none || failed > 0) {
        summary.add(AnsiColors.redBold(failed + " failed"));
      }
      if (none || passed > 0) {
        summary.add(AnsiColors.greenBold(passed + " passed"));
      }
      if (none || passed > 0 && failed > 0) {
        summary.add((failed + passed) + " total");
      }
      output.println();
      output.println(String.join(", ", summary));
    }
    return new TestSummary(result, pathsToWatch);
  }
Verifies that a profile maps input elements map to expected output vector tile features as defined by a
{@link SchemaSpecification} instance.
planetiler-core/src/main/java/com/onthegomap/planetiler/validator/BaseSchemaValidator.java