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

generator-go-sdk: omitempty option for discriminator value too #4626

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wuxu92
Copy link
Collaborator

@wuxu92 wuxu92 commented Jan 14, 2025

Not sure if there is a specific reason to ignore the omitempty option for discriminator values, but this PR is going to split the JSON tag logic from the field type and add an omitempty tag for basically all optional & read fields (including discriminators).

Fixes hashicorp/go-azure-sdk#387

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.

Issue with [Site Recovery] / API Version [2022-10-01]
1 participant