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

fix: omit empty leaving behind variables #807

Merged
merged 2 commits into from
Mar 7, 2023
Merged

Conversation

jakeyheath
Copy link
Contributor

Summary

A description of changes or issues addressed by this PR. Provide links to relevant PRs if any.

Test Plan

Say unittests, or list out steps to verify changes.

References

(Optional) Additional links to provide more context.

@jakeyheath jakeyheath requested a review from a team as a code owner March 7, 2023 22:28
@@ -124,7 +124,7 @@ type Component struct {
Kind *ComponentKind `yaml:"kind,omitempty"`
ModuleSource *string `yaml:"module_source,omitempty"`
ModuleName *string `yaml:"module_name,omitempty"`
Variables []string `yaml:"variables,omitempty"`
Variables *[]string `yaml:"variables,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A pointer to an array... We need our own nullable types, just like AWS and Hashicorp do!

@jakeyheath jakeyheath merged commit fa0402b into main Mar 7, 2023
@jakeyheath jakeyheath deleted the heathj/omitempty branch March 7, 2023 22:42
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.

2 participants