Skip to content

Commit ec044b8

Browse files
authored
Add gson annotations for fields and getter/setters (#1824)
1 parent 3f684ac commit ec044b8

File tree

8 files changed

+471
-125
lines changed

8 files changed

+471
-125
lines changed

org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/validation/BundleValidationRule.java

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,40 @@
11
package org.hl7.fhir.r5.utils.validation;
22

33
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import com.google.gson.annotations.SerializedName;
45

56
public class BundleValidationRule {
67
@JsonProperty("rule")
7-
private String rule;
8+
@SerializedName("rule")
9+
private
10+
String rule;
811

912
@JsonProperty("profile")
10-
private String profile;
13+
@SerializedName("profile")
14+
private
15+
String profile;
1116
private boolean checked;
1217

18+
@SerializedName("rule")
1319
@JsonProperty("rule")
1420
public String getRule() {
1521
return rule;
1622
}
1723

24+
@SerializedName("rule")
1825
@JsonProperty("rule")
1926
public BundleValidationRule setRule(String rule) {
2027
this.rule = rule;
2128
return this;
2229
}
2330

31+
@SerializedName("profile")
2432
@JsonProperty("profile")
2533
public String getProfile() {
2634
return profile;
2735
}
2836

37+
@SerializedName("profile")
2938
@JsonProperty("profile")
3039
public BundleValidationRule setProfile(String profile) {
3140
this.profile = profile;

0 commit comments

Comments
 (0)