Only getting an error on marked line for this code:
Copy code
@Serializable
data class EmploymentAgreement(
@Contextual
val firstEmploymentDate: LocalDate,
val employmentLevel: Double,
@Contextual
val activeFrom: LocalDate,
@Contextual // Why no issue here?
val activeTo: LocalDate?,
val vacationDays: String,
@Contextual
val employmentTerminationDate: LocalDate?,
val employmentType: String,
) {
@Serializable
enum class EmploymentType {
@SerialName("Visstidsanställning")
Hourly,
@SerialName("Tillsvidareanställning") // Only this line reports an issue with Ktlint
Full
}
}