Skip to content

Commit 64a8742

Browse files
committed
doc(sbom): add allowable SBOM export types
Signed-off-by: Gaurav Mishra <[email protected]>
1 parent a1a01c8 commit 64a8742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rest/resource-server/src/main/java/org/eclipse/sw360/rest/resourceserver/report/SW360ReportController.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import static com.google.common.base.Strings.isNullOrEmpty;
99
import static org.eclipse.sw360.datahandler.common.SW360Constants.CONTENT_TYPE_OPENXML_SPREADSHEET;
10+
import static org.eclipse.sw360.datahandler.common.SW360Constants.JSON_FILE_EXTENSION;
1011
import static org.eclipse.sw360.datahandler.common.SW360Constants.XML_FILE_EXTENSION;
1112
import static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.linkTo;
1213

@@ -103,7 +104,7 @@ public void getProjectReport(
103104
@RequestParam(value = "externalIds", required = false, defaultValue = "") String externalIds,
104105
@Parameter(description = "Generate report for only current project or with Sub projects. Can be supplied with modules [" + LICENSE_INFO + ", " + EXPORT_CREATE_PROJ_CLEARING_REPORT + "]")
105106
@RequestParam(value = "withSubProject", required = false, defaultValue = "false") boolean withSubProject,
106-
@Parameter(description = "Type of SBOM file extention")
107+
@Parameter(description = "Type of SBOM file", schema = @Schema(allowableValues = {XML_FILE_EXTENSION, JSON_FILE_EXTENSION}))
107108
@RequestParam(value = "bomType", required = false) String bomType,
108109
HttpServletRequest request,
109110
HttpServletResponse response
@@ -383,7 +384,6 @@ private String getBaseUrl(HttpServletRequest request) {
383384
String ctx = request.getContextPath();
384385
return url.substring(0, url.length() - uri.length() + ctx.length()) + "/";
385386
}
386-
387387

388388
private void exportSBOM(
389389
HttpServletResponse response, User sw360User, String module, String projectId,

0 commit comments

Comments
 (0)