@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.
- package/CHANGELOG.md +75 -104
- package/actions/JsAction.yaml +6 -6
- package/blocks/container/Affix.yaml +1 -1
- package/blocks/container/Alert.yaml +2 -2
- package/blocks/container/Badge.yaml +1 -1
- package/blocks/container/Box.yaml +1 -1
- package/blocks/container/Card.yaml +1 -1
- package/blocks/container/Collapse.yaml +1 -1
- package/blocks/container/Comment.yaml +4 -4
- package/blocks/container/ConfirmModal.yaml +1 -1
- package/blocks/container/Descriptions.yaml +2 -2
- package/blocks/container/Drawer.yaml +1 -1
- package/blocks/container/Label.yaml +1 -2
- package/blocks/container/Modal.yaml +1 -1
- package/blocks/container/PageHCF.yaml +1 -1
- package/blocks/container/PageHCSF.yaml +1 -1
- package/blocks/container/PageHSCF.yaml +1 -1
- package/blocks/container/PageHeaderMenu.yaml +3 -3
- package/blocks/container/PageSHCF.yaml +1 -1
- package/blocks/container/PageSiderMenu.yaml +3 -3
- package/blocks/container/Result.yaml +2 -2
- package/blocks/container/Span.yaml +1 -1
- package/blocks/container/Spin.yaml +2 -2
- package/blocks/container/Tabs.yaml +2 -2
- package/blocks/container/Tooltip.yaml +1 -1
- package/blocks/display/Anchor.yaml +1 -2
- package/blocks/display/Avatar.yaml +1 -2
- package/blocks/display/Breadcrumb.yaml +2 -3
- package/blocks/display/Button.yaml +7 -7
- package/blocks/display/DangerousHtml.yaml +1 -1
- package/blocks/display/DangerousMarkdown.yaml +1 -1
- package/blocks/display/Divider.yaml +1 -3
- package/blocks/display/EChart.yaml +1 -1
- package/blocks/display/Html.yaml +2 -2
- package/blocks/display/Icon.yaml +1 -3
- package/blocks/display/Img.yaml +1 -1
- package/blocks/display/Markdown.yaml +5 -6
- package/blocks/display/MarkdownWithCode.yaml +3 -5
- package/blocks/display/Menu.yaml +3 -3
- package/blocks/display/Message.yaml +1 -1
- package/blocks/display/MobileMenu.yaml +3 -4
- package/blocks/display/Notification.yaml +2 -2
- package/blocks/display/Paragraph.yaml +2 -4
- package/blocks/display/Progress.yaml +8 -9
- package/blocks/display/Skeleton.yaml +1 -2
- package/blocks/display/Statistic.yaml +3 -5
- package/blocks/display/Title.yaml +1 -1
- package/blocks/input/AutoComplete.yaml +1 -2
- package/blocks/input/ButtonSelector.yaml +1 -2
- package/blocks/input/CheckboxSelector.yaml +1 -2
- package/blocks/input/CheckboxSwitch.yaml +1 -1
- package/blocks/input/ChromeColorSelector.yaml +1 -2
- package/blocks/input/CircleColorSelector.yaml +1 -2
- package/blocks/input/ColorSelector.yaml +1 -2
- package/blocks/input/CompactColorSelector.yaml +1 -2
- package/blocks/input/DateRangeSelector.yaml +1 -2
- package/blocks/input/DateSelector.yaml +1 -2
- package/blocks/input/DateTimeSelector.yaml +1 -2
- package/blocks/input/GithubColorSelector.yaml +1 -2
- package/blocks/input/MonthSelector.yaml +1 -2
- package/blocks/input/MultipleSelector.yaml +1 -1
- package/blocks/input/NumberInput.yaml +1 -1
- package/blocks/input/Pagination.yaml +3 -3
- package/blocks/input/ParagraphInput.yaml +1 -1
- package/blocks/input/PasswordInput.yaml +1 -1
- package/blocks/input/RadioSelector.yaml +1 -1
- package/blocks/input/RatingSlider.yaml +1 -1
- package/blocks/input/S3UploadButton.yaml +1 -1
- package/blocks/input/Selector.yaml +1 -1
- package/blocks/input/SliderColorSelector.yaml +1 -1
- package/blocks/input/SwatchesColorSelector.yaml +1 -1
- package/blocks/input/Switch.yaml +1 -1
- package/blocks/input/TextArea.yaml +1 -2
- package/blocks/input/TextInput.yaml +7 -7
- package/blocks/input/TitleInput.yaml +1 -1
- package/blocks/input/TwitterColorSelector.yaml +1 -1
- package/blocks/input/WeekSelector.yaml +1 -1
- package/blocks/list/ControlledList.yaml +18 -18
- package/blocks/list/List.yaml +16 -17
- package/blocks/list/TimelineList.yaml +23 -22
- package/concepts/cli.yaml +7 -7
- package/concepts/custom-blocks.yaml +16 -2
- package/concepts/custom-code.yaml +5 -4
- package/concepts/lowdefy-schema.yaml +5 -4
- package/connections/AxiosHttp.yaml +1 -1
- package/connections/Knex.yaml +7 -7
- package/connections/MongoDB.yaml +176 -47
- package/deployment/aws-lambda.yaml +3 -3
- package/deployment/docker.yaml +4 -4
- package/deployment/node-server.yaml +1 -1
- package/howto/generate-csv.yaml.njk +7 -6
- package/howto/generate-pdf.yaml.njk +21 -21
- package/howto/generateCsv/lowdefy.yaml +32 -31
- package/howto/generatePdf/lowdefy.yaml +10 -9
- package/introduction.yaml +1 -1
- package/lowdefy.yaml +1 -1
- package/menus.yaml +26 -29
- package/operators/_actions.yaml +2 -2
- package/operators/_get.yaml +6 -6
- package/operators/_js.yaml +2 -2
- package/operators/_ref.yaml +40 -6
- package/operators/_yaml.yaml +39 -15
- package/package.json +6 -7
- package/pages.yaml +8 -8
- package/public/sitemap.xml +204 -204
- package/templates/blocks/defaultValueTransformer.js +4 -2
- package/templates/blocks/exampleTransformer.js +1 -1
- package/templates/blocks/propertiesFormTransformer.js +3 -3
- package/templates/blocks/propertiesGetterTransformer.js +2 -2
- package/templates/blocks/schemaTransformer.js +1 -1
- package/templates/blocks/template.yaml.njk +3 -4
- package/templates/blog.yaml.njk +5 -5
- package/templates/cli_command.yaml.njk +2 -2
- package/templates/footer.yaml.njk +18 -18
- package/templates/general.yaml.njk +4 -4
- package/templates/generateSitemap.js +1 -2
- package/templates/header.yaml +2 -2
- package/templates/navigation_buttons.yaml +2 -2
- package/templates/operatorsMethodTransformer.js +2 -2
- package/templates/test/array.test.js +146 -166
- package/templates/test/boolean.test.js +13 -17
- package/templates/test/button.test.js +21 -25
- package/templates/test/color.test.js +21 -23
- package/templates/test/enum.test.js +15 -19
- package/templates/test/icon.test.js +17 -21
- package/templates/test/integer.test.js +13 -17
- package/templates/test/manual.test.js +66 -74
- package/templates/test/number.test.js +13 -17
- package/templates/test/object.test.js +90 -98
- package/templates/test/oneOf.test.js +108 -120
- package/templates/test/string.test.js +13 -17
- package/templates/test/yaml.test.js +96 -112
- package/tutorial/tutorial-actions-operators-config.yaml +4 -4
- package/tutorial/tutorial-actions-operators.yaml +6 -6
- package/tutorial/tutorial-add-blocks-config.yaml +4 -4
- package/tutorial/tutorial-add-blocks.yaml +4 -4
- package/tutorial/tutorial-create-page-config.yaml +2 -2
- package/tutorial/tutorial-create-page.yaml +4 -4
- package/tutorial/tutorial-deploy.yaml +2 -2
- package/tutorial/tutorial-requests-config.yaml +4 -4
- package/tutorial/tutorial-requests.yaml +2 -2
- package/tutorial/tutorial-start.yaml +6 -6
- package/users/login-and-logout.yaml +2 -2
- package/users/protected-pages.yaml +2 -2
- package/users/roles.yaml +2 -2
- package/users/users-introduction.yaml +2 -2
|
@@ -19,23 +19,21 @@ import propertiesGetterTransformer from '../blocks/propertiesGetterTransformer';
|
|
|
19
19
|
import defaultValueTransformer from '../blocks/defaultValueTransformer';
|
|
20
20
|
|
|
21
21
|
const schema = {
|
|
22
|
-
|
|
22
|
+
properties: {
|
|
23
|
+
type: 'object',
|
|
24
|
+
additionalProperties: false,
|
|
23
25
|
properties: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
description: 'string description',
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
},
|
|
26
|
+
field: {
|
|
27
|
+
oneOf: [
|
|
28
|
+
{
|
|
29
|
+
type: 'number',
|
|
30
|
+
description: 'number description',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: 'string',
|
|
34
|
+
description: 'string description',
|
|
35
|
+
},
|
|
36
|
+
],
|
|
39
37
|
},
|
|
40
38
|
},
|
|
41
39
|
},
|
|
@@ -225,24 +223,22 @@ test('oneOf defaultValueTransformer', () => {
|
|
|
225
223
|
}
|
|
226
224
|
`);
|
|
227
225
|
const schemaDV = {
|
|
228
|
-
|
|
226
|
+
properties: {
|
|
227
|
+
type: 'object',
|
|
228
|
+
additionalProperties: false,
|
|
229
229
|
properties: {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
description: 'string description',
|
|
243
|
-
},
|
|
244
|
-
],
|
|
245
|
-
},
|
|
230
|
+
field: {
|
|
231
|
+
default: 1,
|
|
232
|
+
oneOf: [
|
|
233
|
+
{
|
|
234
|
+
type: 'number',
|
|
235
|
+
description: 'number description',
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
type: 'string',
|
|
239
|
+
description: 'string description',
|
|
240
|
+
},
|
|
241
|
+
],
|
|
246
242
|
},
|
|
247
243
|
},
|
|
248
244
|
},
|
|
@@ -256,33 +252,31 @@ test('oneOf defaultValueTransformer', () => {
|
|
|
256
252
|
|
|
257
253
|
// for string object
|
|
258
254
|
const schemaStrObj = {
|
|
259
|
-
|
|
255
|
+
properties: {
|
|
256
|
+
type: 'object',
|
|
257
|
+
additionalProperties: false,
|
|
260
258
|
properties: {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
{
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
bool: {
|
|
279
|
-
type: 'boolean',
|
|
280
|
-
description: 'bool description',
|
|
281
|
-
},
|
|
259
|
+
field: {
|
|
260
|
+
oneOf: [
|
|
261
|
+
{
|
|
262
|
+
type: 'string',
|
|
263
|
+
description: 'string description',
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
type: 'object',
|
|
267
|
+
description: 'object description',
|
|
268
|
+
properties: {
|
|
269
|
+
str: {
|
|
270
|
+
type: 'string',
|
|
271
|
+
description: 'str description',
|
|
272
|
+
},
|
|
273
|
+
bool: {
|
|
274
|
+
type: 'boolean',
|
|
275
|
+
description: 'bool description',
|
|
282
276
|
},
|
|
283
277
|
},
|
|
284
|
-
|
|
285
|
-
|
|
278
|
+
},
|
|
279
|
+
],
|
|
286
280
|
},
|
|
287
281
|
},
|
|
288
282
|
},
|
|
@@ -509,36 +503,34 @@ test('oneOf schemaStrObj defaultValueTransformer', () => {
|
|
|
509
503
|
}
|
|
510
504
|
`);
|
|
511
505
|
const schemaDV = {
|
|
512
|
-
|
|
506
|
+
properties: {
|
|
507
|
+
type: 'object',
|
|
508
|
+
additionalProperties: false,
|
|
513
509
|
properties: {
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
510
|
+
field: {
|
|
511
|
+
default: {
|
|
512
|
+
str: 'x',
|
|
513
|
+
},
|
|
514
|
+
oneOf: [
|
|
515
|
+
{
|
|
516
|
+
type: 'string',
|
|
517
|
+
description: 'string description',
|
|
520
518
|
},
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
description: 'str description',
|
|
533
|
-
},
|
|
534
|
-
bool: {
|
|
535
|
-
type: 'boolean',
|
|
536
|
-
description: 'bool description',
|
|
537
|
-
},
|
|
519
|
+
{
|
|
520
|
+
type: 'object',
|
|
521
|
+
description: 'object description',
|
|
522
|
+
properties: {
|
|
523
|
+
str: {
|
|
524
|
+
type: 'string',
|
|
525
|
+
description: 'str description',
|
|
526
|
+
},
|
|
527
|
+
bool: {
|
|
528
|
+
type: 'boolean',
|
|
529
|
+
description: 'bool description',
|
|
538
530
|
},
|
|
539
531
|
},
|
|
540
|
-
|
|
541
|
-
|
|
532
|
+
},
|
|
533
|
+
],
|
|
542
534
|
},
|
|
543
535
|
},
|
|
544
536
|
},
|
|
@@ -553,26 +545,24 @@ test('oneOf schemaStrObj defaultValueTransformer', () => {
|
|
|
553
545
|
});
|
|
554
546
|
|
|
555
547
|
const schemaOneOfStrYaml = {
|
|
556
|
-
|
|
548
|
+
properties: {
|
|
549
|
+
type: 'object',
|
|
550
|
+
additionalProperties: false,
|
|
557
551
|
properties: {
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
{
|
|
568
|
-
|
|
569
|
-
description: 'object description',
|
|
570
|
-
docs: {
|
|
571
|
-
displayType: 'yaml',
|
|
572
|
-
},
|
|
552
|
+
field: {
|
|
553
|
+
oneOf: [
|
|
554
|
+
{
|
|
555
|
+
type: 'string',
|
|
556
|
+
description: 'string description',
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
type: 'object',
|
|
560
|
+
description: 'object description',
|
|
561
|
+
docs: {
|
|
562
|
+
displayType: 'yaml',
|
|
573
563
|
},
|
|
574
|
-
|
|
575
|
-
|
|
564
|
+
},
|
|
565
|
+
],
|
|
576
566
|
},
|
|
577
567
|
},
|
|
578
568
|
},
|
|
@@ -773,27 +763,25 @@ test('oneOf defaultValueTransformer schemaOneOfStrYaml', () => {
|
|
|
773
763
|
}
|
|
774
764
|
`);
|
|
775
765
|
const schemaOneOfStrYamlDV = {
|
|
776
|
-
|
|
766
|
+
properties: {
|
|
767
|
+
type: 'object',
|
|
768
|
+
additionalProperties: false,
|
|
777
769
|
properties: {
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
{
|
|
789
|
-
|
|
790
|
-
description: 'object description',
|
|
791
|
-
docs: {
|
|
792
|
-
displayType: 'yaml',
|
|
793
|
-
},
|
|
770
|
+
field: {
|
|
771
|
+
default: 'str',
|
|
772
|
+
oneOf: [
|
|
773
|
+
{
|
|
774
|
+
type: 'number',
|
|
775
|
+
description: 'number description',
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
type: 'object',
|
|
779
|
+
description: 'object description',
|
|
780
|
+
docs: {
|
|
781
|
+
displayType: 'yaml',
|
|
794
782
|
},
|
|
795
|
-
|
|
796
|
-
|
|
783
|
+
},
|
|
784
|
+
],
|
|
797
785
|
},
|
|
798
786
|
},
|
|
799
787
|
},
|
|
@@ -19,15 +19,13 @@ import propertiesGetterTransformer from '../blocks/propertiesGetterTransformer';
|
|
|
19
19
|
import defaultValueTransformer from '../blocks/defaultValueTransformer';
|
|
20
20
|
|
|
21
21
|
const schema = {
|
|
22
|
-
|
|
22
|
+
properties: {
|
|
23
|
+
type: 'object',
|
|
24
|
+
additionalProperties: false,
|
|
23
25
|
properties: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
str: {
|
|
28
|
-
type: 'string',
|
|
29
|
-
description: 'String description.',
|
|
30
|
-
},
|
|
26
|
+
str: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'String description.',
|
|
31
29
|
},
|
|
32
30
|
},
|
|
33
31
|
},
|
|
@@ -80,16 +78,14 @@ test('string defaultValueTransformer', () => {
|
|
|
80
78
|
}
|
|
81
79
|
`);
|
|
82
80
|
const schemaDV = {
|
|
83
|
-
|
|
81
|
+
properties: {
|
|
82
|
+
type: 'object',
|
|
83
|
+
additionalProperties: false,
|
|
84
84
|
properties: {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
type: 'string',
|
|
90
|
-
default: 'str_default',
|
|
91
|
-
description: 'String description.',
|
|
92
|
-
},
|
|
85
|
+
str: {
|
|
86
|
+
type: 'string',
|
|
87
|
+
default: 'str_default',
|
|
88
|
+
description: 'String 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
|
-
|
|
22
|
+
properties: {
|
|
23
|
+
type: 'object',
|
|
24
|
+
additionalProperties: false,
|
|
23
25
|
properties: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
description: 'description',
|
|
30
|
-
docs: {
|
|
31
|
-
displayType: 'yaml',
|
|
32
|
-
},
|
|
26
|
+
field: {
|
|
27
|
+
type: 'object',
|
|
28
|
+
description: 'description',
|
|
29
|
+
docs: {
|
|
30
|
+
displayType: 'yaml',
|
|
33
31
|
},
|
|
34
32
|
},
|
|
35
33
|
},
|
|
@@ -98,18 +96,16 @@ test('yaml propertiesGetterTransformer', () => {
|
|
|
98
96
|
test('yaml defaultValueTransformer', () => {
|
|
99
97
|
expect(defaultValueTransformer(schema)).toMatchInlineSnapshot(`Object {}`);
|
|
100
98
|
const schemaDV = {
|
|
101
|
-
|
|
99
|
+
properties: {
|
|
100
|
+
type: 'object',
|
|
101
|
+
additionalProperties: false,
|
|
102
102
|
properties: {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
description: 'description',
|
|
110
|
-
docs: {
|
|
111
|
-
displayType: 'yaml',
|
|
112
|
-
},
|
|
103
|
+
field: {
|
|
104
|
+
type: 'object',
|
|
105
|
+
default: 'value',
|
|
106
|
+
description: 'description',
|
|
107
|
+
docs: {
|
|
108
|
+
displayType: 'yaml',
|
|
113
109
|
},
|
|
114
110
|
},
|
|
115
111
|
},
|
|
@@ -123,21 +119,19 @@ test('yaml defaultValueTransformer', () => {
|
|
|
123
119
|
});
|
|
124
120
|
|
|
125
121
|
const schemaNested = {
|
|
126
|
-
|
|
122
|
+
properties: {
|
|
123
|
+
type: 'object',
|
|
124
|
+
additionalProperties: false,
|
|
127
125
|
properties: {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
description: 'field description',
|
|
138
|
-
docs: {
|
|
139
|
-
displayType: 'yaml',
|
|
140
|
-
},
|
|
126
|
+
obj: {
|
|
127
|
+
type: 'object',
|
|
128
|
+
description: 'obj description',
|
|
129
|
+
properties: {
|
|
130
|
+
field: {
|
|
131
|
+
type: 'object',
|
|
132
|
+
description: 'field description',
|
|
133
|
+
docs: {
|
|
134
|
+
displayType: 'yaml',
|
|
141
135
|
},
|
|
142
136
|
},
|
|
143
137
|
},
|
|
@@ -237,22 +231,20 @@ test('yaml schemaNested propertiesGetterTransformer', () => {
|
|
|
237
231
|
test('yaml schemaNested defaultValueTransformer', () => {
|
|
238
232
|
expect(defaultValueTransformer(schemaNested)).toMatchInlineSnapshot(`Object {}`);
|
|
239
233
|
const schemaDV = {
|
|
240
|
-
|
|
234
|
+
properties: {
|
|
235
|
+
type: 'object',
|
|
236
|
+
additionalProperties: false,
|
|
241
237
|
properties: {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
description: 'field description',
|
|
253
|
-
docs: {
|
|
254
|
-
displayType: 'yaml',
|
|
255
|
-
},
|
|
238
|
+
obj: {
|
|
239
|
+
type: 'object',
|
|
240
|
+
description: 'obj description',
|
|
241
|
+
properties: {
|
|
242
|
+
field: {
|
|
243
|
+
type: 'object',
|
|
244
|
+
default: { a: 1 },
|
|
245
|
+
description: 'field description',
|
|
246
|
+
docs: {
|
|
247
|
+
displayType: 'yaml',
|
|
256
248
|
},
|
|
257
249
|
},
|
|
258
250
|
},
|
|
@@ -272,20 +264,18 @@ test('yaml schemaNested defaultValueTransformer', () => {
|
|
|
272
264
|
});
|
|
273
265
|
|
|
274
266
|
const schemaYamlInArray = {
|
|
275
|
-
|
|
267
|
+
properties: {
|
|
268
|
+
type: 'object',
|
|
269
|
+
additionalProperties: false,
|
|
276
270
|
properties: {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
type: '
|
|
282
|
-
description: '
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
description: 'yaml description',
|
|
286
|
-
docs: {
|
|
287
|
-
displayType: 'yaml',
|
|
288
|
-
},
|
|
271
|
+
arr: {
|
|
272
|
+
type: 'array',
|
|
273
|
+
description: 'arr description',
|
|
274
|
+
items: {
|
|
275
|
+
type: 'object',
|
|
276
|
+
description: 'yaml description',
|
|
277
|
+
docs: {
|
|
278
|
+
displayType: 'yaml',
|
|
289
279
|
},
|
|
290
280
|
},
|
|
291
281
|
},
|
|
@@ -391,21 +381,19 @@ test('yaml schemaYamlInArray defaultValueTransformer', () => {
|
|
|
391
381
|
}
|
|
392
382
|
`);
|
|
393
383
|
const schemaYamlInArrayDV = {
|
|
394
|
-
|
|
384
|
+
properties: {
|
|
385
|
+
type: 'object',
|
|
386
|
+
additionalProperties: false,
|
|
395
387
|
properties: {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
description: '
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
description: 'yaml description',
|
|
406
|
-
docs: {
|
|
407
|
-
displayType: 'yaml',
|
|
408
|
-
},
|
|
388
|
+
arr: {
|
|
389
|
+
type: 'array',
|
|
390
|
+
default: [{ a: 1 }],
|
|
391
|
+
description: 'arr description',
|
|
392
|
+
items: {
|
|
393
|
+
type: 'object',
|
|
394
|
+
description: 'yaml description',
|
|
395
|
+
docs: {
|
|
396
|
+
displayType: 'yaml',
|
|
409
397
|
},
|
|
410
398
|
},
|
|
411
399
|
},
|
|
@@ -424,24 +412,22 @@ test('yaml schemaYamlInArray defaultValueTransformer', () => {
|
|
|
424
412
|
});
|
|
425
413
|
|
|
426
414
|
const schemaYamlInObjectInArray = {
|
|
427
|
-
|
|
415
|
+
properties: {
|
|
416
|
+
type: 'object',
|
|
417
|
+
additionalProperties: false,
|
|
428
418
|
properties: {
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
type: '
|
|
434
|
-
description: '
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
description: 'yaml description',
|
|
442
|
-
docs: {
|
|
443
|
-
displayType: 'yaml',
|
|
444
|
-
},
|
|
419
|
+
arr: {
|
|
420
|
+
type: 'array',
|
|
421
|
+
description: 'arr description',
|
|
422
|
+
items: {
|
|
423
|
+
type: 'object',
|
|
424
|
+
description: 'obj description',
|
|
425
|
+
properties: {
|
|
426
|
+
yaml: {
|
|
427
|
+
type: 'object',
|
|
428
|
+
description: 'yaml description',
|
|
429
|
+
docs: {
|
|
430
|
+
displayType: 'yaml',
|
|
445
431
|
},
|
|
446
432
|
},
|
|
447
433
|
},
|
|
@@ -580,25 +566,23 @@ test('yaml schemaYamlInObjectInArray defaultValueTransformer', () => {
|
|
|
580
566
|
}
|
|
581
567
|
`);
|
|
582
568
|
const schemaYamlInObjectInArrayDV = {
|
|
583
|
-
|
|
569
|
+
properties: {
|
|
570
|
+
type: 'object',
|
|
571
|
+
additionalProperties: false,
|
|
584
572
|
properties: {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
description: 'yaml description',
|
|
599
|
-
docs: {
|
|
600
|
-
displayType: 'yaml',
|
|
601
|
-
},
|
|
573
|
+
arr: {
|
|
574
|
+
type: 'array',
|
|
575
|
+
description: 'arr description',
|
|
576
|
+
default: [{ yaml: { b: 1 } }],
|
|
577
|
+
items: {
|
|
578
|
+
type: 'object',
|
|
579
|
+
description: 'obj description',
|
|
580
|
+
properties: {
|
|
581
|
+
yaml: {
|
|
582
|
+
type: 'object',
|
|
583
|
+
description: 'yaml description',
|
|
584
|
+
docs: {
|
|
585
|
+
displayType: 'yaml',
|
|
602
586
|
},
|
|
603
587
|
},
|
|
604
588
|
},
|
|
@@ -35,13 +35,13 @@ _ref:
|
|
|
35
35
|
- id: new-ticket
|
|
36
36
|
type: MenuLink
|
|
37
37
|
properties:
|
|
38
|
-
icon:
|
|
38
|
+
icon: AiOutlinedAlert
|
|
39
39
|
title: New ticket
|
|
40
40
|
pageId: new-ticket
|
|
41
41
|
- id: welcome
|
|
42
42
|
type: MenuLink
|
|
43
43
|
properties:
|
|
44
|
-
icon:
|
|
44
|
+
icon: AiOutlinedHome
|
|
45
45
|
title: Home
|
|
46
46
|
pageId: welcome
|
|
47
47
|
|
|
@@ -121,7 +121,7 @@ _ref:
|
|
|
121
121
|
title: Reset
|
|
122
122
|
block: true # Make the button fill all the space available to it
|
|
123
123
|
type: default # Make the button a plain button
|
|
124
|
-
icon:
|
|
124
|
+
icon: AiOutlinedClear
|
|
125
125
|
events:
|
|
126
126
|
onClick:
|
|
127
127
|
- id: reset
|
|
@@ -134,7 +134,7 @@ _ref:
|
|
|
134
134
|
title: Submit
|
|
135
135
|
block: true
|
|
136
136
|
type: primary # Make the button a primary button with color
|
|
137
|
-
icon:
|
|
137
|
+
icon: AiOutlinedSave
|
|
138
138
|
events:
|
|
139
139
|
onClick:
|
|
140
140
|
- id: validate
|