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

maxlength and minlength are not supported for files #1818

Open
Jack21c opened this issue May 31, 2024 · 1 comment
Open

maxlength and minlength are not supported for files #1818

Jack21c opened this issue May 31, 2024 · 1 comment

Comments

@Jack21c
Copy link

Jack21c commented May 31, 2024

I have set maxlength for file parameter
// @Param table formData file true "Таблица" maxlength(52428800)
And swag said that
:maxLength is attribute to set to a number.

But when I set maxlength for string parameter
// @Param region path string false "Регион" maxlength(20)
swag initialized without errors.

How should I set max size of file by swagger?


swag version: 1.16.3
go version: 1.21.6
OS: Windows
App: Visual Studio Code

@sdghchj
Copy link
Member

sdghchj commented Jun 4, 2024

No way so far.
A PR is needed.

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