feat: Add Protocol Buffers Well-Known Types transformation support#206
Open
requilence wants to merge 2 commits intosoc221b:mainfrom
Open
feat: Add Protocol Buffers Well-Known Types transformation support#206requilence wants to merge 2 commits intosoc221b:mainfrom
requilence wants to merge 2 commits intosoc221b:mainfrom
Conversation
…vTools - Add Struct/Value checkbox to transform protobuf Well-Known Types - Transform Struct fieldsMap arrays to regular JSON objects - Unwrap Value types (stringValue, numberValue, etc.) to primitives - Convert ListValue to regular arrays - Transform Duration to human-readable format (e.g., "3500ms") - Transform FieldMask to comma-separated string - Add separate "Remove List" checkbox for removing 'List' suffix from arrays - Both transformations work in Preview and raw JSON modes - Settings persist across sessions
ce5cca0 to
df9ac32
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for transforming Protocol Buffers Well-Known Types into more readable formats in the gRPC DevTools message viewer.
Motivation
When debugging gRPC services that use Protocol Buffers Well-Known Types (like
google.protobuf.Struct,google.protobuf.Value, etc.),the raw protobuf representation can be difficult to read. For example, a simple struct appears as:
{ "fieldsMap": [ ["key1", { "kind": "stringValue", "stringValue": "value1" }], ["key2", { "kind": "numberValue", "numberValue": 42 }] ] }This PR transforms such structures into clean, readable JSON:
Features
New Checkboxes
- google.protobuf.Struct → Regular JSON objects
- google.protobuf.Value wrappers → Unwrapped values
- google.protobuf.ListValue → Regular arrays
- google.protobuf.Duration → Human-readable format (e.g., "3500ms")
- google.protobuf.FieldMask → Comma-separated paths
- recordsList → records
- Only visible when Struct/Value is enabled
- Only affects arrays, not fields like todoList: "string"
Implementation Details
Testing
Breaking Changes
None. All changes are additive and opt-in via checkboxes.
Screenshots
Before


After
🤖 Created with help of Claude Code