Parses each non-blank line as JSON and validates it, keeping line numbers. Throws a DecisionCorpusError naming the first line that is not JSON or does not match. Shared by the routing and discovery corpus readers.
The file's text.
The file's name, for messages.
Each line's schema.
Parses each non-blank line as JSON and validates it, keeping line numbers. Throws a DecisionCorpusError naming the first line that is not JSON or does not match. Shared by the routing and discovery corpus readers.