From 45ad6527ab884ae44316907974381b1924d8f0c2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicolas=20S=C3=A9nave?=
<59770457+nsenave@users.noreply.github.com>
Date: Tue, 22 Oct 2024 17:06:51 +0200
Subject: [PATCH] fix: add option responses in table cell object (#271)
---
pom.xml | 2 +-
src/main/java/fr/insee/lunatic/model/flat/BodyCell.java | 6 ++++++
.../java/fr/insee/lunatic/model/flat/ComponentType.java | 1 +
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index fa8ac4c..77c9479 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
lunatic-model
jar
- 3.15.0
+ 3.15.1
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 d5407ac..6776514 100644
--- a/src/main/java/fr/insee/lunatic/model/flat/BodyCell.java
+++ b/src/main/java/fr/insee/lunatic/model/flat/BodyCell.java
@@ -27,6 +27,7 @@
"unit",
"options",
"response",
+ "optionResponses",
"bindingDependencies"
})
@Getter
@@ -62,10 +63,15 @@ public class BodyCell {
protected BigInteger colspan;
protected BigInteger rowspan;
+ /** For suggester cells: option responses. */
+ @JsonInclude(JsonInclude.Include.NON_EMPTY)
+ protected List optionResponses;
+
protected String id;
public BodyCell() {
this.options = new ArrayList<>();
+ this.optionResponses = new ArrayList<>();
}
}
diff --git a/src/main/java/fr/insee/lunatic/model/flat/ComponentType.java b/src/main/java/fr/insee/lunatic/model/flat/ComponentType.java
index b55f842..c72ceee 100644
--- a/src/main/java/fr/insee/lunatic/model/flat/ComponentType.java
+++ b/src/main/java/fr/insee/lunatic/model/flat/ComponentType.java
@@ -49,6 +49,7 @@
"components",
"response",
"responses",
+ "optionResponses",
"suggesters",
"variables",
"cleaning",