Skip to content

Commit

Permalink
Run typos -w
Browse files Browse the repository at this point in the history
Similar to #157, using the [typos][1] tool. All the changes seem like
valid fixes.

Not sure if any of the filename changes are consumed downstream and thus
would break an import, though?

[1]: https://github.com/crate-ci/typos
  • Loading branch information
stefanvanburen committed Jan 26, 2024
1 parent ebbd81a commit 1259ec6
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/standard-constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ message Example {

### Required constraint

Currently, only one constraint is availabe on oneofs: `required`. This
Currently, only one constraint is available on oneofs: `required`. This
constraint requires that exactly one field in the oneof must be set.

```protobuf
Expand Down
8 changes: 4 additions & 4 deletions examples/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ proto_library(
name = "examples_proto",
srcs = [
"cel_assert_value_is_in_a_list.proto",
"cel_bytes_concatentation.proto",
"cel_bytes_concatenation.proto",
"cel_bytes_contains.proto",
"cel_bytes_starts_with_ends_with.proto",
"cel_conditional_operator.proto",
"cel_duration_arithmetic.proto",
"cel_duration_from_string.proto",
"cel_enum_comparision.proto",
"cel_enum_comparison.proto",
"cel_field_access.proto",
"cel_field_mask.proto",
"cel_field_presence.proto",
Expand All @@ -42,15 +42,15 @@ proto_library(
"cel_repeated_field_exists_one.proto",
"cel_repeated_field_filter_and_count.proto",
"cel_repeated_field_unique.proto",
"cel_string_concatentation.proto",
"cel_string_concatenation.proto",
"cel_string_contains.proto",
"cel_string_is_email.proto",
"cel_string_is_hostname.proto",
"cel_string_is_ip.proto",
"cel_string_is_uri.proto",
"cel_string_match_pattern.proto",
"cel_string_starts_with_ends_with.proto",
"cel_timestamp_comparsion.proto",
"cel_timestamp_comparison.proto",
"cel_timestamp_get_attribute.proto",
"cel_timestamp_plus_duration.proto",
"cel_timestamp_subtraction.proto",
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/cel_field_access.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ message PlaceWholeSaleOrderRequest {
uint64 item_id = 1;
// quantity is the quantity of the item to purchase.
uint32 quantity = 2 [(buf.validate.field).cel = {
id: "minium_whole_sale_quantity",
id: "minimum_whole_sale_quantity",
message: "order quantity must be 100 or greater",
// `this` refers to this field and the expression evaluates to a boolean result.
// If the result is false, validation will fail with the above error message.
Expand Down
2 changes: 1 addition & 1 deletion examples/cel_field_selection.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ syntax = "proto3";
import "buf/validate/validate.proto";
import "google/protobuf/wrappers.proto";

service AparmentService {
service ApartmentService {
// SearchApartment searches for apartments.
rpc SearchApartment(SearchApartmentRequest) returns (SearchApartmentResponse);
}
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion proto/protovalidate/buf/validate/validate.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2932,7 +2932,7 @@ message StringRules {
//
// ```proto
// message MyString {
// // value must be a valid IPv4 address with prefix lentgh
// // value must be a valid IPv4 address with prefix length
// string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
// }
// ```
Expand Down
2 changes: 1 addition & 1 deletion tools/internal/gen/buf/validate/validate.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1259ec6

Please sign in to comment.