Skip to content

Commit

Permalink
Add default value to optional fields status and template_version
Browse files Browse the repository at this point in the history
  • Loading branch information
bichitra95 committed Jul 2, 2024
1 parent c6d0729 commit bfdf300
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public class DataContract {

@Valid @NotNull
public String kind;
public Status status;
@JsonProperty(value = "template_version", defaultValue = "0.0.1")
public String templateVersion;
public Status status = Status.DRAFT;
@JsonProperty(value = "template_version")
public String templateVersion = "0.0.1";
@Valid @NotNull
public String data_source;
@Valid @NotNull
Expand Down

0 comments on commit bfdf300

Please sign in to comment.