-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate skipped rule + add IGNORE_ALWAYS to ignore rule + more expl…
…icit naming (#172) After some internal discussions, the patch contains the following changes around the `ignore` field constraint: - Only two "defined" words in the documentation around ignore/required fields are "populated" (would be present in the wire format) and "nullable" (what the proto docs call "explicit presence"). This is so that we don't confuse these already nuanced definitions with the equally nuanced proto field presence. - Deprecated the `skipped` field constraint, replacing it with `IGNORE_ALWAYS` as these behaviors were already mutually exclusive. `required` will not be rolled in because that is an actual rule (that checks if a field is populated) and not a modifier of the validator's behavior. - rename `IGNORE_EMPTY` and `IGNORE_DEFAULT` to `IGNORE_IF_UNPOPULATED` and `IGNORE_IF_DEFAULT_VALUE`, respectively, to improve the self-documenting behavior of these already confusing names.
- Loading branch information
Showing
4 changed files
with
3,143 additions
and
3,094 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build --experimental_proto_descriptor_sets_include_source_info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ lint: | |
ignore_only: | ||
PACKAGE_VERSION_SUFFIX: | ||
- buf/validate | ||
allow_comment_ignores: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.