Skip to content

Commit 3da8f9b

Browse files
nnobelissschuberth
authored andcommitted
fix(fossid-webapp): components can be an empty array
FossId versions before 24.3.2 did not return the "components" property when it was empty. Now it returns '[]' for this property value which is problematic, as it introduces polymorphism (a non-empty 'components' property contains a map of integer to object). This commit modifies just the test resource for exhaustivity. Model does not have to be changed since this property is currently not mapped. Signed-off-by: Nicolas Nobelis <nicolas.nobelis@bosch.com>
1 parent 761729b commit 3da8f9b

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

clients/fossid-webapp/src/test/resources/return-type/__files/body-list_scan_for_project_not_empty.json

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -79,23 +79,7 @@
7979
"file_licenses": [],
8080
"identification_id": "29648306",
8181
"identification_copyright": null,
82-
"components": {
83-
"352": {
84-
"identification_id": 29648306,
85-
"component_id": 352,
86-
"component_name": "Original Code",
87-
"component_version": "Unspecified",
88-
"component_copyright": null,
89-
"component_cpe": null,
90-
"component_license_name": "[template] Basic Proprietary Commercial License",
91-
"component_license_identifier": "[template] Basic Proprietary Commercial License",
92-
"component_license_is_foss": 0,
93-
"component_license_is_spdx_standard": 0,
94-
"component_include_in_report": 1,
95-
"component_is_copyleft": 0,
96-
"component_identified_date": "2025-12-08 09:13:10"
97-
}
98-
},
82+
"components": [],
9983
"comments": []
10084
}
10185
}

0 commit comments

Comments
 (0)