Skip to content

Commit

Permalink
fix(model): Keep the old "options" as a alias for "config"
Browse files Browse the repository at this point in the history
This is a fixup for 712c448 to allow for deserializing older results.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Oct 14, 2023
1 parent 6de1aae commit f4a8e6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions model/src/main/kotlin/config/ScannerConfiguration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

package org.ossreviewtoolkit.model.config

import com.fasterxml.jackson.annotation.JsonAlias
import com.fasterxml.jackson.annotation.JsonInclude

import org.ossreviewtoolkit.model.utils.FileArchiver
Expand Down Expand Up @@ -83,6 +84,7 @@ data class ScannerConfiguration(
* Scanner specific configuration options. The key needs to match the name of the scanner class, e.g. "ScanCode"
* for the ScanCode wrapper. See the documentation of the scanner for available options.
*/
@JsonAlias("options")
val config: Map<String, PluginConfiguration>? = null,

/**
Expand Down

0 comments on commit f4a8e6d

Please sign in to comment.