You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: