Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate crates with fixes #1384

Merged
merged 10 commits into from
Sep 18, 2023
Merged

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.

Brian Caswell added 8 commits September 15, 2023 10:27
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
19 checks passed
@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.

None yet

2 participants