Skip to content

Use more descriptive struct name than T (formerly Swagger) #358

@grokify

Description

@grokify

I just noticed that the Swagger struct was renamed to T in v0.61.0 / PR #351

Would it be possible to use a more descriptive name? Perhaps something like Specification?

T is documented here with the following description:

T is the root of an OpenAPI v3 document

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions