-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
Use more descriptive struct name than T
(formerly Swagger
)
#358
Comments
T
(formerly Swagger
)
T
(formerly Swagger
)T
(formerly Swagger
)
Hello there, thanks for raising concerns. If you feel like something is under documented I'm happy to oblige and/or review PRs.
I fail to see your points there. The std lib has plenty of single letter names. Again, thanks for discussing. We can always better document things and I'll happily help with that. |
Documentation is a good idea and it could clarify why I did notice that While the standard library does have some single letter names, I don't think they are common, and there is some association of the letter chosen with its use. Examples for In
https://golang.org/pkg/testing/#T The
|
For those that find
This way, I can refer to |
I just noticed that the
Swagger
struct was renamed toT
inv0.61.0
/ PR #351Would it be possible to use a more descriptive name? Perhaps something like
Specification
?T
is documented here with the following description:https://pkg.go.dev/github.com/getkin/kin-openapi@v0.61.0/openapi3#T
It seems
Specification
would be easier to understand.Document
would be ok but with less context.T
seems more difficult to comprehend and unusual as no other public struct name uses a single letter.The text was updated successfully, but these errors were encountered: