Skip to content
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

fix: Header problem in get request #92

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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