gRPC and .proto schemas
anomorph uses Protobuf descriptors to turn binary messages into fields you can inspect and edit.
Match or infer a .proto from a call
- Capture a test gRPC call such as
GetCartand open its response. - In
Settings → Proto → Without a .proto, check whether schema inference is enabled. You can also useGuess a .protoon the call. - Inspect the inferred schema under
Settings → Proto. It can refine field types and nesting as later calls reveal more values.
An inferred schema is a draft. Protobuf messages do not carry the original field names, so labels such as field_1 are expected. If you have the original schema, import it to recover the names and declared types.
Retrieve schemas with Server Reflection
If the service offers gRPC Server Reflection, anomorph can retrieve its schema. Reflection and inference have separate switches. Use inference when reflection is unavailable and a schema has not been imported.
Import files, folders or Git repositories
- Choose
Settings → Proto → + Add → Files…for .proto files or a compiled .desc or .protoset. A compiled descriptor needs its imported types included. - Choose
Folder…to follow an existing folder or checkout. anomorph refreshes the schema when the files change. - Choose
Git repository…to connect a repository and select a branch or tag. Use the update action to fetch changes.
Read the decoded response
Confirm that the response shows the shape you expect. A test cart may contain currency and total_cents with an imported schema, or numbered field names with a draft. Once you identify the field, change it with Rewrite.
{ "currency": "USD", "total_cents": 1999 }See the gRPC walkthrough for the decoded fields in a captured call.