ITxPT / DATA4PTTools

Shared space for the development of the DATA4PT Greenlight NeTEx validation tool(s)
MIT License
10 stars 2 forks source link

For an error, a matching linenumber must be available #2

Closed skinkie closed 1 year ago

skinkie commented 2 years ago

This report is not enough. You cannot use this for presentation purposes.

  {
    "name": "journey-pattern-timings",
    "description": "Make sure that every StopPointInJourneyPattern contains a arrival/departure time and that every ScheduledStopPointRef exist",
    "valid": false,
    "error_count": 2728,
    "errors": [
      {
        "message": "Missing ScheduledStopPoint(@id=TECBrabantWallon:ScheduledStopPoint:LBkcare*)",
        "type": "consistency"
      }
    ]
  }
ollelar commented 2 years ago

@skinkie, what else do you want? Line number and column?

skinkie commented 2 years ago

Line and column would make sense. A presentation tool must be able to show a snippet of the failing XML, but that is outside the realm of the validator.

lekotros commented 2 years ago

While some progress has been made in #15 we are still looking to add a snippet of XML to the report and GUI

pkvarnfors commented 1 year ago

A more detailed description is now available for each error, including line number.