Skip to content

Commit

Permalink
Add default constructor for jackson deserialization (#2432)
Browse files Browse the repository at this point in the history
* Add default constructor for jackson deserialization

* Add jackson dependency

* Add default constructor for SnowflakeAppContent
  • Loading branch information
janeenyamak1 authored Nov 4, 2023
1 parent 5b6d766 commit 1833643
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<!-- JACKSON -->

<!-- COMMONS-LANG -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@

package org.finos.legend.engine.language.pure.dsl.generation.extension;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class Artifact
{
public String content;
public String path;
public String format;

public Artifact()
{
//Empty constructor for Jackson
}

public Artifact(String content, String path, String format)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ public class SnowflakeAppContent extends FunctionActivatorDeploymentContent
public String version;
public String creationTime;

public SnowflakeAppContent()
{
//Empty constructor for Jackson
}

public SnowflakeAppContent(String applicationName, MutableList<String> sqlExpressions, AlloySDLC sdlc)
{
this.applicationName = applicationName;
Expand Down

0 comments on commit 1833643

Please sign in to comment.