-
Notifications
You must be signed in to change notification settings - Fork 503
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
Type aliases resolve too aggressively in the generated API documentation #210
Comments
This looks to be a consequence of how type aliases behave in Golang. They don't show up as actual types. |
The generator is using gengo, so I think that it can distinguish type aliases in the source.
One thing I was playing with is inlining the type rather than aliasing. This probably gets the same result in YAML, JSON and Go, but not in protobuf.
|
I filed kubernetes/gengo#180 for gengo. I agree that we should probably look for a local workaround. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
may be fixed by changing |
/assign @bowei |
#378 |
@hbagdi: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What happened:
All the type aliases for
ConfigMapsDefaultLocalObjectReference
end up linking back to a single documentation block. We lose the unique documentation present at each alias declaration.Fields that are an instance of the type alias are also collapsed into the underlying type, which is not what we want.
What you expected to happen:
Each type alias should get its own documentation block, ie. for each of these:
The text was updated successfully, but these errors were encountered: