Skip to content

Commit

Permalink
multiplicity errors reduced to warnings
Browse files Browse the repository at this point in the history
vo-dml tools can deal with this now.
  • Loading branch information
pahjbo committed Nov 26, 2024
1 parent 528ead5 commit 5ce7cb7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class VodslValidator extends AbstractVodslValidator {
VodslPackage.Literals.MULTIPLICITY__MULTIPLICITY_SPEC)
}
case MANY: {
warning("multiplicity '*' not advised for reference"+typ.name+"\n see VO-DML spec 4.19",
error("multiplicity '*' not advised for reference"+typ.name+"\n see VO-DML spec 4.19",
VodslPackage.Literals.MULTIPLICITY__MULTIPLICITY_SPEC)

}
Expand Down Expand Up @@ -119,11 +119,11 @@ class VodslValidator extends AbstractVodslValidator {
if (mul.multiplicitySpec != null) {
switch mul.multiplicitySpec {
case ATLEASTONE: {
warning("multiplicity '+' strongly discouraged for attribute " + typ.name,
error("multiplicity '+' strongly discouraged for attribute " + typ.name,
VodslPackage.Literals.MULTIPLICITY__MULTIPLICITY_SPEC)
}
case MANY: {
warning("multiplicity '*' strongly discouraged for attribute " + typ.name,
error("multiplicity '*' strongly discouraged for attribute " + typ.name,
VodslPackage.Literals.MULTIPLICITY__MULTIPLICITY_SPEC)
}
case OPTIONAL: {
Expand Down

0 comments on commit 5ce7cb7

Please sign in to comment.