Skip to content

fix: Header problem in get request#92

Open
6xiaowu9 wants to merge 1 commit intozeromicro:mainfrom
6xiaowu9:fix/header-problem-in-get-request
Open

fix: Header problem in get request#92
6xiaowu9 wants to merge 1 commit intozeromicro:mainfrom
6xiaowu9:fix/header-problem-in-get-request

Conversation

@6xiaowu9
Copy link

解决问题:#59

在结构中写入header或嵌套结构写入header时会出现:
api:

type (
	Headers {
		GameID  string `header:"x-client-id,optional"`
		ChainID string `header:"x-chain-id,optional"`
	}
)

gen swagger:
image

期望只有:
image

发现是因为没有忽略header Tag 并且 嵌套使用时不会忽略,当前已解决,希望尽快检查合并

@6xiaowu9
Copy link
Author

@MaxToby please review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant