-
Notifications
You must be signed in to change notification settings - Fork 330
Closed
Description
One aspect we are really battling with.
How to log line/column information to a user for a YAML document that passes schema validation, but then fails semantic checks on the content of the JSON node tree?
Maybe we're missing something obvious here - but so far we have a multi step process:
- Loading the YAML file/stream into JSON and then passing the loaded JSON tree to the factory for validation
- Application code for processing the validated Node tree
After step 1 we have effectively lost the original source file information, so if we detect any semantic errors we can't easily report them back to the user with line/col information against the original file.
I doubt this is feasible, but I'm wondering if there couldn't be an option to include meta information in the processed JSON Node tree such as the original source positions of various nodes, which would then allow such error reporting.
Metadata
Metadata
Assignees
Labels
No labels