Bug 40192: (bug 38446 follow-up) Add title to /erm/extended_attribute_types

Sponsored-by: Karlsruhe Institute of Technology (KIT)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2025-11-04 16:18:21 +01:00 committed by Lucas Gass
parent 806ac743f0
commit 0a3ed65e70
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
3 changed files with 3 additions and 2 deletions

View File

@ -100,7 +100,7 @@ List the ERM-related additional fields, can be filtered using the resource_type
sub list_erm {
my ($self) = @_;
my $c = shift->openapi->valid_input or return;
my @resource_types = qw(erm_licenses erm_agreements erm_packages);
my @resource_types = qw(erm_licenses erm_agreements erm_packages erm_titles);
return try {
my $additional_fields_set = $self->_list(@resource_types);

View File

@ -17,6 +17,7 @@
- license
- agreement
- package
- title
- $ref: "../swagger.yaml#/parameters/match"
- $ref: "../swagger.yaml#/parameters/order_by"
- $ref: "../swagger.yaml#/parameters/page"

View File

@ -41,7 +41,7 @@ export class AdditionalFieldsAPIClientWrapper {
getModuleName(resource_type) {
const moduleMappings = {
erm: ["agreement", "license", "package"],
erm: ["agreement", "license", "package", "title"],
acquisition: ["vendor"],
};