diff --git a/app/src/main/resources/swagger/api-docs.json b/app/src/main/resources/swagger/api-docs.json index a03423ff..8a6d1b35 100644 --- a/app/src/main/resources/swagger/api-docs.json +++ b/app/src/main/resources/swagger/api-docs.json @@ -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" : { diff --git a/web/src/main/java/it/pagopa/selfcare/onboarding/web/model/OnboardingRequestResource.java b/web/src/main/java/it/pagopa/selfcare/onboarding/web/model/OnboardingRequestResource.java index bfc36e50..4035f790 100644 --- a/web/src/main/java/it/pagopa/selfcare/onboarding/web/model/OnboardingRequestResource.java +++ b/web/src/main/java/it/pagopa/selfcare/onboarding/web/model/OnboardingRequestResource.java @@ -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) @@ -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}")