Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 324e641

Browse files
refactor(#212): refactored Jackson annotations
1 parent 3198855 commit 324e641

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,34 @@
11
package com.oembedler.moon.playground.boot;
22

3-
import com.fasterxml.jackson.annotation.JsonAutoDetect;
3+
import com.fasterxml.jackson.annotation.JsonIgnore;
44
import com.fasterxml.jackson.annotation.JsonInclude;
5-
import com.fasterxml.jackson.annotation.JsonProperty;
65
import com.oembedler.moon.playground.boot.settings.PlaygroundSettings;
76
import lombok.Data;
87

98
import javax.validation.constraints.NotEmpty;
109
import java.util.List;
1110

1211
@Data
13-
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.NONE, getterVisibility = JsonAutoDetect.Visibility.NONE,
14-
isGetterVisibility = JsonAutoDetect.Visibility.NONE)
1512
@JsonInclude(JsonInclude.Include.NON_NULL)
1613
public class PlaygroundProperties {
1714

1815
@NotEmpty
19-
@JsonProperty
2016
private String endpoint = "/graphql";
2117

2218
@NotEmpty
23-
@JsonProperty
2419
private String subscriptionEndpoint = "/subscriptions";
2520

21+
@JsonIgnore
2622
private boolean cdnEnabled;
2723

2824
@NotEmpty
25+
@JsonIgnore
2926
private String cdnVersion = "latest";
3027

28+
@JsonIgnore
3129
private String pageTitle = "Playground";
3230

33-
@JsonProperty
3431
private PlaygroundSettings settings;
3532

36-
@JsonProperty
3733
private List<PlaygroundTab> tabs;
3834
}

0 commit comments

Comments
 (0)