mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
Correct the behavior of adding schematron validation.
During the build, the schematron validation will be added when a schematron is provided in the schematron builder. To ensure the Transformation has been added to the list, the field schematronValidations should be set. Simply return an empty list will in the end ignore the provided schematron.
This commit is contained in:
parent
71a705c39d
commit
e5507b6a15
1 changed files with 4 additions and 1 deletions
|
|
@ -80,7 +80,10 @@ public class Scenario {
|
||||||
private Transformation reportTransformation;
|
private Transformation reportTransformation;
|
||||||
|
|
||||||
public List<Transformation> getSchematronValidations() {
|
public List<Transformation> getSchematronValidations() {
|
||||||
return this.schematronValidations == null ? new ArrayList<>() : this.schematronValidations;
|
if (this.schematronValidations == null) {
|
||||||
|
this.schematronValidations = new ArrayList<>();
|
||||||
|
}
|
||||||
|
return this.schematronValidations;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue