Skip to content

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