From 0303949435cd093bae9a396ea2678cf782cfeca6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicolas=20S=C3=A9nave?=
<59770457+nsenave@users.noreply.github.com>
Date: Thu, 8 Aug 2024 14:44:12 +0200
Subject: [PATCH] feat: condition in unique or multiple choice options (#258)
* feat: condition filter in option and response checkbox group objects
* refactor: rename unique choice option and multiple choice response objects
* docs: add javadoc in response checkbox group object
* test: fix typo in checkbox group serialization test
---
pom.xml | 2 +-
.../fr/insee/lunatic/model/flat/BodyCell.java | 2 +-
.../lunatic/model/flat/CheckboxGroup.java | 2 +-
.../insee/lunatic/model/flat/CheckboxOne.java | 2 +-
.../fr/insee/lunatic/model/flat/Dropdown.java | 2 +-
.../insee/lunatic/model/flat/HeaderType.java | 2 +-
.../model/flat/{Options.java => Option.java} | 11 +++--
.../fr/insee/lunatic/model/flat/Radio.java | 2 +-
.../model/flat/ResponseCheckboxGroup.java | 40 +++++++++++++++++++
.../model/flat/ResponsesCheckboxGroup.java | 28 -------------
.../CheckboxGroupSerializationTest.java | 31 ++++++++++----
.../CheckboxOneSerializationTest.java | 6 +--
.../conversion/RadioSerializationTest.java | 13 ++++--
...st.java => ResponseCheckboxGroupTest.java} | 30 +++++++-------
14 files changed, 107 insertions(+), 66 deletions(-)
rename src/main/java/fr/insee/lunatic/model/flat/{Options.java => Option.java} (66%)
create mode 100644 src/main/java/fr/insee/lunatic/model/flat/ResponseCheckboxGroup.java
delete mode 100644 src/main/java/fr/insee/lunatic/model/flat/ResponsesCheckboxGroup.java
rename src/test/java/fr/insee/lunatic/conversion/{ResponsesCheckboxGroupTest.java => ResponseCheckboxGroupTest.java} (56%)
diff --git a/pom.xml b/pom.xml
index fb0c19b1..cecf9bc6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
lunatic-model
jar
- 3.13.1
+ 3.14.0
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 d3442ff4..d5407acf 100644
--- a/src/main/java/fr/insee/lunatic/model/flat/BodyCell.java
+++ b/src/main/java/fr/insee/lunatic/model/flat/BodyCell.java
@@ -42,7 +42,7 @@ public class BodyCell {
protected String dateFormat;
protected String unit;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
- protected List options;
+ protected List