Skip to content

Add linter rule to check for required fields #3

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

Merged
merged 3 commits into from
Dec 6, 2024
Merged

Conversation

JoelSpeed
Copy link
Contributor

This adds a rule that will check that required fields are both not-pointers, but also do not have the omitempty json tag.

This linter includes auto-fixing for both of the errors described above.

Since this is core to the API guidelines in Kube, this is enabled by default.

@JoelSpeed JoelSpeed mentioned this pull request Dec 6, 2024
27 tasks
@JoelSpeed JoelSpeed merged commit 52306d5 into main Dec 6, 2024
2 checks passed
@JoelSpeed JoelSpeed deleted the requiredfields branch December 6, 2024 13:29
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.

1 participant