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
{{ message }}
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.
When generating this model, the hidden parameter doesn't appear to be respected:
case class User(id: Long, firstName: String, lastName: String, email: String,
// TODO this doesn't appear to be working for some reason
@ApiModelProperty(hidden = true) password: String,
lastLoginTimestamp: Option[Timestamp], createdTimestamp: Timestamp, modifiedTimestamp: Timestamp)```
Results in an API spec for User:
Got around it by creating a filter. Extend AbstractSpecFilter and override isParamAllowed so it filters out parameters named password. Not ideal, but it works.
Not sure if these are connected (in implementation sense), but the similar issue is with the query parameters hidden flag (@ApiParam) (#206). I haven't looked at the code, but my assumption (based on query parameters behavior) is that hidden is actually respected, but some other logic might be regenerating that property again.
When generating this model, the hidden parameter doesn't appear to be respected:
The text was updated successfully, but these errors were encountered: