We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4d71c5 commit 4fea898Copy full SHA for 4fea898
docs/linters.md
@@ -288,6 +288,7 @@ The `optionalorrequired` linter can automatically fix fields that are using the
288
It will also remove the secondary marker where both the preferred and secondary marker are present on a field.
289
290
## RequiredFields
291
+
292
The `requiredfields` linter checks that all fields marked as required adhere to having `omitempty` or `omitzero` values in their `json` tags.
293
Currently `omitzero` is handled only for fields with struct type.
294
0 commit comments