@@ -29,67 +29,43 @@ const createGlobalField = {
2929} ;
3030
3131const createNestedGlobalField = {
32- global_field : {
33- title : "Nested Global Field" ,
34- uid : "nested_global_field222" ,
35- description : "" ,
36- schema : [
37- {
38- data_type : "text" ,
39- display_name : "Single Line Textbox" ,
40- uid : "single_line" ,
41- field_metadata : {
42- description : "" ,
43- default_value : "" ,
44- version : 3 ,
45- } ,
46- format : "" ,
47- error_messages : {
48- format : "" ,
49- } ,
50- mandatory : false ,
51- multiple : false ,
52- non_localizable : false ,
53- unique : false ,
54- indexed : false ,
55- inbuilt_model : false ,
56- } ,
57- {
58- data_type : "global_field" ,
59- display_name : "Global" ,
60- reference_to : "first" ,
61- field_metadata : {
62- description : "" ,
63- } ,
64- uid : "global_field" ,
65- mandatory : false ,
66- multiple : false ,
67- non_localizable : false ,
68- unique : false ,
69- indexed : false ,
70- inbuilt_model : false ,
71- } ,
72- ] ,
73- referred_content_types : [
74- {
75- uid : "first" ,
76- title : "First" ,
77- } ,
78- ] ,
79- global_field_refs : [
80- {
81- uid : "first" ,
82- occurrence_count : 3 ,
83- isChild : true ,
84- paths : [ "schema.1" , "schema.3.schema.4" , "schema.4.blocks.0.schema.2" ] ,
85- } ,
86- {
87- uid : "first" ,
88- occurrence_count : 1 ,
89- isChild : false ,
90- } ,
91- ] ,
92- } ,
93- } ;
32+ "global_field" : {
33+ "title" : "Nested Global Fields9" ,
34+ "uid" : "nested_global_field9" ,
35+ "schema" : [
36+ {
37+ "data_type" : "text" ,
38+ "display_name" : "Single Line Textbox" ,
39+ "uid" : "single_line"
40+ } ,
41+ {
42+ "data_type" : "global_field" ,
43+ "display_name" : "Global" ,
44+ "uid" : "global_field" ,
45+ "reference_to" : "nested_global_field33"
46+ }
47+ ]
48+ }
49+ }
50+
51+ const createNestedGlobalFieldForReference = {
52+ "global_field" : {
53+ "title" : "nested global field for reference" ,
54+ "uid" : "nested_global_field33" ,
55+ "schema" : [
56+ {
57+ "data_type" : "text" ,
58+ "display_name" : "Single Line Textbox" ,
59+ "uid" : "single_line"
60+ } ,
61+ {
62+ "data_type" : "global_field" ,
63+ "display_name" : "Global" ,
64+ "uid" : "global_field" ,
65+ "reference_to" : "first"
66+ }
67+ ]
68+ }
69+ }
9470
95- export { createGlobalField , createNestedGlobalField } ;
71+ export { createGlobalField , createNestedGlobalField , createNestedGlobalFieldForReference } ;
0 commit comments