goctl-swagger icon indicating copy to clipboard operation
goctl-swagger copied to clipboard

feat: support tags per operation

Open liemle3893 opened this issue 1 year ago • 2 comments

  1. Fixed: Unquote can return error in case of input string is not quoted, let's return to original value as fall back.
  2. Support tags per operation. Currently, operation inherit from group or swtags and their is no way to custom it. Example below.
info(
    title: "type title here"
    desc: "type desc here"
    author: "type author here"
    email: "type email here"
    version: "type version here"
)

import "sys/user.api"

@server(
  group: test
)
service user-api {
    @doc(
        summary: "注册"
        tags: "test,auth"
    )
    @handler register
    post /api/user/register (RegisterReq)
}

Before this commit

Screenshot 2024-08-29 at 01 01 39

After this commit

Screenshot 2024-08-29 at 01 03 58

This would be useful for grouping operation.

liemle3893 avatar Aug 28 '24 18:08 liemle3893

@kevwan Can you please take a look at this PR?

liemle3893 avatar Aug 29 '24 02:08 liemle3893

@kesonan PTAL

kevwan avatar Sep 11 '24 16:09 kevwan