Skip to content

Commit

Permalink
fix: add option responses in table cell object (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsenave authored Oct 22, 2024
1 parent a109f14 commit 45ad652
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<artifactId>lunatic-model</artifactId>
<packaging>jar</packaging>

<version>3.15.0</version>
<version>3.15.1</version>
<name>Lunatic Model</name>
<description>Classes and converters for the Lunatic model</description>
<url>https://inseefr.github.io/Lunatic-Model/</url>
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/fr/insee/lunatic/model/flat/BodyCell.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"unit",
"options",
"response",
"optionResponses",
"bindingDependencies"
})
@Getter
Expand Down Expand Up @@ -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<Suggester.OptionResponse> optionResponses;

protected String id;

public BodyCell() {
this.options = new ArrayList<>();
this.optionResponses = new ArrayList<>();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"components",
"response",
"responses",
"optionResponses",
"suggesters",
"variables",
"cleaning",
Expand Down

0 comments on commit 45ad652

Please sign in to comment.