-
Notifications
You must be signed in to change notification settings - Fork 56
Description
Hi,
I’ve been working with the csv-validator-java-api and came across what seems to be a discrepancy between the documentation and the actual implementation (or perhaps I misunderstood the intended usage).
According to the documentation, the inner static class ValidatorBuilder can be instantiated directly, as in :
CsvValidator.ValidatorBuilder validateWithReaders = new CsvValidator.ValidatorBuilder(
csvReader, csvSchemaReader
);
However, after reviewing the implementation on GitHub, it appears that ValidatorBuilder is declared as package-private, which makes it inaccessible from outside its package.
Here’s the relevant section of the code:
CsvValidator.java
I have a few questions regarding the usage of the java api please :
1. Can the java api still be used ? or Is there an oversight in the documentation regarding the accessibility of ValidatorBuilder?
2. What’s the correct or intended way to initialize validation using csv-validator-java-api if ValidatorBuilder isn’t accessible?
3. Should the visibility of ValidatorBuilder perhaps be adjusted, or is there an alternative entry point recommended for validator creation?
Any insights or guidance would be greatly appreciated — thank you for your time and the great work on this project!
Best,
A