You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The vendor's GraphQL schema is large and changes frequently. This requires maintenance in golang package wiz.io/hashicorp/terraform-provider-wiz/internal/vendor.
Devise a method/solution to auto-generate "wiz.io/hashicorp/terraform-provider-wiz/internal/vendor" based on "schema/wiz.graphql".
The solution will have to account for exceptions in the GraphQL schema that cannot be mirrored properly in golang. As one reference, take the updateProject mutation:
type Mutation {
updateProject(input: UpdateProjectInput!): UpdateProjectPayload!
Fields such as businessUnit are optional. These structs are represented in golang with the json tag omitempty. If the value of the businessUnit is removed in the Terraform HCL, the value will not be passed in the request, which will not update the value to null. An override was necessary to leave out the omitempty json tag from the golang struct.
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The text was updated successfully, but these errors were encountered:
Description
The vendor's GraphQL schema is large and changes frequently. This requires maintenance in golang package wiz.io/hashicorp/terraform-provider-wiz/internal/vendor.
Devise a method/solution to auto-generate "wiz.io/hashicorp/terraform-provider-wiz/internal/vendor" based on "schema/wiz.graphql".
The solution will have to account for exceptions in the GraphQL schema that cannot be mirrored properly in golang. As one reference, take the updateProject mutation:
The mutation takes varaibles UpdateProjectInput:
Fields such as
businessUnit
are optional. These structs are represented in golang with the json tagomitempty
. If the value of thebusinessUnit
is removed in the Terraform HCL, the value will not be passed in the request, which will not update the value to null. An override was necessary to leave out theomitempty
json tag from the golang struct.Community Note
The text was updated successfully, but these errors were encountered: