This repository was archived by the owner on Dec 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +15
-31
lines changed
playground-spring-boot-autoconfigure/src/main
java/com/oembedler/moon/playground/boot Expand file tree Collapse file tree 5 files changed +15
-31
lines changed Original file line number Diff line number Diff line change 33import com .oembedler .moon .playground .boot .properties .PlaygroundProperties ;
44import lombok .Data ;
55import org .springframework .boot .context .properties .ConfigurationProperties ;
6+ import org .springframework .boot .context .properties .NestedConfigurationProperty ;
67import org .springframework .validation .annotation .Validated ;
78
89@ Data
910@ ConfigurationProperties (prefix = "graphql" )
1011@ Validated
1112public class PlaygroundPropertiesConfiguration {
1213
14+ @ NestedConfigurationProperty
1315 private PlaygroundProperties playground = new PlaygroundProperties ();
1416}
Original file line number Diff line number Diff line change 33import com .fasterxml .jackson .annotation .JsonIgnore ;
44import com .fasterxml .jackson .annotation .JsonInclude ;
55import lombok .Data ;
6+ import org .springframework .boot .context .properties .NestedConfigurationProperty ;
67
78import javax .validation .constraints .NotEmpty ;
89import java .util .Collections ;
@@ -19,15 +20,18 @@ public class PlaygroundProperties {
1920 @ NotEmpty
2021 private String subscriptionEndpoint = "/subscriptions" ;
2122
23+ @ NestedConfigurationProperty
2224 @ JsonIgnore
2325 private PlaygroundCdn cdn = new PlaygroundCdn ();
2426
2527 @ JsonIgnore
2628 private String pageTitle = "Playground" ;
2729
30+ @ NestedConfigurationProperty
2831 private PlaygroundSettings settings ;
2932
3033 private Map <String , String > headers = Collections .emptyMap ();
3134
35+ @ NestedConfigurationProperty
3236 private List <PlaygroundTab > tabs = Collections .emptyList ();
3337}
Original file line number Diff line number Diff line change 88import com .oembedler .moon .playground .boot .properties .settings .PlaygroundSchemaSettings ;
99import com .oembedler .moon .playground .boot .properties .settings .PlaygroundTracingSettings ;
1010import lombok .Data ;
11+ import org .springframework .boot .context .properties .NestedConfigurationProperty ;
1112
1213@ Data
1314@ JsonInclude (JsonInclude .Include .NON_NULL )
1415public class PlaygroundSettings {
1516
17+ @ NestedConfigurationProperty
1618 @ JsonUnwrapped (prefix = "editor." )
1719 private PlaygroundEditorSettings editor ;
1820
21+ @ NestedConfigurationProperty
1922 @ JsonUnwrapped (prefix = "prettier." )
2023 private PlaygroundPrettierSettings prettier ;
2124
25+ @ NestedConfigurationProperty
2226 @ JsonUnwrapped (prefix = "request." )
2327 private PlaygroundRequestSettings request ;
2428
29+ @ NestedConfigurationProperty
2530 @ JsonUnwrapped (prefix = "schema." )
2631 private PlaygroundSchemaSettings schema ;
2732
33+ @ NestedConfigurationProperty
2834 @ JsonUnwrapped (prefix = "tracing." )
2935 private PlaygroundTracingSettings tracing ;
3036}
Original file line number Diff line number Diff line change 33import com .fasterxml .jackson .annotation .JsonInclude ;
44import com .fasterxml .jackson .annotation .JsonUnwrapped ;
55import lombok .Data ;
6+ import org .springframework .boot .context .properties .NestedConfigurationProperty ;
67
78@ Data
89@ JsonInclude (JsonInclude .Include .NON_NULL )
910public class PlaygroundSchemaSettings {
1011
1112 private Boolean disableComments ;
1213
14+ @ NestedConfigurationProperty
1315 @ JsonUnwrapped (prefix = "polling." )
1416 private PlaygroundSchemaPollingSettings polling ;
1517}
Original file line number Diff line number Diff line change 11{
2- "groups" : [
3- {
4- "name" : " playground"
5- }
6- ],
72 "properties" : [
83 {
9- "name" : " playground.mapping" ,
4+ "name" : " graphql. playground.mapping" ,
105 "defaultValue" : " /playground" ,
116 "type" : " java.lang.String"
12- },
13- {
14- "name" : " playground.endpoint.graphql" ,
15- "defaultValue" : " /graphql" ,
16- "type" : " java.lang.String"
17- },
18- {
19- "name" : " playground.endpoint.subscriptions" ,
20- "defaultValue" : " /subscriptions" ,
21- "type" : " java.lang.String"
22- },
23- {
24- "name" : " playground.cdn.enabled" ,
25- "defaultValue" : false ,
26- "type" : " java.lang.Boolean"
27- },
28- {
29- "name" : " playground.cdn.version" ,
30- "defaultValue" : " latest" ,
31- "type" : " java.lang.String"
32- },
33- {
34- "name" : " playground.pageTitle" ,
35- "defaultValue" : " Playground" ,
36- "type" : " java.lang.String"
377 }
388 ]
399}
You can’t perform that action at this time.
0 commit comments