code: @Override
    public int run() throws IOException {
      Preconditions.checkArgument(samplePaths != null && !samplePaths.isEmpty(),
          "Sample JSON path is required");
      Preconditions.checkArgument(samplePaths.size() == 1,
          "Only one JSON sample can be given");
  
      // assume fields are nullable by default, users can easily change this
      Schema sampleSchema = JsonUtil.inferSchema(
          open(samplePaths.get(0)), recordName, numRecords);
  
      if (sampleSchema != null) {
        output(sampleSchema.toString(!minimize), console, outputPath);
        return 0;
      } else {
        console.error("Sample file did not contain any records");
        return 1;
      }
    }
docs: By default we look at first 10 records