-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: Add support for XML base64Binary type #46
Comments
Hi @Matej-Hlatky, thank you for your feature request, I will investigate it over the weekend. In the meantime, I do have a question for you, how might you see |
Hi Thomas.
I must admit that I didn't knew about hexBinary type. 😅
So it does not make sense to implement support (only) for base64String,
since it wouldn't be unambiguous, when serializing.
Maybe it would require additional param "dataType" in XmlAttribute /
XmlElement annotation, like .NET does it?
Or even better, support for custom XmlConverter (similar to JsonConverter
from json_serializable) would be better best solution.
Thanks a lot.
…On Fri, 6 Oct 2023, 22:38 Thomas Clark, ***@***.***> wrote:
Hi @Matej-Hlatky <https://github.com/Matej-Hlatky>, thank you for your
feature request, I will investigate it over the weekend. In the meantime, I
do have a question for you, how might you see base64Binary
<https://www.w3.org/TR/xmlschema-2/#base64Binary> interacting with
hexBinary <https://www.w3.org/TR/xmlschema-2/#hexBinary> given that both
could map to Uint8List?
—
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAITM3YO62WGP5XH6NTH7MDX6BT4XAVCNFSM6AAAAAA5WCLW3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRGM3TOMZSGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I am in favour of adding support for custom converters similar to the |
Is your feature request related to a problem? Please describe.
To be able to map XML type "base64Binary", to Dart
Uint8List
and vice-versa.Describe the solution you'd like
Support "base64Binary" to be mapped to / from
Uint8List
.Describe alternatives you've considered
Working with plain strings and mapping to Dart type when needed.
The text was updated successfully, but these errors were encountered: