File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import org.ossreviewtoolkit.model.utils.requireNotEmptyNoDuplicates
2727import org.ossreviewtoolkit.model.utils.toPurl
2828import org.ossreviewtoolkit.utils.ort.DeclaredLicenseProcessor
2929import org.ossreviewtoolkit.utils.ort.ProcessedDeclaredLicense
30+ import org.ossreviewtoolkit.utils.ort.SpdxExpressionSortedConverter
3031import org.ossreviewtoolkit.utils.ort.StringSortedSetConverter
3132import org.ossreviewtoolkit.utils.spdx.SpdxExpression
3233import org.ossreviewtoolkit.utils.spdx.SpdxOperator
@@ -85,6 +86,7 @@ data class Package(
8586 * ORT itself does not set this field, it needs to be set by the user using a [PackageCuration].
8687 */
8788 @JsonInclude(JsonInclude .Include .NON_NULL )
89+ @JsonSerialize(converter = SpdxExpressionSortedConverter ::class )
8890 val concludedLicense : SpdxExpression ? = null ,
8991
9092 /* *
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize
2424import com.fasterxml.jackson.databind.annotation.JsonSerialize
2525import com.fasterxml.jackson.databind.util.StdConverter
2626
27+ import org.ossreviewtoolkit.utils.ort.SpdxExpressionSortedConverter
2728import org.ossreviewtoolkit.utils.spdx.SpdxExpression
2829
2930/* *
@@ -57,12 +58,14 @@ data class LicenseFindingCuration(
5758 * [detectedLicense] or if [detectedLicense] is null.
5859 */
5960 @JsonInclude(JsonInclude .Include .NON_NULL )
61+ @JsonSerialize(converter = SpdxExpressionSortedConverter ::class )
6062 val detectedLicense : SpdxExpression ? = null ,
6163
6264 /* *
6365 * The concluded license as SPDX expression or [org.ossreviewtoolkit.utils.spdx.SpdxConstants.NONE] for no license,
6466 * see https://spdx.dev/spdx-specification-21-web-version#h.jxpfx0ykyb60.
6567 */
68+ @JsonSerialize(converter = SpdxExpressionSortedConverter ::class )
6669 val concludedLicense : SpdxExpression ,
6770
6871 /* *
You can’t perform that action at this time.
0 commit comments