EnumValueAdded

data class EnumValueAdded(val contract: String, val value: String, val baselineFieldsCoercible: Boolean = false) : Change

An enum value added to an existing enum contract.

Constructors

Link copied to clipboard
constructor(contract: String, value: String, baselineFieldsCoercible: Boolean = false)

Properties

Link copied to clipboard

Whether, in the baseline (old) snapshot, every field that decodes this enum is a defaulted direct property — the precondition for coerceInputValues to rescue an unknown value in the forward direction (old code reading new data). coerceInputValues only coerces an unknown enum to a field's default, so a required field, a nested (List/Map) usage, or a top-level decode still throws. The classifier downgrades the forward BREAK to a WARN only when this is true and the reader coerces; otherwise it stays a BREAK (#129).

Link copied to clipboard
Link copied to clipboard