[ 
https://issues.apache.org/jira/browse/DAFFODIL-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Beckerle resolved DAFFODIL-2456.
-------------------------------------
    Resolution: Cannot Reproduce

Test added that verifies this problem does not occur

in 1ac990c8a299a8a5ecc0ae3ead5e3e5e0e25b967

Test is {color:#00627a}testInvalidNoInfoset in the daffodil-japi module. 
{color}

> No way to get infoset result from parse, while outputing validation errors
> --------------------------------------------------------------------------
>
>                 Key: DAFFODIL-2456
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2456
>             Project: Daffodil
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 3.0.0
>            Reporter: Mike Beckerle
>            Assignee: Mike Beckerle
>            Priority: Critical
>             Fix For: 3.1.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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.
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to