Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ private constructor(
/** The type of the configured score */
fun scoreType(): ProjectScoreType = scoreType.getRequired("score_type")

/** For categorical-type project scores, the list of all categories */
fun categories(): Optional<Categories> =
Optional.ofNullable(categories.getNullable("categories"))

Expand Down Expand Up @@ -95,6 +96,7 @@ private constructor(
/** The type of the configured score */
@JsonProperty("score_type") @ExcludeMissing fun _scoreType() = scoreType

/** For categorical-type project scores, the list of all categories */
@JsonProperty("categories") @ExcludeMissing fun _categories() = categories

@JsonProperty("config") @ExcludeMissing fun _config() = config
Expand Down Expand Up @@ -210,8 +212,10 @@ private constructor(
@ExcludeMissing
fun scoreType(scoreType: JsonField<ProjectScoreType>) = apply { this.scoreType = scoreType }

/** For categorical-type project scores, the list of all categories */
fun categories(categories: Categories) = categories(JsonField.of(categories))

/** For categorical-type project scores, the list of all categories */
@JsonProperty("categories")
@ExcludeMissing
fun categories(categories: JsonField<Categories>) = apply { this.categories = categories }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ constructor(
/** The type of the configured score */
@JsonProperty("score_type") fun scoreType(): ProjectScoreType? = scoreType

/** For categorical-type project scores, the list of all categories */
@JsonProperty("categories") fun categories(): Categories? = categories

@JsonProperty("config") fun config(): ProjectScoreConfig? = config
Expand Down Expand Up @@ -139,6 +140,7 @@ constructor(
@JsonProperty("score_type")
fun scoreType(scoreType: ProjectScoreType) = apply { this.scoreType = scoreType }

/** For categorical-type project scores, the list of all categories */
@JsonProperty("categories")
fun categories(categories: Categories) = apply { this.categories = categories }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ constructor(
/** The type of the configured score */
@JsonProperty("score_type") fun scoreType(): ProjectScoreType? = scoreType

/** For categorical-type project scores, the list of all categories */
@JsonProperty("categories") fun categories(): Categories? = categories

@JsonProperty("config") fun config(): ProjectScoreConfig? = config
Expand Down Expand Up @@ -139,6 +140,7 @@ constructor(
@JsonProperty("score_type")
fun scoreType(scoreType: ProjectScoreType) = apply { this.scoreType = scoreType }

/** For categorical-type project scores, the list of all categories */
@JsonProperty("categories")
fun categories(categories: Categories) = apply { this.categories = categories }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ constructor(
private val additionalProperties: Map<String, JsonValue>,
) {

/** For categorical-type project scores, the list of all categories */
@JsonProperty("categories") fun categories(): Categories? = categories

@JsonProperty("config") fun config(): ProjectScoreConfig? = config
Expand Down Expand Up @@ -128,6 +129,7 @@ constructor(
additionalProperties(projectScoreUpdateBody.additionalProperties)
}

/** For categorical-type project scores, the list of all categories */
@JsonProperty("categories")
fun categories(categories: Categories) = apply { this.categories = categories }

Expand Down