Skip to content

Commit efe2861

Browse files
committed
Add JsonProperty annotations to model classes
1 parent 66ab854 commit efe2861

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/main/java/io/okd/operators/controller/model/ApplicationRecipe.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.okd.operators.controller.model;
22

3+
import com.fasterxml.jackson.annotation.JsonProperty;
34
import lombok.Data;
45

56
import java.util.List;
@@ -8,11 +9,15 @@
89
@Data
910
public class ApplicationRecipe {
1011

12+
@JsonProperty
1113
String name;
1214

15+
@JsonProperty
1316
List<ComponentRecipe> components;
1417

18+
@JsonProperty
1519
Set<String> versions;
1620

21+
@JsonProperty
1722
boolean dateBasedVersioning;
1823
}

src/main/java/io/okd/operators/controller/model/ComponentRecipe.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.okd.operators.controller.model;
22

3+
import com.fasterxml.jackson.annotation.JsonProperty;
34
import io.fabric8.kubernetes.api.model.PersistentVolumeClaimSpec;
45
import io.okd.operators.controller.crds.dev.tekton.v1.PipelineRef;
56
import lombok.Data;
@@ -9,19 +10,27 @@
910
@Data
1011
public class ComponentRecipe {
1112

13+
@JsonProperty
1214
String name;
1315

16+
@JsonProperty
1417
String imageName;
1518

19+
@JsonProperty
1620
String branchFormat;
1721

22+
@JsonProperty
1823
Set<String> dependencies;
1924

25+
@JsonProperty
2026
ComponentType type;
2127

28+
@JsonProperty
2229
String gitUrl;
2330

31+
@JsonProperty
2432
PipelineRef pipelineRef;
2533

34+
@JsonProperty
2635
PersistentVolumeClaimSpec persistentVolumeClaim;
2736
}

0 commit comments

Comments
 (0)