Skip to content

Commit

Permalink
[SELC-6118] fix: set mobile phone number regex with a minimum of 7 di…
Browse files Browse the repository at this point in the history
…gits (#501)
  • Loading branch information
giulia-tremolada authored Nov 29, 2024
1 parent 2427db9 commit f558b5d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions app/src/main/resources/swagger/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3138,7 +3138,7 @@
},
"role" : {
"type" : "string",
"description" : "User's role, available value: [MANAGER, DELEGATE, SUBDELEGATE, OPERATOR, ADMIN_EA]"
"description" : "User's role, available values: [MANAGER, DELEGATE, SUBDELEGATE, OPERATOR, ADMIN_EA]"
},
"surname" : {
"type" : "string",
Expand Down Expand Up @@ -3684,7 +3684,7 @@
},
"role" : {
"type" : "string",
"description" : "User's role, available value: [MANAGER, DELEGATE, SUBDELEGATE, OPERATOR, ADMIN_EA]",
"description" : "User's role, available values: [MANAGER, DELEGATE, SUBDELEGATE, OPERATOR, ADMIN_EA]",
"enum" : [ "ADMIN", "ADMIN_EA", "LIMITED" ]
},
"status" : {
Expand Down Expand Up @@ -3942,7 +3942,7 @@
},
"selcRole" : {
"type" : "string",
"description" : "User's Selfcare role, available value: [ADMIN, ADMIN_EA, LIMITED]",
"description" : "User's Selfcare role, available values: [ADMIN, ADMIN_EA, LIMITED]",
"enum" : [ "ADMIN", "ADMIN_EA", "LIMITED" ]
},
"status" : {
Expand Down Expand Up @@ -4035,7 +4035,7 @@
},
"role" : {
"type" : "string",
"description" : "User's Selfcare role, available value: [ADMIN, ADMIN_EA, LIMITED]",
"description" : "User's Selfcare role, available values: [ADMIN, ADMIN_EA, LIMITED]",
"enum" : [ "ADMIN", "ADMIN_EA", "LIMITED" ]
},
"status" : {
Expand Down Expand Up @@ -4283,7 +4283,7 @@
"example" : "[email protected]"
},
"mobilePhone" : {
"pattern" : "^\\+?[0-9]{9,15}$",
"pattern" : "^\\+?[0-9]{7,15}$",
"type" : "string",
"description" : "User's institutional phone number"
},
Expand Down Expand Up @@ -4468,7 +4468,7 @@
},
"role" : {
"type" : "string",
"description" : "User's role, available value: [MANAGER, DELEGATE, SUBDELEGATE, OPERATOR, ADMIN_EA]"
"description" : "User's role, available values: [MANAGER, DELEGATE, SUBDELEGATE, OPERATOR, ADMIN_EA]"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion connector/rest/docs/openapi/selfcare-user-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,7 @@
"type" : "string"
},
"mobilePhone" : {
"pattern" : "^\\+?[0-9]{9,15}$",
"pattern" : "^\\+?[0-9]{7,15}$",
"type" : "string"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public class UpdateUserDto {
private String email;

@ApiModelProperty(value = "${swagger.dashboard.user.model.institutionalPhone}")
@Pattern(regexp = "^\\+?[0-9]{9,15}$", message = "Il numero di telefono non è valido")
@Pattern(regexp = "^\\+?[0-9]{7,15}$", message = "Il numero di telefono non è valido")
private String mobilePhone;
}
4 changes: 2 additions & 2 deletions web/src/main/resources/swagger/swagger_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ swagger.dashboard.user.model.email=User's personal email
swagger.dashboard.user.model.workContacts=User's workcontacts, contains the emails associated to every institution the user is assigned to
swagger.dashboard.user.model.institutionalEmail=User's institutional email
swagger.dashboard.user.model.institutionalPhone=User's institutional phone number
swagger.dashboard.user.model.role=User's role, available value: [MANAGER, DELEGATE, SUBDELEGATE, OPERATOR, ADMIN_EA]
swagger.dashboard.user.model.selcRole=User's Selfcare role, available value: [ADMIN, ADMIN_EA, LIMITED]
swagger.dashboard.user.model.role=User's role, available values: [MANAGER, DELEGATE, SUBDELEGATE, OPERATOR, ADMIN_EA]
swagger.dashboard.user.model.selcRole=User's Selfcare role, available values: [ADMIN, ADMIN_EA, LIMITED]
swagger.dashboard.user.model.fields=Fields to retrieve from pdv when searching for user
swagger.dashboard.user.model.createdAt=User's creation date associated with a product
swagger.dashboard.products.model.roleInfos=User's role infos in product
Expand Down

0 comments on commit f558b5d

Please sign in to comment.