Skip to content

about swagger serve #5261

@MarcusBright

Description

@MarcusBright

Thanks for this amazing project. I am using goctl api swagger command to generate swagger file and notice that there is no comment or discribe about feild, defined in api file like PageData { //Total data count Total int64 `json:"total,example=1234"` //Number of items per page, consistent with the request Limit int `json:"limit,example=10"` //Data offset, consistent with the request Offset int `json:"offset,example=0,default=0"` }.
And how to serve the swagger UI using go zero?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions