Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0
-
Fix Version/s: 1.2
-
Component/s: modello-plugin-xpp3
-
Labels:None
-
Complexity:Intermediate
Description
For fields with xml.attribute="true" the generated parser does not throw a validation error when a required attribute is missing nor when an unknown attribute is present. Run "mvn test" on the attached demo project for an illustration.
Issue Links
- is related to
-
MODELLO-227
Strict mode does not detect problems when data fields are encoded as XML attributes
-
-
MODELLO-44
Modello XPP3 Reader does not honor <required>true</required> in model.
-
- relates to
-
MODELLO-225
"required" field descriptor not honoured
-
I just made strict parsing fail for invalid attributes in r1326
for required attributes, the problem is wider than attributes: I just had a look and discovered that nothing was done with required fields in any plugin, either elements or attributes, then opened MODELLO-225 to track this issue