-
Notifications
You must be signed in to change notification settings - Fork 205
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
Don't hardcode properties in newConvertToARMFunctionBuilder #3549
Comments
matthchr
added a commit
to matthchr/azure-service-operator
that referenced
this issue
Jan 5, 2024
This fixes Azure#3549. This uses a property tag for a few reasons: 1. Some types are flattened and other approaches are easily lost when flattening occurs. Putting the tag onto the property preserves it even through flattening. 2. In many ways this behavior is like an augmented `json:omitempty`, so it (IMO) makes sense to have a tag just like for JSON. It makes it clearer when looking at the Go object that the serialization behavior of these fields is special. This also fixes an issue with the configuration where hierarchical configurations didn't propagate the checks for usage.
3 tasks
matthchr
added a commit
to matthchr/azure-service-operator
that referenced
this issue
Jan 5, 2024
This fixes Azure#3549. This uses a property tag for a few reasons: 1. Some types are flattened and other approaches are easily lost when flattening occurs. Putting the tag onto the property preserves it even through flattening. 2. In many ways this behavior is like an augmented `json:omitempty`, so it (IMO) makes sense to have a tag just like for JSON. It makes it clearer when looking at the Go object that the serialization behavior of these fields is special. This also fixes an issue with the configuration where hierarchical configurations didn't propagate the checks for usage.
matthchr
added a commit
to matthchr/azure-service-operator
that referenced
this issue
Jan 11, 2024
This fixes Azure#3549. This uses a property tag for a few reasons: 1. Some types are flattened and other approaches are easily lost when flattening occurs. Putting the tag onto the property preserves it even through flattening. 2. In many ways this behavior is like an augmented `json:omitempty`, so it (IMO) makes sense to have a tag just like for JSON. It makes it clearer when looking at the Go object that the serialization behavior of these fields is special. This also fixes an issue with the configuration where hierarchical configurations didn't propagate the checks for usage.
github-merge-queue bot
pushed a commit
that referenced
this issue
Jan 11, 2024
This fixes #3549. This uses a property tag for a few reasons: 1. Some types are flattened and other approaches are easily lost when flattening occurs. Putting the tag onto the property preserves it even through flattening. 2. In many ways this behavior is like an augmented `json:omitempty`, so it (IMO) makes sense to have a tag just like for JSON. It makes it clearer when looking at the Go object that the serialization behavior of these fields is special. This also fixes an issue with the configuration where hierarchical configurations didn't propagate the checks for usage.
github-project-automation
bot
moved this from Backlog
to Recently Completed
in Azure Service Operator Roadmap
Jan 11, 2024
matthchr
moved this from Recently Completed
to Ready for Release
in Azure Service Operator Roadmap
Jan 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the current behavior
v2/tools/generator/internal/armconversion/convert_to_arm_function_builder.go
has the following code snippetDescribe the improvement
The properties should be specified in the configuration file, not in code.
The text was updated successfully, but these errors were encountered: