caicloud / nirvana

Golang Restful API Framework for Productivity

Home Page:https://caicloud.github.io/nirvana/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Guarantee not return error when use File type parameter.

whalecold opened this issue · comments

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind feature

What happened:

When use File type Parameters, it will return error required field file in File but got empty to client when client don't set the parameter, but the file parameter is optional.

What you expected to happen:

Guarantee dont't return error even if the parameter is empty.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?: