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
Copy link

github-actions bot commented Nov 1, 2024

Hi @mbarnes. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

@github-actions github-actions bot added the no-recent-activity There has been no recent activity on this issue. label Nov 1, 2024
@mbarnes
Copy link
Author

mbarnes commented Nov 1, 2024

My suggestion is still valid. Please leave open.

@github-actions github-actions bot removed the no-recent-activity There has been no recent activity on this issue. label Nov 1, 2024
@jhendrixMSFT
Copy link
Member

Mind rebasing on main?

@mbarnes mbarnes force-pushed the resource-identifier-marshalling branch from 12cd44f to a4bea91 Compare November 1, 2024 18:14
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.

2 participants