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
class AuthenticationDto {
public String email;
public String password;
public String socialNetwork;
public String accessToken;
}
And we have 2 ways to autheticate
POST /sessions
{"email": "[email protected]", "password":"12345678"}
POST /sessions
{"social_network": "facebok", "access_token":"qqqwwweeerrtt"}
At the moment all fields are optional, but this not reflect that, if email is provided then password is required.
Proposal is to make password semi-required, this will indicate that is required in context, something like
The spec itself doesn't allow interdependent requirements, so we can't really implement it. The next version of the spec should have some support for it, but until then it can't be done.
We have a dto
And we have 2 ways to autheticate
At the moment all fields are optional, but this not reflect that, if email is provided then password is required.
Proposal is to make password semi-required, this will indicate that is required in context, something like
Or even better Swagger can show 2 models
The text was updated successfully, but these errors were encountered: