@lowdefy/docs 4.0.0-alpha.6 → 4.0.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/CHANGELOG.md +75 -104
  2. package/actions/JsAction.yaml +6 -6
  3. package/blocks/container/Affix.yaml +1 -1
  4. package/blocks/container/Alert.yaml +2 -2
  5. package/blocks/container/Badge.yaml +1 -1
  6. package/blocks/container/Box.yaml +1 -1
  7. package/blocks/container/Card.yaml +1 -1
  8. package/blocks/container/Collapse.yaml +1 -1
  9. package/blocks/container/Comment.yaml +4 -4
  10. package/blocks/container/ConfirmModal.yaml +1 -1
  11. package/blocks/container/Descriptions.yaml +2 -2
  12. package/blocks/container/Drawer.yaml +1 -1
  13. package/blocks/container/Label.yaml +1 -2
  14. package/blocks/container/Modal.yaml +1 -1
  15. package/blocks/container/PageHCF.yaml +1 -1
  16. package/blocks/container/PageHCSF.yaml +1 -1
  17. package/blocks/container/PageHSCF.yaml +1 -1
  18. package/blocks/container/PageHeaderMenu.yaml +3 -3
  19. package/blocks/container/PageSHCF.yaml +1 -1
  20. package/blocks/container/PageSiderMenu.yaml +3 -3
  21. package/blocks/container/Result.yaml +2 -2
  22. package/blocks/container/Span.yaml +1 -1
  23. package/blocks/container/Spin.yaml +2 -2
  24. package/blocks/container/Tabs.yaml +2 -2
  25. package/blocks/container/Tooltip.yaml +1 -1
  26. package/blocks/display/Anchor.yaml +1 -2
  27. package/blocks/display/Avatar.yaml +1 -2
  28. package/blocks/display/Breadcrumb.yaml +2 -3
  29. package/blocks/display/Button.yaml +7 -7
  30. package/blocks/display/DangerousHtml.yaml +1 -1
  31. package/blocks/display/DangerousMarkdown.yaml +1 -1
  32. package/blocks/display/Divider.yaml +1 -3
  33. package/blocks/display/EChart.yaml +1 -1
  34. package/blocks/display/Html.yaml +2 -2
  35. package/blocks/display/Icon.yaml +1 -3
  36. package/blocks/display/Img.yaml +1 -1
  37. package/blocks/display/Markdown.yaml +5 -6
  38. package/blocks/display/MarkdownWithCode.yaml +3 -5
  39. package/blocks/display/Menu.yaml +3 -3
  40. package/blocks/display/Message.yaml +1 -1
  41. package/blocks/display/MobileMenu.yaml +3 -4
  42. package/blocks/display/Notification.yaml +2 -2
  43. package/blocks/display/Paragraph.yaml +2 -4
  44. package/blocks/display/Progress.yaml +8 -9
  45. package/blocks/display/Skeleton.yaml +1 -2
  46. package/blocks/display/Statistic.yaml +3 -5
  47. package/blocks/display/Title.yaml +1 -1
  48. package/blocks/input/AutoComplete.yaml +1 -2
  49. package/blocks/input/ButtonSelector.yaml +1 -2
  50. package/blocks/input/CheckboxSelector.yaml +1 -2
  51. package/blocks/input/CheckboxSwitch.yaml +1 -1
  52. package/blocks/input/ChromeColorSelector.yaml +1 -2
  53. package/blocks/input/CircleColorSelector.yaml +1 -2
  54. package/blocks/input/ColorSelector.yaml +1 -2
  55. package/blocks/input/CompactColorSelector.yaml +1 -2
  56. package/blocks/input/DateRangeSelector.yaml +1 -2
  57. package/blocks/input/DateSelector.yaml +1 -2
  58. package/blocks/input/DateTimeSelector.yaml +1 -2
  59. package/blocks/input/GithubColorSelector.yaml +1 -2
  60. package/blocks/input/MonthSelector.yaml +1 -2
  61. package/blocks/input/MultipleSelector.yaml +1 -1
  62. package/blocks/input/NumberInput.yaml +1 -1
  63. package/blocks/input/Pagination.yaml +3 -3
  64. package/blocks/input/ParagraphInput.yaml +1 -1
  65. package/blocks/input/PasswordInput.yaml +1 -1
  66. package/blocks/input/RadioSelector.yaml +1 -1
  67. package/blocks/input/RatingSlider.yaml +1 -1
  68. package/blocks/input/S3UploadButton.yaml +1 -1
  69. package/blocks/input/Selector.yaml +1 -1
  70. package/blocks/input/SliderColorSelector.yaml +1 -1
  71. package/blocks/input/SwatchesColorSelector.yaml +1 -1
  72. package/blocks/input/Switch.yaml +1 -1
  73. package/blocks/input/TextArea.yaml +1 -2
  74. package/blocks/input/TextInput.yaml +7 -7
  75. package/blocks/input/TitleInput.yaml +1 -1
  76. package/blocks/input/TwitterColorSelector.yaml +1 -1
  77. package/blocks/input/WeekSelector.yaml +1 -1
  78. package/blocks/list/ControlledList.yaml +18 -18
  79. package/blocks/list/List.yaml +16 -17
  80. package/blocks/list/TimelineList.yaml +23 -22
  81. package/concepts/cli.yaml +7 -7
  82. package/concepts/custom-blocks.yaml +16 -2
  83. package/concepts/custom-code.yaml +5 -4
  84. package/concepts/lowdefy-schema.yaml +5 -4
  85. package/connections/AxiosHttp.yaml +1 -1
  86. package/connections/Knex.yaml +7 -7
  87. package/connections/MongoDB.yaml +176 -47
  88. package/deployment/aws-lambda.yaml +3 -3
  89. package/deployment/docker.yaml +4 -4
  90. package/deployment/node-server.yaml +1 -1
  91. package/howto/generate-csv.yaml.njk +7 -6
  92. package/howto/generate-pdf.yaml.njk +21 -21
  93. package/howto/generateCsv/lowdefy.yaml +32 -31
  94. package/howto/generatePdf/lowdefy.yaml +10 -9
  95. package/introduction.yaml +1 -1
  96. package/lowdefy.yaml +1 -1
  97. package/menus.yaml +26 -29
  98. package/operators/_actions.yaml +2 -2
  99. package/operators/_get.yaml +6 -6
  100. package/operators/_js.yaml +2 -2
  101. package/operators/_ref.yaml +40 -6
  102. package/operators/_yaml.yaml +39 -15
  103. package/package.json +6 -7
  104. package/pages.yaml +8 -8
  105. package/public/sitemap.xml +204 -204
  106. package/templates/blocks/defaultValueTransformer.js +4 -2
  107. package/templates/blocks/exampleTransformer.js +1 -1
  108. package/templates/blocks/propertiesFormTransformer.js +3 -3
  109. package/templates/blocks/propertiesGetterTransformer.js +2 -2
  110. package/templates/blocks/schemaTransformer.js +1 -1
  111. package/templates/blocks/template.yaml.njk +3 -4
  112. package/templates/blog.yaml.njk +5 -5
  113. package/templates/cli_command.yaml.njk +2 -2
  114. package/templates/footer.yaml.njk +18 -18
  115. package/templates/general.yaml.njk +4 -4
  116. package/templates/generateSitemap.js +1 -2
  117. package/templates/header.yaml +2 -2
  118. package/templates/navigation_buttons.yaml +2 -2
  119. package/templates/operatorsMethodTransformer.js +2 -2
  120. package/templates/test/array.test.js +146 -166
  121. package/templates/test/boolean.test.js +13 -17
  122. package/templates/test/button.test.js +21 -25
  123. package/templates/test/color.test.js +21 -23
  124. package/templates/test/enum.test.js +15 -19
  125. package/templates/test/icon.test.js +17 -21
  126. package/templates/test/integer.test.js +13 -17
  127. package/templates/test/manual.test.js +66 -74
  128. package/templates/test/number.test.js +13 -17
  129. package/templates/test/object.test.js +90 -98
  130. package/templates/test/oneOf.test.js +108 -120
  131. package/templates/test/string.test.js +13 -17
  132. package/templates/test/yaml.test.js +96 -112
  133. package/tutorial/tutorial-actions-operators-config.yaml +4 -4
  134. package/tutorial/tutorial-actions-operators.yaml +6 -6
  135. package/tutorial/tutorial-add-blocks-config.yaml +4 -4
  136. package/tutorial/tutorial-add-blocks.yaml +4 -4
  137. package/tutorial/tutorial-create-page-config.yaml +2 -2
  138. package/tutorial/tutorial-create-page.yaml +4 -4
  139. package/tutorial/tutorial-deploy.yaml +2 -2
  140. package/tutorial/tutorial-requests-config.yaml +4 -4
  141. package/tutorial/tutorial-requests.yaml +2 -2
  142. package/tutorial/tutorial-start.yaml +6 -6
  143. package/users/login-and-logout.yaml +2 -2
  144. package/users/protected-pages.yaml +2 -2
  145. package/users/roles.yaml +2 -2
  146. package/users/users-introduction.yaml +2 -2
@@ -19,16 +19,14 @@ import propertiesGetterTransformer from '../blocks/propertiesGetterTransformer';
19
19
  import defaultValueTransformer from '../blocks/defaultValueTransformer';
20
20
 
21
21
  const schema = {
22
- schema: {
22
+ properties: {
23
+ type: 'object',
23
24
  properties: {
24
- type: 'object',
25
- properties: {
26
- options: {
27
- type: 'array',
28
- items: {
29
- type: 'string',
30
- description: 'string description',
31
- },
25
+ options: {
26
+ type: 'array',
27
+ items: {
28
+ type: 'string',
29
+ description: 'string description',
32
30
  },
33
31
  },
34
32
  },
@@ -96,17 +94,15 @@ test('array defaultValueTransformer', () => {
96
94
  }
97
95
  `);
98
96
  const schemaDV = {
99
- schema: {
97
+ properties: {
98
+ type: 'object',
100
99
  properties: {
101
- type: 'object',
102
- properties: {
103
- options: {
104
- type: 'array',
105
- default: ['a'],
106
- items: {
107
- type: 'string',
108
- description: 'string description',
109
- },
100
+ options: {
101
+ type: 'array',
102
+ default: ['a'],
103
+ items: {
104
+ type: 'string',
105
+ description: 'string description',
110
106
  },
111
107
  },
112
108
  },
@@ -122,23 +118,21 @@ test('array defaultValueTransformer', () => {
122
118
  });
123
119
 
124
120
  const schemaArrayObject = {
125
- schema: {
121
+ properties: {
122
+ type: 'object',
126
123
  properties: {
127
- type: 'object',
128
- properties: {
129
- options: {
130
- type: 'array',
131
- items: {
132
- type: 'object',
133
- properties: {
134
- str: {
135
- type: 'string',
136
- description: 'string description',
137
- },
138
- num: {
139
- type: 'number',
140
- description: 'number description',
141
- },
124
+ options: {
125
+ type: 'array',
126
+ items: {
127
+ type: 'object',
128
+ properties: {
129
+ str: {
130
+ type: 'string',
131
+ description: 'string description',
132
+ },
133
+ num: {
134
+ type: 'number',
135
+ description: 'number description',
142
136
  },
143
137
  },
144
138
  },
@@ -275,24 +269,22 @@ test('array schemaArrayObject defaultValueTransformer', () => {
275
269
  }
276
270
  `);
277
271
  const schemaArrayObjectDV = {
278
- schema: {
272
+ properties: {
273
+ type: 'object',
279
274
  properties: {
280
- type: 'object',
281
- properties: {
282
- options: {
283
- type: 'array',
284
- default: [{ str: 'a' }],
285
- items: {
286
- type: 'object',
287
- properties: {
288
- str: {
289
- type: 'string',
290
- description: 'string description',
291
- },
292
- num: {
293
- type: 'number',
294
- description: 'numebr description',
295
- },
275
+ options: {
276
+ type: 'array',
277
+ default: [{ str: 'a' }],
278
+ items: {
279
+ type: 'object',
280
+ properties: {
281
+ str: {
282
+ type: 'string',
283
+ description: 'string description',
284
+ },
285
+ num: {
286
+ type: 'number',
287
+ description: 'numebr description',
296
288
  },
297
289
  },
298
290
  },
@@ -312,24 +304,22 @@ test('array schemaArrayObject defaultValueTransformer', () => {
312
304
  });
313
305
 
314
306
  const schemaOneOfPrimitive = {
315
- schema: {
307
+ properties: {
308
+ type: 'object',
316
309
  properties: {
317
- type: 'object',
318
- properties: {
319
- options: {
320
- type: 'array',
321
- items: {
322
- oneOf: [
323
- {
324
- type: 'string',
325
- description: 'string description',
326
- },
327
- {
328
- type: 'number',
329
- description: 'number description',
330
- },
331
- ],
332
- },
310
+ options: {
311
+ type: 'array',
312
+ items: {
313
+ oneOf: [
314
+ {
315
+ type: 'string',
316
+ description: 'string description',
317
+ },
318
+ {
319
+ type: 'number',
320
+ description: 'number description',
321
+ },
322
+ ],
333
323
  },
334
324
  },
335
325
  },
@@ -554,25 +544,23 @@ test('array schemaOneOfPrimitive defaultValueTransformer', () => {
554
544
  }
555
545
  `);
556
546
  const schemaOneOfPrimitiveDV = {
557
- schema: {
547
+ properties: {
548
+ type: 'object',
558
549
  properties: {
559
- type: 'object',
560
- properties: {
561
- options: {
562
- type: 'array',
563
- default: ['a', 'b'],
564
- items: {
565
- oneOf: [
566
- {
567
- type: 'string',
568
- description: 'string description',
569
- },
570
- {
571
- type: 'number',
572
- description: 'number description',
573
- },
574
- ],
575
- },
550
+ options: {
551
+ type: 'array',
552
+ default: ['a', 'b'],
553
+ items: {
554
+ oneOf: [
555
+ {
556
+ type: 'string',
557
+ description: 'string description',
558
+ },
559
+ {
560
+ type: 'number',
561
+ description: 'number description',
562
+ },
563
+ ],
576
564
  },
577
565
  },
578
566
  },
@@ -589,28 +577,26 @@ test('array schemaOneOfPrimitive defaultValueTransformer', () => {
589
577
  });
590
578
 
591
579
  const schemaPrimitiveOneOf = {
592
- schema: {
580
+ properties: {
581
+ type: 'object',
593
582
  properties: {
594
- type: 'object',
595
- properties: {
596
- options: {
597
- oneOf: [
598
- {
599
- type: 'array',
600
- items: {
601
- type: 'string',
602
- description: 'string description',
603
- },
583
+ options: {
584
+ oneOf: [
585
+ {
586
+ type: 'array',
587
+ items: {
588
+ type: 'string',
589
+ description: 'string description',
604
590
  },
605
- {
606
- type: 'array',
607
- items: {
608
- type: 'number',
609
- description: 'number description',
610
- },
591
+ },
592
+ {
593
+ type: 'array',
594
+ items: {
595
+ type: 'number',
596
+ description: 'number description',
611
597
  },
612
- ],
613
- },
598
+ },
599
+ ],
614
600
  },
615
601
  },
616
602
  },
@@ -829,29 +815,27 @@ test('array schemaPrimitiveOneOf defaultValueTransformer', () => {
829
815
  }
830
816
  `);
831
817
  const schemaPrimitiveOneOfDV = {
832
- schema: {
818
+ properties: {
819
+ type: 'object',
833
820
  properties: {
834
- type: 'object',
835
- properties: {
836
- options: {
837
- default: ['a', 'b'],
838
- oneOf: [
839
- {
840
- type: 'array',
841
- items: {
842
- type: 'string',
843
- description: 'string description',
844
- },
821
+ options: {
822
+ default: ['a', 'b'],
823
+ oneOf: [
824
+ {
825
+ type: 'array',
826
+ items: {
827
+ type: 'string',
828
+ description: 'string description',
845
829
  },
846
- {
847
- type: 'array',
848
- items: {
849
- type: 'number',
850
- description: 'number description',
851
- },
830
+ },
831
+ {
832
+ type: 'array',
833
+ items: {
834
+ type: 'number',
835
+ description: 'number description',
852
836
  },
853
- ],
854
- },
837
+ },
838
+ ],
855
839
  },
856
840
  },
857
841
  },
@@ -867,31 +851,29 @@ test('array schemaPrimitiveOneOf defaultValueTransformer', () => {
867
851
  });
868
852
 
869
853
  const schemaOneOfArrayStrArrayYaml = {
870
- schema: {
854
+ properties: {
855
+ type: 'object',
871
856
  properties: {
872
- type: 'object',
873
- properties: {
874
- options: {
875
- oneOf: [
876
- {
877
- type: 'array',
878
- items: {
879
- type: 'string',
880
- description: 'string description',
881
- },
857
+ options: {
858
+ oneOf: [
859
+ {
860
+ type: 'array',
861
+ items: {
862
+ type: 'string',
863
+ description: 'string description',
882
864
  },
883
- {
884
- type: 'array',
885
- items: {
886
- type: 'object',
887
- description: 'number description',
888
- docs: {
889
- displayType: 'yaml',
890
- },
865
+ },
866
+ {
867
+ type: 'array',
868
+ items: {
869
+ type: 'object',
870
+ description: 'number description',
871
+ docs: {
872
+ displayType: 'yaml',
891
873
  },
892
874
  },
893
- ],
894
- },
875
+ },
876
+ ],
895
877
  },
896
878
  },
897
879
  },
@@ -1131,32 +1113,30 @@ test('array schemaOneOfArrayStrArrayYaml propertiesGetterTransformer', () => {
1131
1113
  });
1132
1114
 
1133
1115
  const schemaNestedArray = {
1134
- schema: {
1116
+ properties: {
1117
+ type: 'object',
1135
1118
  properties: {
1136
- type: 'object',
1137
- properties: {
1138
- arr1: {
1139
- type: 'array',
1119
+ arr1: {
1120
+ type: 'array',
1121
+ description: 'string description',
1122
+ items: {
1123
+ type: 'object',
1140
1124
  description: 'string description',
1141
- items: {
1142
- type: 'object',
1143
- description: 'string description',
1144
- properties: {
1145
- obj: {
1125
+ properties: {
1126
+ obj: {
1127
+ type: 'object',
1128
+ docs: {
1129
+ displayType: 'yaml',
1130
+ },
1131
+ },
1132
+ arr2: {
1133
+ type: 'array',
1134
+ items: {
1146
1135
  type: 'object',
1147
1136
  docs: {
1148
1137
  displayType: 'yaml',
1149
1138
  },
1150
1139
  },
1151
- arr2: {
1152
- type: 'array',
1153
- items: {
1154
- type: 'object',
1155
- docs: {
1156
- displayType: 'yaml',
1157
- },
1158
- },
1159
- },
1160
1140
  },
1161
1141
  },
1162
1142
  },
@@ -19,15 +19,13 @@ import propertiesGetterTransformer from '../blocks/propertiesGetterTransformer';
19
19
  import defaultValueTransformer from '../blocks/defaultValueTransformer';
20
20
 
21
21
  const schema = {
22
- schema: {
22
+ properties: {
23
+ type: 'object',
24
+ additionalProperties: false,
23
25
  properties: {
24
- type: 'object',
25
- additionalProperties: false,
26
- properties: {
27
- bool: {
28
- type: 'boolean',
29
- description: 'description.',
30
- },
26
+ bool: {
27
+ type: 'boolean',
28
+ description: 'description.',
31
29
  },
32
30
  },
33
31
  },
@@ -80,16 +78,14 @@ test('boolean defaultValueTransformer', () => {
80
78
  }
81
79
  `);
82
80
  const schemaDV = {
83
- schema: {
81
+ properties: {
82
+ type: 'object',
83
+ additionalProperties: false,
84
84
  properties: {
85
- type: 'object',
86
- additionalProperties: false,
87
- properties: {
88
- bool: {
89
- type: 'boolean',
90
- default: true,
91
- description: 'description.',
92
- },
85
+ bool: {
86
+ type: 'boolean',
87
+ default: true,
88
+ description: 'description.',
93
89
  },
94
90
  },
95
91
  },
@@ -19,17 +19,15 @@ import propertiesGetterTransformer from '../blocks/propertiesGetterTransformer';
19
19
  import defaultValueTransformer from '../blocks/defaultValueTransformer';
20
20
 
21
21
  const schema = {
22
- schema: {
22
+ properties: {
23
+ type: 'object',
24
+ additionalProperties: false,
23
25
  properties: {
24
- type: 'object',
25
- additionalProperties: false,
26
- properties: {
27
- field: {
28
- type: 'object',
29
- description: 'description',
30
- docs: {
31
- displayType: 'button',
32
- },
26
+ field: {
27
+ type: 'object',
28
+ description: 'description',
29
+ docs: {
30
+ displayType: 'button',
33
31
  },
34
32
  },
35
33
  },
@@ -137,22 +135,20 @@ test('button propertiesGetterTransformer', () => {
137
135
  test('button defaultValueTransformer', () => {
138
136
  expect(defaultValueTransformer(schema)).toMatchInlineSnapshot(`Object {}`);
139
137
  const schemaDV = {
140
- schema: {
138
+ properties: {
139
+ type: 'object',
140
+ additionalProperties: false,
141
141
  properties: {
142
- type: 'object',
143
- additionalProperties: false,
144
- properties: {
145
- field: {
146
- type: 'object',
147
- description: 'description',
148
- docs: {
149
- displayType: 'button',
150
- },
151
- default: {
152
- icon: 'UploadOutlined',
153
- title: 'Upload',
154
- type: 'default',
155
- },
142
+ field: {
143
+ type: 'object',
144
+ description: 'description',
145
+ docs: {
146
+ displayType: 'button',
147
+ },
148
+ default: {
149
+ icon: 'UploadOutlined',
150
+ title: 'Upload',
151
+ type: 'default',
156
152
  },
157
153
  },
158
154
  },
@@ -19,24 +19,23 @@ import propertiesGetterTransformer from '../blocks/propertiesGetterTransformer';
19
19
  import defaultValueTransformer from '../blocks/defaultValueTransformer';
20
20
 
21
21
  const schema = {
22
- schema: {
22
+ properties: {
23
+ type: 'object',
24
+ additionalProperties: false,
23
25
  properties: {
24
- type: 'object',
25
- additionalProperties: false,
26
- properties: {
27
- field: {
28
- type: 'string',
29
- description: 'description',
30
- docs: {
31
- displayType: 'color',
32
- },
26
+ field: {
27
+ type: 'string',
28
+ description: 'description',
29
+ docs: {
30
+ displayType: 'color',
33
31
  },
34
32
  },
35
33
  },
36
34
  },
37
35
  };
38
36
 
39
- test('color propertiesFormTransformer', () => {
37
+ test.todo(
38
+ 'color propertiesFormTransformer' /*() => {
40
39
  expect(propertiesFormTransformer(schema)).toMatchInlineSnapshot(`
41
40
  Array [
42
41
  Object {
@@ -78,7 +77,8 @@ test('color propertiesFormTransformer', () => {
78
77
  },
79
78
  ]
80
79
  `);
81
- });
80
+ }*/
81
+ );
82
82
 
83
83
  test('color propertiesGetterTransformer', () => {
84
84
  expect(propertiesGetterTransformer(schema, { block_type: 'Block' })).toMatchInlineSnapshot(`
@@ -103,18 +103,16 @@ test('color defaultValueTransformer', () => {
103
103
  }
104
104
  `);
105
105
  const schemaDV = {
106
- schema: {
106
+ properties: {
107
+ type: 'object',
108
+ additionalProperties: false,
107
109
  properties: {
108
- type: 'object',
109
- additionalProperties: false,
110
- properties: {
111
- field: {
112
- type: 'string',
113
- default: 'value',
114
- description: 'description',
115
- docs: {
116
- displayType: 'color',
117
- },
110
+ field: {
111
+ type: 'string',
112
+ default: 'value',
113
+ description: 'description',
114
+ docs: {
115
+ displayType: 'color',
118
116
  },
119
117
  },
120
118
  },
@@ -19,16 +19,14 @@ import propertiesGetterTransformer from '../blocks/propertiesGetterTransformer';
19
19
  import defaultValueTransformer from '../blocks/defaultValueTransformer';
20
20
 
21
21
  const schema = {
22
- schema: {
22
+ properties: {
23
+ type: 'object',
24
+ additionalProperties: false,
23
25
  properties: {
24
- type: 'object',
25
- additionalProperties: false,
26
- properties: {
27
- enum: {
28
- type: 'string',
29
- enum: ['a', 'b', 'c'],
30
- description: 'description.',
31
- },
26
+ enum: {
27
+ type: 'string',
28
+ enum: ['a', 'b', 'c'],
29
+ description: 'description.',
32
30
  },
33
31
  },
34
32
  },
@@ -86,17 +84,15 @@ test('enum defaultValueTransformer', () => {
86
84
  }
87
85
  `);
88
86
  const schemaDV = {
89
- schema: {
87
+ properties: {
88
+ type: 'object',
89
+ additionalProperties: false,
90
90
  properties: {
91
- type: 'object',
92
- additionalProperties: false,
93
- properties: {
94
- enum: {
95
- type: 'string',
96
- enum: ['a', 'b', 'c'],
97
- default: 'a',
98
- description: 'description.',
99
- },
91
+ enum: {
92
+ type: 'string',
93
+ enum: ['a', 'b', 'c'],
94
+ default: 'a',
95
+ description: 'description.',
100
96
  },
101
97
  },
102
98
  },