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

[azcore] Add text [un]marshalling support to ResourceID #23381

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mbarnes
Copy link

@mbarnes mbarnes commented Aug 28, 2024

It would be handy for ResourceID to support the encoding.TextMarshaler and encoding.TextUnmarshaler interfaces so that, for example, JSON data that includes a resource ID string can be unmarshaled directly to a ResourceID struct (and vice versa for marshaling).

  • The purpose of this PR is explained in this or a referenced issue.
  • The PR does not update generated files.
  • Tests are included and/or updated for code changes.
  • Updates to module CHANGELOG.md are included.
  • MIT license headers are included in each file.

Copy link

Thank you for your contribution @mbarnes! We will review the pull request and get back to you soon.

@github-actions github-actions bot added Azure.Core Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Aug 28, 2024
mbarnes pushed a commit to Azure/ARO-HCP that referenced this pull request Aug 30, 2024
This is a thinly wrappered azcorearm.ResourceID that implements
the encoding.TextMarshaler and encoding.TextUnmarshaler interfaces,
so that ResourceID can be used directly in structs that get built
from JSON data.

I proposed this for azcorearm.ResourceID in:
Azure/azure-sdk-for-go#23381
mjlshen pushed a commit to Azure/ARO-HCP that referenced this pull request Aug 30, 2024
This is a thinly wrappered azcorearm.ResourceID that implements
the encoding.TextMarshaler and encoding.TextUnmarshaler interfaces,
so that ResourceID can be used directly in structs that get built
from JSON data.

I proposed this for azcorearm.ResourceID in:
Azure/azure-sdk-for-go#23381
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Core Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant