Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Level ignored in Result via Java Api #127

Open
JannickWeisshaupt opened this issue Feb 5, 2024 · 1 comment
Open

Custom Level ignored in Result via Java Api #127

JannickWeisshaupt opened this issue Feb 5, 2024 · 1 comment

Comments

@JannickWeisshaupt
Copy link

Custom Levels for asserts in the scenario file, e.g.

<customLevel level="warning">BR-CL-23</customLevel>

are ignored in the de.kosit.validationtool.api.Result object, when accessed e.g. as

    for (SchematronOutput output : result.getSchematronResult())
    {
      for (FailedAssert failedAssert : output.getFailedAsserts())
      {
        String flag = failedAssert.getFlag();
        validationErrors.addAll(failedAssert.getText().getContent().stream()
            .filter(x -> x instanceof String)
            .map(x -> (String) x)
            .map(x -> x + " (Level: " + flag + ")")
            .collect(toList()));
      }
    }

BR-CL-23 would be listed as fatal here.

@fbuettner-hb
Copy link
Contributor

@JannickWeisshaupt I ran into a problem that might be related, see #129.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants