Skip to content

Fix buf lint mistaking proto3 optional fields for oneof fields#2590

Merged
oliversun9 merged 2 commits intomainfrom
osun/fix-lint-protovalidate-for-proto3-optional
Nov 14, 2023
Merged

Fix buf lint mistaking proto3 optional fields for oneof fields#2590
oliversun9 merged 2 commits intomainfrom
osun/fix-lint-protovalidate-for-proto3-optional

Conversation

@oliversun9
Copy link
Contributor

Fixes #2589.

This PR fixes the bug where buf lint incorrectly report error on proto3 optional fields.

@oliversun9 oliversun9 requested review from bufdev and rodaine November 14, 2023 23:31
@oliversun9 oliversun9 changed the title Fix buf lint report error on buf.validate.field.required on a optional field in proto3 Fix buf lint mistaking proto3 optional fields for oneof fields Nov 14, 2023
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.

Issues with the PROTOVALIDATE rules when linting a proto file with optional fields and protovalidate constraints

3 participants