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

Add support for 'format' tag in response headers #1817

Open
tompson-wu opened this issue May 30, 2024 · 1 comment
Open

Add support for 'format' tag in response headers #1817

tompson-wu opened this issue May 30, 2024 · 1 comment

Comments

@tompson-wu
Copy link

We need to describe response header type for long/int64

I write code like:

// @Header 200 integer Content-Length "the content length" Format(int64)

But the result is:

"Content-Length": {
    "type": "integer",
    "description": "the content length\" Format(int64)"
}

This result is expected:

"Content-Length": {
    "type": "integer",
    "description": "the content length",
    "format": "int64"
}
@ubogdan
Copy link
Contributor

ubogdan commented May 30, 2024

Headers annotation doesn't support the "format" at this time. Any contribution is welcome.

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

No branches or pull requests

2 participants