diff --git a/pom.xml b/pom.xml index 77c9479..5fae31a 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ lunatic-model jar - 3.15.1 + 3.15.2 Lunatic Model Classes and converters for the Lunatic model https://inseefr.github.io/Lunatic-Model/ diff --git a/src/main/java/fr/insee/lunatic/model/flat/BodyCell.java b/src/main/java/fr/insee/lunatic/model/flat/BodyCell.java index 6776514..83d7ec7 100644 --- a/src/main/java/fr/insee/lunatic/model/flat/BodyCell.java +++ b/src/main/java/fr/insee/lunatic/model/flat/BodyCell.java @@ -1,6 +1,8 @@ package fr.insee.lunatic.model.flat; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import lombok.Getter; import lombok.Setter; @@ -41,7 +43,10 @@ public class BodyCell { protected LabelType label; protected String format; protected String dateFormat; - protected String unit; + + /** For input number cells. */ + protected InputNumber.Unit unit; + @JsonInclude(JsonInclude.Include.NON_EMPTY) protected List