Skip to content

protodoc: render map fields as map<K, V> instead of repeated map<K, V>#46065

Merged
jwendell merged 1 commit into
envoyproxy:mainfrom
davidvo-lyft:davidvo/32523-protodoc-map-repeated
Jul 10, 2026
Merged

protodoc: render map fields as map<K, V> instead of repeated map<K, V>#46065
jwendell merged 1 commit into
envoyproxy:mainfrom
davidvo-lyft:davidvo/32523-protodoc-map-repeated

Conversation

@davidvo-lyft

Copy link
Copy Markdown
Contributor

protoc represents a map<K, V> field as a repeated MapEntry message, so its label is LABEL_REPEATED and the docs template prefixed the (already correct) map<K, V> rendering with "repeated". This suppresses the label prefix for map fields, using the same map_typenames check _json_value already uses.

Risk Level: Low (doc tooling only)
Testing: regenerated the route/v3 API docs — the 4 repeated map<> renderings become map<>; genuine repeated fields keep their prefix.
Docs Changes: generated API docs only
Release Notes: n/a

Fixes #32523

protoc represents a map<K, V> field as a repeated MapEntry message, so its
label is LABEL_REPEATED and the docs template prefixed the (correct)
map<K, V> rendering with "repeated". Suppress the label prefix for map
fields, using the same map_typenames check that _json_value already uses.

Fixes envoyproxy#32523

Signed-off-by: David Vo <davidvo@lyft.com>
@davidvo-lyft davidvo-lyft deployed to external-contributors July 9, 2026 18:19 — with GitHub Actions Active
@repokitteh-read-only

Copy link
Copy Markdown

Hi @davidvo-lyft, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #46065 was opened by davidvo-lyft.

see: more, trace.

@jwendell jwendell enabled auto-merge (squash) July 10, 2026 15:56
@jwendell jwendell merged commit 37d79f7 into envoyproxy:main Jul 10, 2026
27 checks passed
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.

protodoc describing map fields incorrectly

3 participants