Skip to content

Conversation

josephharrington
Copy link
Contributor

A recent change (#2075) edited descriptor.proto to include a reserved statement that combines a field number and field name in the same line. This is specifically called out in the proto language guide as invalid.

https://protobuf.dev/programming-guides/editions/#reserved

Note that you can’t mix field names and numeric values in the same
reserved statement.

Protobuf.js itself seems to handle this syntax just fine, but other tools like protoc will choke on it.

A recent change (protobufjs#2075) edited descriptor.proto to include a `reserved`
statement that combines a field number and field name in the same line.
This is specifically called out in the proto language guide as invalid.

https://protobuf.dev/programming-guides/editions/#reserved

> Note that you can’t mix field names and numeric values in the same
> `reserved` statement.

Protobuf.js itself seems to handle this syntax just fine, but other
tools like protoc will choke on it.
Copy link

@waclock waclock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this issue is currently breaking our apps internally

@mkruskal-google mkruskal-google merged commit 5a3769a into protobufjs:master Aug 15, 2025
6 checks passed
@github-actions github-actions bot mentioned this pull request Aug 15, 2025
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.

3 participants