Skip to content

Commit 21a1a32

Browse files
fix
1 parent fdc3a16 commit 21a1a32

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

apps/user-ms/src/main/docs/openapi.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,7 @@
200200
"content" : {
201201
"application/json" : {
202202
"schema" : {
203-
"type" : "array",
204-
"items" : {
205-
"$ref" : "#/components/schemas/UserProductResponse"
206-
}
203+
"type" : "boolean"
207204
}
208205
}
209206
}

apps/user-ms/src/main/docs/openapi.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,7 @@ paths:
149149
content:
150150
application/json:
151151
schema:
152-
type: array
153-
items:
154-
$ref: "#/components/schemas/UserProductResponse"
152+
type: boolean
155153
"400":
156154
description: Bad Request
157155
content:

apps/user-ms/src/main/java/it/pagopa/selfcare/user/controller/InstitutionController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public Uni<DeletedUserCountResponse> deleteUserInstitutionProductUsers(@PathPara
152152
description = "Verify if a user is already onboarded on an institution and product given its fiscal code"
153153
)
154154
@APIResponses(value = {
155-
@APIResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = UserProductResponse.class, type = SchemaType.ARRAY), mediaType = "application/json")),
155+
@APIResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = Boolean.class), mediaType = "application/json")),
156156
@APIResponse(responseCode = "400", description = "Bad Request", content = @Content(schema = @Schema(implementation = Problem.class), mediaType = "application/problem+json")),
157157
@APIResponse(responseCode = "401", description = "Not Authorized", content = @Content(schema = @Schema(implementation = Problem.class), mediaType = "application/problem+json")),
158158
@APIResponse(responseCode = "403", description = "Forbidden", content = @Content(schema = @Schema(implementation = Problem.class), mediaType = "application/problem+json")),

apps/user-ms/src/test/java/it/pagopa/selfcare/user/service/UserServiceTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2281,7 +2281,6 @@ void checkUser_shouldReturnTrue_whenUserExistsAndIsValid() {
22812281
String fiscalCode = "fiscalCode";
22822282
String institutionId = "institutionId";
22832283
String productId = "productId";
2284-
UUID userId = UUID.randomUUID();
22852284
UserResource userDto = new UserResource();
22862285
userDto.setId(userId);
22872286

0 commit comments

Comments
 (0)