gen-crd-api-reference-docs icon indicating copy to clipboard operation
gen-crd-api-reference-docs copied to clipboard

Fix display of maps

Open theunrepentantgeek opened this issue 2 years ago • 0 comments

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

theunrepentantgeek avatar Jun 18 '23 09:06 theunrepentantgeek