Add "skip_serializing" attribute

If it is present on a field, that field should not be included in the output
If both "skip_serializing" and "skip_serializing_if" are present,
"skip_serializing" should take precedent.
This commit is contained in:
Amy Keibler
2022-01-06 11:26:32 -05:00
parent 19b51168c9
commit 14dcfc43d7
5 changed files with 48 additions and 4 deletions

View File

@@ -32,6 +32,7 @@ This library will support XML de/ser-ializing with all specific features.
- [x] **namespace**: defines the namespace of the field
- [x] **rename**: be able to rename a field
- [x] **root**: rename the based element. Used only at the XML root.
- [x] **skip_serializing**: Exclude this field from the serialized output
- [x] **skip_serializing_if**: Skip the serialisation for this field if the condition is true
- [x] **text**: this field match to the text content