Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix display of maps #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

theunrepentantgeek
Copy link
Contributor

Fixes the display of maps where the key or value of the map is a type declared in the package being documented.

The function typeDisplayName() is modified to be mildly recursive, applying naming rules to the key and value types before constructing the final display name.

Similar recursive changes are applied for slices and pointers, to ensure correct display even in edge cases - such as []*Foo where Foo is a type declared in the current package.

Closes #64

rishabh-11 added a commit to rishabh-11/gen-crd-api-reference-docs that referenced this pull request Sep 24, 2024
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.

Incorrect display of map types
1 participant