Skip to content

Commit

Permalink
Merge pull request #217 from easimon/fix/jackson-deserialization-zones
Browse files Browse the repository at this point in the history
fix: add explicit JsonCreator to Zones class, required by current Jackson
  • Loading branch information
easimon authored Jan 12, 2025
2 parents c5e3366 + 58f9a6f commit b2bb2c4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package click.dobel.tado.exporter.apiclient.model

import click.dobel.tado.api.Zone
import click.dobel.tado.exporter.metrics.ZoneEntry
import com.fasterxml.jackson.annotation.JsonCreator

class Zones(zones: Collection<Zone>) : List<Zone> by ArrayList(zones)
class Zones @JsonCreator constructor(zones: Collection<Zone>) : List<Zone> by ArrayList(zones)

fun Collection<Zone>.toEntrySet() = this.map(::ZoneEntry).toSet()

0 comments on commit b2bb2c4

Please sign in to comment.