jsonmapper icon indicating copy to clipboard operation
jsonmapper copied to clipboard

Fixed bStrictObjectTypeChecking not enforced for array elements

Open dktapps opened this issue 1 year ago • 0 comments

this created some security issues in my projects.

Might be worth having createInstance() check if the object in question has any @required properties. In the second case, the model's @required properties wouldn't be populated, but no error would be thrown. This makes it a requirement to use bStrictObjectTypeChecking in any security-conscious situation, but it wasn't considered at all in the case of arrays.

dktapps avatar Feb 20 '24 13:02 dktapps