Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2456

No way to get infoset result from parse, while outputing validation errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 3.0.0
    • 3.1.0
    • API
    • None

    Description

      In JAPI, there is no way to parse, get a result back, but also get validation errors back.

      Validation errors come through as diagnostics with isError true.

      Calling outputter.getResult() requires that isError is false.

      This prevents using validation errors like warnings.

      I want to accept "well formed" but "invalid" data, and skip past it to the next input message.

      I can't do that with the API like this.

      I think I need getResult() to succeed if the errors are only validation errors (or recoverable errors), and give me the infoset.

      We should also add a Diagnostic.isValidationError so that I can tell that a diagnostic is not a fatal error easily (currently one must call d.getMessage().contains("Validation Error") which is not a good API.

       

       

       

      Attachments

        Activity

          People

            mbeckerle Mike Beckerle
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m