Skip to content

Commit 0faab4e

Browse files
authored
Merge pull request #110 from doc-detective/rc
Updated click schema string shorthand to match the find schema
2 parents adf368b + 2235525 commit 0faab4e

File tree

11 files changed

+388
-256
lines changed

11 files changed

+388
-256
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "doc-detective-common",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "Shared components for Doc Detective projects.",
55
"main": "src/index.js",
66
"scripts": {

src/schemas/output_schemas/click_v3.schema.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@
44
"description": "Click or tap an element.",
55
"anyOf": [
66
{
7-
"description": "Kind of click to perform.",
7+
"title": "Find element (simple)",
88
"type": "string",
9-
"enum": [
10-
"left",
11-
"right",
12-
"middle"
13-
]
9+
"description": "Display text or selector of the element to find."
1410
},
1511
{
12+
"title": "Click element (detailed)",
1613
"type": "object",
1714
"anyOf": [
1815
{
@@ -52,6 +49,11 @@
5249
],
5350
"components": {
5451
"schemas": {
52+
"string": {
53+
"title": "Find element (simple)",
54+
"type": "string",
55+
"description": "Display text or selector of the element to find."
56+
},
5557
"button": {
5658
"description": "Kind of click to perform.",
5759
"type": "string",
@@ -62,6 +64,7 @@
6264
]
6365
},
6466
"object": {
67+
"title": "Click element (detailed)",
6568
"type": "object",
6669
"anyOf": [
6770
{

src/schemas/output_schemas/config_v3.schema.json

Lines changed: 54 additions & 36 deletions
Large diffs are not rendered by default.

src/schemas/output_schemas/find_v3.schema.json

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,12 @@
5252
"description": "Click or tap an element.",
5353
"anyOf": [
5454
{
55-
"description": "Kind of click to perform.",
55+
"title": "Find element (simple)",
5656
"type": "string",
57-
"enum": [
58-
"left",
59-
"right",
60-
"middle"
61-
]
57+
"description": "Display text or selector of the element to find."
6258
},
6359
{
60+
"title": "Click element (detailed)",
6461
"type": "object",
6562
"anyOf": [
6663
{
@@ -100,6 +97,11 @@
10097
],
10198
"components": {
10299
"schemas": {
100+
"string": {
101+
"title": "Find element (simple)",
102+
"type": "string",
103+
"description": "Display text or selector of the element to find."
104+
},
103105
"button": {
104106
"description": "Kind of click to perform.",
105107
"type": "string",
@@ -110,6 +112,7 @@
110112
]
111113
},
112114
"object": {
115+
"title": "Click element (detailed)",
113116
"type": "object",
114117
"anyOf": [
115118
{
@@ -387,15 +390,12 @@
387390
"description": "Click or tap an element.",
388391
"anyOf": [
389392
{
390-
"description": "Kind of click to perform.",
393+
"title": "Find element (simple)",
391394
"type": "string",
392-
"enum": [
393-
"left",
394-
"right",
395-
"middle"
396-
]
395+
"description": "Display text or selector of the element to find."
397396
},
398397
{
398+
"title": "Click element (detailed)",
399399
"type": "object",
400400
"anyOf": [
401401
{
@@ -435,6 +435,11 @@
435435
],
436436
"components": {
437437
"schemas": {
438+
"string": {
439+
"title": "Find element (simple)",
440+
"type": "string",
441+
"description": "Display text or selector of the element to find."
442+
},
438443
"button": {
439444
"description": "Kind of click to perform.",
440445
"type": "string",
@@ -445,6 +450,7 @@
445450
]
446451
},
447452
"object": {
453+
"title": "Click element (detailed)",
448454
"type": "object",
449455
"anyOf": [
450456
{

src/schemas/output_schemas/report_v3.schema.json

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,15 +1476,12 @@
14761476
"description": "Click or tap an element.",
14771477
"anyOf": [
14781478
{
1479-
"description": "Kind of click to perform.",
1479+
"title": "Find element (simple)",
14801480
"type": "string",
1481-
"enum": [
1482-
"left",
1483-
"right",
1484-
"middle"
1485-
]
1481+
"description": "Display text or selector of the element to find."
14861482
},
14871483
{
1484+
"title": "Click element (detailed)",
14881485
"type": "object",
14891486
"anyOf": [
14901487
{
@@ -1524,6 +1521,11 @@
15241521
],
15251522
"components": {
15261523
"schemas": {
1524+
"string": {
1525+
"title": "Find element (simple)",
1526+
"type": "string",
1527+
"description": "Display text or selector of the element to find."
1528+
},
15271529
"button": {
15281530
"description": "Kind of click to perform.",
15291531
"type": "string",
@@ -1534,6 +1536,7 @@
15341536
]
15351537
},
15361538
"object": {
1539+
"title": "Click element (detailed)",
15371540
"type": "object",
15381541
"anyOf": [
15391542
{
@@ -1687,15 +1690,12 @@
16871690
"description": "Click or tap an element.",
16881691
"anyOf": [
16891692
{
1690-
"description": "Kind of click to perform.",
1693+
"title": "Find element (simple)",
16911694
"type": "string",
1692-
"enum": [
1693-
"left",
1694-
"right",
1695-
"middle"
1696-
]
1695+
"description": "Display text or selector of the element to find."
16971696
},
16981697
{
1698+
"title": "Click element (detailed)",
16991699
"type": "object",
17001700
"anyOf": [
17011701
{
@@ -1735,6 +1735,11 @@
17351735
],
17361736
"components": {
17371737
"schemas": {
1738+
"string": {
1739+
"title": "Find element (simple)",
1740+
"type": "string",
1741+
"description": "Display text or selector of the element to find."
1742+
},
17381743
"button": {
17391744
"description": "Kind of click to perform.",
17401745
"type": "string",
@@ -1745,6 +1750,7 @@
17451750
]
17461751
},
17471752
"object": {
1753+
"title": "Click element (detailed)",
17481754
"type": "object",
17491755
"anyOf": [
17501756
{
@@ -2022,15 +2028,12 @@
20222028
"description": "Click or tap an element.",
20232029
"anyOf": [
20242030
{
2025-
"description": "Kind of click to perform.",
2031+
"title": "Find element (simple)",
20262032
"type": "string",
2027-
"enum": [
2028-
"left",
2029-
"right",
2030-
"middle"
2031-
]
2033+
"description": "Display text or selector of the element to find."
20322034
},
20332035
{
2036+
"title": "Click element (detailed)",
20342037
"type": "object",
20352038
"anyOf": [
20362039
{
@@ -2070,6 +2073,11 @@
20702073
],
20712074
"components": {
20722075
"schemas": {
2076+
"string": {
2077+
"title": "Find element (simple)",
2078+
"type": "string",
2079+
"description": "Display text or selector of the element to find."
2080+
},
20732081
"button": {
20742082
"description": "Kind of click to perform.",
20752083
"type": "string",
@@ -2080,6 +2088,7 @@
20802088
]
20812089
},
20822090
"object": {
2091+
"title": "Click element (detailed)",
20832092
"type": "object",
20842093
"anyOf": [
20852094
{

src/schemas/output_schemas/spec_v3.schema.json

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,15 +1458,12 @@
14581458
"description": "Click or tap an element.",
14591459
"anyOf": [
14601460
{
1461-
"description": "Kind of click to perform.",
1461+
"title": "Find element (simple)",
14621462
"type": "string",
1463-
"enum": [
1464-
"left",
1465-
"right",
1466-
"middle"
1467-
]
1463+
"description": "Display text or selector of the element to find."
14681464
},
14691465
{
1466+
"title": "Click element (detailed)",
14701467
"type": "object",
14711468
"anyOf": [
14721469
{
@@ -1506,6 +1503,11 @@
15061503
],
15071504
"components": {
15081505
"schemas": {
1506+
"string": {
1507+
"title": "Find element (simple)",
1508+
"type": "string",
1509+
"description": "Display text or selector of the element to find."
1510+
},
15091511
"button": {
15101512
"description": "Kind of click to perform.",
15111513
"type": "string",
@@ -1516,6 +1518,7 @@
15161518
]
15171519
},
15181520
"object": {
1521+
"title": "Click element (detailed)",
15191522
"type": "object",
15201523
"anyOf": [
15211524
{
@@ -1669,15 +1672,12 @@
16691672
"description": "Click or tap an element.",
16701673
"anyOf": [
16711674
{
1672-
"description": "Kind of click to perform.",
1675+
"title": "Find element (simple)",
16731676
"type": "string",
1674-
"enum": [
1675-
"left",
1676-
"right",
1677-
"middle"
1678-
]
1677+
"description": "Display text or selector of the element to find."
16791678
},
16801679
{
1680+
"title": "Click element (detailed)",
16811681
"type": "object",
16821682
"anyOf": [
16831683
{
@@ -1717,6 +1717,11 @@
17171717
],
17181718
"components": {
17191719
"schemas": {
1720+
"string": {
1721+
"title": "Find element (simple)",
1722+
"type": "string",
1723+
"description": "Display text or selector of the element to find."
1724+
},
17201725
"button": {
17211726
"description": "Kind of click to perform.",
17221727
"type": "string",
@@ -1727,6 +1732,7 @@
17271732
]
17281733
},
17291734
"object": {
1735+
"title": "Click element (detailed)",
17301736
"type": "object",
17311737
"anyOf": [
17321738
{
@@ -2004,15 +2010,12 @@
20042010
"description": "Click or tap an element.",
20052011
"anyOf": [
20062012
{
2007-
"description": "Kind of click to perform.",
2013+
"title": "Find element (simple)",
20082014
"type": "string",
2009-
"enum": [
2010-
"left",
2011-
"right",
2012-
"middle"
2013-
]
2015+
"description": "Display text or selector of the element to find."
20142016
},
20152017
{
2018+
"title": "Click element (detailed)",
20162019
"type": "object",
20172020
"anyOf": [
20182021
{
@@ -2052,6 +2055,11 @@
20522055
],
20532056
"components": {
20542057
"schemas": {
2058+
"string": {
2059+
"title": "Find element (simple)",
2060+
"type": "string",
2061+
"description": "Display text or selector of the element to find."
2062+
},
20552063
"button": {
20562064
"description": "Kind of click to perform.",
20572065
"type": "string",
@@ -2062,6 +2070,7 @@
20622070
]
20632071
},
20642072
"object": {
2073+
"title": "Click element (detailed)",
20652074
"type": "object",
20662075
"anyOf": [
20672076
{

0 commit comments

Comments
 (0)