-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix paging via params for generated crates (#1383)
* address XML parsing issues in generated crates 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>
- Loading branch information
Showing
6 changed files
with
1,082 additions
and
1,387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.