Skip to content

allow object support for "header" param to for backward compatibility#2178

Merged
sdghchj merged 1 commit into
swaggo:v2from
SergeiSadov:v2-allow-header-object
Jun 24, 2026
Merged

allow object support for "header" param to for backward compatibility#2178
sdghchj merged 1 commit into
swaggo:v2from
SergeiSadov:v2-allow-header-object

Conversation

@SergeiSadov

Copy link
Copy Markdown

Describe the PR
Currently, v2 removes support of "header" param type to be an object, as it was previously supported in v1:
https://github.com/swaggo/swag/blob/master/operation.go#L291.

This PR will allow defining headers as a struct, to avoid duplication

Relation issue
#2177

@sdghchj sdghchj merged commit 8561606 into swaggo:v2 Jun 24, 2026
14 checks passed
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.

2 participants