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
Here query param XYZ is interpreted as required even though it is optional param because of hardcoded required=true. Now, To make it optional we have to explicitly define
if we make this something like required=!isOptional(param) we don't need to add addition ApiImplicitQuery annotation for required field.
Any thought on that?
The text was updated successfully, but these errors were encountered:
rsirs
changed the title
Required meta is hardcoded to true when implicit params mapping to meta rather mapping to param.isOptional()
Required meta is hardcoded to true when implicit params mapping to meta rather evaluating it to param.isOptional()
Dec 28, 2018
swagger/lib/explorers/api-parameters.explorer.ts
Line 83 in 79fa84a
For example:
Here query param XYZ is interpreted as required even though it is optional param because of hardcoded
required=true
. Now, To make it optional we have to explicitly defineif we make this something like
required=!isOptional(param)
we don't need to add additionApiImplicitQuery
annotation for required field.Any thought on that?
The text was updated successfully, but these errors were encountered: