-
Notifications
You must be signed in to change notification settings - Fork 11
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
Validate does not accurately check for missing_constant values #690
Comments
When I run it with code on main get different errors (below) but non of min/max errors because of fix #669
|
The error message might be different but it's saying the same thing. The missing_constant value is a negative number and the listed valid_minimum is zero. Validate is going by the valid_minimum and saying that the negative sign is automatically an error without checking for the missing_constant value. |
It is not the same error nor the same cause. I do not understand PDS all that well and do not see where anything is declared a unsigned or positive but there is a check happening that is declaring the '-' sign as an illegal character. Is it possible that there is a positive/unsigned declaration that also applies to special constants? I can trace what validate is programmed to be "right" but it may not match the intent of the PDS documentation. |
Error as reported from Validate 3.2.0: Error as reported from Validate 3.3.0-SNAPSHOT: If you are not seeing that that is the same error, then I suggest that you have a private chat with Jordan and/or myself so that we can educate you about how this section of the label is to be interpreted. |
They are not the same. The first was a problem of testing min/max special constants despite being found as a previous special constant - well more specifically because the special constant was not being tested correctly. The bad sign, as it turns out, is because this particular way to express the special constant was not handled causing an exception to draw it to my attention to add the correct handling. Not the same error but they are the same in that they are erroneous to correct processing and required expansion with better examples. Fix is pending now that I have an example to write the correct handler. Thank you for the example. |
Checked for duplicates
No - I haven't checked
🐛 Describe the bug
The Missing_Constants class in the attached label seems to be formed correctly and matches the values in the attached file.
(Label and data file in tar-gz.) Validate is throwing the errors seen in the attached validation report.
constants.tar.gz
constants.txt
🕵️ Expected behavior
I expected [...]
📜 To Reproduce
...
🖥 Environment Info
...
📚 Version of Software Used
Validate-3.2.0
🩺 Test Data / Additional context
No response
🦄 Related requirements
🦄 #xyz
⚙️ Engineering Details
No response
The text was updated successfully, but these errors were encountered: