Skip to content

Commit

Permalink
feat: removed required condition for recipientCode and id in Onboardi…
Browse files Browse the repository at this point in the history
…ngRequestResource (#251)
  • Loading branch information
gianmarcoplutino authored Feb 9, 2024
1 parent 396bd1b commit 1c728e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/src/main/resources/swagger/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3071,7 +3071,7 @@
},
"InstitutionInfo" : {
"title" : "InstitutionInfo",
"required" : [ "address", "fiscalCode", "id", "institutionType", "mailAddress", "name", "recipientCode", "vatNumber", "zipCode" ],
"required" : [ "address", "fiscalCode", "institutionType", "mailAddress", "name", "vatNumber", "zipCode" ],
"type" : "object",
"properties" : {
"additionalInformations" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public class OnboardingRequestResource {
@EqualsAndHashCode(of = "id")
public static class InstitutionInfo {

@ApiModelProperty(value = "${swagger.onboarding.institutions.model.id}", required = true)
@JsonProperty(required = true)
@ApiModelProperty(value = "${swagger.onboarding.institutions.model.id}")
private String id;

@ApiModelProperty(value = "${swagger.onboarding.institutions.model.name}", required = true)
Expand Down Expand Up @@ -77,8 +76,7 @@ public static class InstitutionInfo {
@JsonProperty(required = true)
private String vatNumber;

@ApiModelProperty(value = "${swagger.onboarding.institutions.model.recipientCode}", required = true)
@JsonProperty(required = true)
@ApiModelProperty(value = "${swagger.onboarding.institutions.model.recipientCode}")
private String recipientCode;

@ApiModelProperty(value = "${swagger.onboarding.institutions.model.pspData}")
Expand Down

0 comments on commit 1c728e4

Please sign in to comment.