diff --git a/src/main/java/org/tkit/onecx/permission/rs/internal/mappers/AssignmentMapper.java b/src/main/java/org/tkit/onecx/permission/rs/internal/mappers/AssignmentMapper.java index 427d771..b1c831e 100644 --- a/src/main/java/org/tkit/onecx/permission/rs/internal/mappers/AssignmentMapper.java +++ b/src/main/java/org/tkit/onecx/permission/rs/internal/mappers/AssignmentMapper.java @@ -48,6 +48,7 @@ public interface AssignmentMapper { Assignment create(Role role, Permission permission); @Mapping(target = "appId", source = "permission.appId") + @Mapping(target = "productName", source = "permission.productName") AssignmentDTO map(Assignment data); default List createList(Role role, List permissions) { diff --git a/src/main/openapi/onecx-permission-internal-openapi.yaml b/src/main/openapi/onecx-permission-internal-openapi.yaml index 3100cde..f5fc16b 100644 --- a/src/main/openapi/onecx-permission-internal-openapi.yaml +++ b/src/main/openapi/onecx-permission-internal-openapi.yaml @@ -822,6 +822,8 @@ components: type: string appId: type: string + productName: + type: string id: type: string mandatory: