Fix duplicate client-uuid path parameter in OpenAPI spec
Some checks are pending
Weblate Sync / Trigger Weblate to pull the latest changes (push) Waiting to run

Rename {client-uuid} to {targetClientUuid} in RoleContainerResource to
avoid duplicate parameter names when the resource is mounted under
ClientResource. {clientUuid} is not sufficient because code generators
normalise {client-uuid} from the parent path to clientUuid as well.

Closes #46015

Signed-off-by: Zorian Motso <zorianmotso@gmail.com>
This commit is contained in:
Zorian Motso 2026-02-16 18:28:15 +02:00 committed by GitHub
parent 418700b4f8
commit 8258fceb33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -424,7 +424,7 @@ public class RoleContainerResource extends RoleResource {
* @param clientUuid
* @return
*/
@Path("{role-name}/composites/clients/{client-uuid}")
@Path("{role-name}/composites/clients/{targetClientUuid}")
@GET
@NoCache
@Produces(MediaType.APPLICATION_JSON)
@ -436,7 +436,7 @@ public class RoleContainerResource extends RoleResource {
@APIResponse(responseCode = "404", description = "Not Found")
})
public Stream<RoleRepresentation> getClientRoleComposites(final @Parameter(description = "role's name (not id!)") @PathParam("role-name") String roleName,
final @PathParam("client-uuid") String clientUuid) {
final @PathParam("targetClientUuid") String clientUuid) {
auth.roles().requireView(roleContainer);
RoleModel role = roleContainer.getRole(roleName);
if (role == null) {