Skip to content

Commit

Permalink
#25184 adding the system table resource
Browse files Browse the repository at this point in the history
  • Loading branch information
jdotcms committed Jul 11, 2023
1 parent cd501d7 commit eccb588
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

import com.dotcms.repackage.javax.validation.constraints.NotNull;
import com.dotcms.rest.api.Validated;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Encapsulates a key value pair
* @author jsanca
*/
public class KeyValueForm extends Validated {

Expand All @@ -14,7 +17,9 @@ public class KeyValueForm extends Validated {
@NotNull
private final String value;

public KeyValueForm(final String key, final String value) {
@JsonCreator
public KeyValueForm(@JsonProperty("key") final String key,
@JsonProperty("value") final String value) {
this.key = key;
this.value = value;
this.checkValid();
Expand Down

0 comments on commit eccb588

Please sign in to comment.