Skip to content

Fix infinite loop when messages in the same proto file reference each other #57

@zhihuizhang17

Description

@zhihuizhang17

Description

Issue
When two messages are defined in the same proto file and reference each other, describing one of them triggers an infinite loop.

Root Cause
Currently, the implementation generates separate description files per message instead of per proto file. This leads to circular references when messages within the same file point to each other.

Proposed Solution
Respect the actual proto file structure:

  • Each proto file should correspond to exactly one description file.
  • All messages defined in the same proto file should be grouped under that single description file.

This change will prevent recursive loops and ensure consistency with how proto files are organized.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions