Skip to content

Conversation

demoray
Copy link
Contributor

@demoray demoray commented Sep 15, 2023

This PR demonstrates the results of regenerating all of the crates after #1381 and #1383 are merged.

It probably should only be looked at for the generated results, as it's rather busy otherwise.

This addresses a handful of XML parsing issues in generated crates.
1. Deserializing enum variants with the value being a string content (such as `<field>Value</field>`) needs a serde helper.
2. Deserializing attribute values (such as `<a b="foo"/>`) needs to the attribute name to be prefixed with `@` to indicate it's an attribute
3. Continuation tokens that are strings need to be considered the same as not having a continuation token

Additionally, this PR includes the following:
1. Regenerating the `azure_svc_blobstorage` crate for review
2. A unit test for `azure_svc_blobstorage` that validates the XML parsing works as intended
3. Updates to the `azure_svc_blobstorage` example such that it no longer silently swallows parsing issues

Once this PR is reviewed, I will submit a follow-on PR that includes regenerating the rest of the crates.

Ref: <https://docs.rs/quick-xml/latest/quick_xml/serde_helpers/text_content/index.html>
Ref: <https://docs.rs/quick-xml/latest/quick_xml/de/index.html#mapping-xml-to-rust-types>
This PR shows the results of regenerating the crates with Azure#1381 and Azure#1383 applied.
@demoray demoray merged commit 3a55a4c into Azure:main Sep 18, 2023
@demoray demoray deleted the regenerate-crates-with-fixes branch September 18, 2023 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants