simple-binary-encoding icon indicating copy to clipboard operation
simple-binary-encoding copied to clipboard

[Java/C++/C#] Fix a bug in overzealous DTO validation

Open ZachBray opened this issue 7 months ago • 0 comments

Previously, in Java, the generated validation methods would not permit the null value, even for fields with optional presence. Now, we do allow these correctly.

In this change, I've also attempted to clean up, centralise, and test the logic that decides when validation for a particular side of a range needs to be included. We omit the validation when the native type cannot represent values outside of the range.

There are still some gaps around validation, e.g., we do not validate array values.

ZachBray avatar Jun 17 '25 17:06 ZachBray