You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before version 2.0.0-SNAPSHOT.2 we used to have integration test data declared like shown below:
// A message with a value that has a malformed range.messageIllegalRanges {
doublevalue=1 [(range) = "{0.6..4.2}"];
}
// A malformed range expression, the range is not closed (as in the right edge is omitted).messageUpToInfinity {
int32value=1 [(range) = "[0.."];
}
// A malformed range expression, the range is unopened (as in the left edge is omitted).messageUnopened {
int32value=1 [(range) = "..2)"];
}
messageMinorCitizen {
// Malformed range - the value the field is `int32` - whole number,// while the value of the left range edge is a floating point number.int32age=1 [(range) = "(0..18.01)"];
}
messageConstitution {
// This should break the compilation because `repeated` is missing.stringamendments=1 [(distinct) = true];
}
messageConstitution {
// This should break the compilation because `repeated` is missing.stringamendments=1 [(distinct) = true];
}
It was under the smoke-tests/validation sub-project. This project had generation of validation code turned off.
Because of this tests pass. Turning validation on via the following code...
modelCompiler {
generateValidation = true
}
... rightfully breaks the compilation.
The problem is that it should break the compilation even if generation of the validation code is turned off, because we do not want to keep a malformed code. Delaying the discovery of compilation errors to a later date, when validation is wanted, is a bad idea.
The text was updated successfully, but these errors were encountered:
Before version
2.0.0-SNAPSHOT.2
we used to have integration test data declared like shown below:It was under the
smoke-tests/validation
sub-project. This project had generation of validation code turned off.Because of this tests pass. Turning validation on via the following code...
... rightfully breaks the compilation.
The problem is that it should break the compilation even if generation of the validation code is turned off, because we do not want to keep a malformed code. Delaying the discovery of compilation errors to a later date, when validation is wanted, is a bad idea.
The text was updated successfully, but these errors were encountered: