Commit Graph

202 Commits

Author SHA1 Message Date
jeangab
15fb7978a9 wip: Messing with deserializer to understand how it works and skip properly 2024-10-15 17:40:27 -04:00
Jean-Gabriel Gill-Couture
353558737f wip: Strict deserialization returns error on any unknown xml field or attribute 2024-10-14 15:03:34 -04:00
Marc-Antoine Arnaud
5cd09186fa chore: Release 2024-09-16 18:46:12 +02:00
limingyi
890fdb5629 fix: fix nesting struct parsing bug
issue #192

Signed-off-by: limingyi <lessu@163.com>
2024-09-16 18:40:59 +02:00
Marc-Antoine Arnaud
e783c29c47 chore: Release 2024-08-31 17:01:30 +02:00
Marc-Antoine Arnaud
b89a55632b feat: update heck to 0.5 2024-08-31 17:00:49 +02:00
Marc-Antoine Arnaud
a067b85ee2 feat: handle same field name but different namespace
issue #186
2024-08-31 16:54:53 +02:00
Marc-Antoine Arnaud
3e416bedcc chore: Release 2024-06-05 08:09:14 +02:00
huangjf
58d81c7a87 feat: support generic 2024-06-05 08:07:07 +02:00
yoann beaugnon
f8eb0cd2a3 add support for serialization of enum tagged internally via an attribute 2024-04-29 20:36:14 +02:00
yoann beaugnon
0b8a7968f1 Add a derive attribute for deserialization of enum internally tagged via an attribute 2024-04-29 19:46:25 +02:00
Marc-Antoine Arnaud
f5cb114a71 refactor: use unwrap_or to simplify code 2024-02-06 21:36:58 +01:00
marcelbuesing
ce055249ce
Add struct name to required field error 2024-02-06 20:19:04 +01:00
Marc-Antoine Arnaud
85e0150d1e chore: Release 2024-02-06 00:47:14 +01:00
Marc-Antoine Arnaud
82df2e15b9 feat!: remove requirement to Default
issue #175 #144
2024-02-06 00:36:58 +01:00
Marc-Antoine Arnaud
3413e98710 chore: Release 2024-02-03 15:02:18 +01:00
Marc-Antoine Arnaud
9c2d04b0af fix: support attribute and field with same name 2024-02-03 08:13:39 +01:00
Marc-Antoine Arnaud
0578b73c8a refactor: fix fmt and clippy based on contributions 2024-01-03 17:44:53 +01:00
Marc-Antoine ARNAUD
6f434c84cd
Merge pull request #169 from jondo2010/fix_field_from_pathsegment
Make `From<PathSegment> for Field` handle a corner case
2024-01-03 17:42:04 +01:00
Marc-Antoine Arnaud
04396aafb2 refactor: fix fmt and clippy 2024-01-03 17:38:52 +01:00
John Hughes
99a7323745 Make From<PathSegment> for Field handle a corner case 2024-01-02 23:01:37 +01:00
Marc-Antoine Arnaud
4b8b3e0430 chore: Release 2023-12-31 13:42:11 +01:00
John Hughes
9c5b993c84 Support deserializing xst xs:list attributes as Vec types. 2023-12-23 21:47:40 +01:00
Marc-Antoine Arnaud
40dcff31e7 chore: Release 2023-12-19 22:41:21 +01:00
Marc-Antoine Arnaud
a9b7aa2546 refactor: improve code based on clippy 2023-12-19 22:17:30 +01:00
Marc-Antoine Arnaud
568de4e1f0 refactor: format code using cargo fmt 2023-12-19 22:03:15 +01:00
Luca Benini
ee04c928a4 Evaluate serialization conditions also for Struct, Vec and Enum 2022-12-28 10:42:43 +01:00
lifichi
37b0ae263b
fix: break from the loop after matching enum variant 2022-08-14 23:04:02 +02:00
TheSchemm
2f8e87cd88 Basic support for enum attribute serialization 2022-05-04 20:36:59 -05:00
Marc-Antoine Arnaud
a0afd7c34f (cargo-release) version 0.8.0 2022-03-25 10:11:26 +01:00
Marc-Antoine ARNAUD
4444d3f507
Merge pull request #133 from amy-keibler/131-skip-serializing
Add "skip_serializing" attribute
2022-03-25 10:06:14 +01:00
Marc-Antoine ARNAUD
71432d1e9b
Merge pull request #134 from ephraimkunz/clippy-warnings-and-build
Fix clippy warnings and build with heck 0.4
2022-03-25 10:04:53 +01:00
Ephraim Kunz
c4d4828c56 Fix unwrap being hit in macro when malicious input is given 2022-01-14 12:50:05 -08:00
Ephraim Kunz
7148ec67c5 Fix clippy warnings and build with heck 0.4 2022-01-07 08:39:25 -08:00
Amy Keibler
14dcfc43d7 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.
2022-01-06 11:26:32 -05:00
Marc-Antoine ARNAUD
19b51168c9
Merge pull request #130 from media-io/dependabot/cargo/heck-0.4.0
Update heck requirement from 0.3.1 to 0.4.0
2021-12-16 16:31:59 +01:00
dependabot[bot]
2e3563f50c
Update heck requirement from 0.3.1 to 0.4.0
Updates the requirements on [heck](https://github.com/withoutboats/heck) to permit the latest version.
- [Release notes](https://github.com/withoutboats/heck/releases)
- [Changelog](https://github.com/withoutboats/heck/blob/master/CHANGELOG.md)
- [Commits](https://github.com/withoutboats/heck/commits)

---
updated-dependencies:
- dependency-name: heck
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 06:05:32 +00:00
Tom Dohrmann
5141abaf85 don't match nested end tags with the same name 2021-12-06 17:21:26 +01:00
Tom Dohrmann
d469128a48 don't corrupt the unused buffer when reading child 2021-12-06 17:19:39 +01:00
Marc-Antoine ARNAUD
31440a76a5
Merge pull request #120 from Felerius/derive-log-targets
Use "yaserde_derive" as the log target for generated logging calls
2021-12-01 17:10:11 +01:00
Alexander Galibey
c7e68694cd Handle default ns prefix 2021-09-12 20:34:11 +03:00
David Stangl
ae0a310d1f Hide re-exported xml and log crates from docs 2021-07-24 12:10:41 +02:00
David Stangl
f845c0dfd1 Use custom target for derive-generated log calls 2021-07-24 12:06:31 +02:00
Marc-Antoine Arnaud
01246c1f6e bump to 0.7.1 2021-07-06 15:49:16 +02:00
Oscar Beaumont
979ea4c23d removed need for xml-rs and log in projects using yaserde 2021-06-29 02:45:30 +08:00
Marc-Antoine Arnaud
1ff9ae3323 bump to 0.7.0 2021-05-31 11:40:36 +02:00
Marc-Antoine ARNAUD
29261a3590
Merge pull request #108 from olvyko/add-skip-ser-if
Add skip_serializing_if support for attributes
2021-05-31 10:45:35 +02:00
Marc-Antoine Arnaud
1fb21c2bf6 minor updates regarding clippy analysis 2021-05-31 08:27:43 +02:00
Marc-Antoine ARNAUD
a8ef1358a9
Merge pull request #112 from ephraimkunz/same-child-name
Fix bug where nested structs with the same element names don't deserialize properly.
2021-05-30 19:28:58 +02:00
Ephraim Kunz
72d61e03f4 Fix bug where nested structs with the same element names didn't deserialzie properly. 2021-05-05 07:34:38 -07:00