@sockethub/schemas 3.0.0-alpha.15 → 3.0.0-alpha.17

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.
@@ -0,0 +1,71 @@
1
+ {
2
+ "required": [
3
+ "object"
4
+ ],
5
+ "properties": {
6
+ "object": {
7
+ "oneOf": [
8
+ {
9
+ "type": "object",
10
+ "required": [
11
+ "type",
12
+ "url",
13
+ "username",
14
+ "password"
15
+ ],
16
+ "additionalProperties": false,
17
+ "properties": {
18
+ "type": {
19
+ "enum": [
20
+ "credentials"
21
+ ]
22
+ },
23
+ "url": {
24
+ "type": "string",
25
+ "format": "uri",
26
+ "pattern": "^https?://",
27
+ "maxLength": 4096
28
+ },
29
+ "username": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "maxLength": 1024
33
+ },
34
+ "password": {
35
+ "type": "string",
36
+ "minLength": 1,
37
+ "maxLength": 4096
38
+ }
39
+ }
40
+ },
41
+ {
42
+ "type": "object",
43
+ "required": [
44
+ "type",
45
+ "url",
46
+ "token"
47
+ ],
48
+ "additionalProperties": false,
49
+ "properties": {
50
+ "type": {
51
+ "enum": [
52
+ "credentials"
53
+ ]
54
+ },
55
+ "url": {
56
+ "type": "string",
57
+ "format": "uri",
58
+ "pattern": "^https?://",
59
+ "maxLength": 4096
60
+ },
61
+ "token": {
62
+ "type": "string",
63
+ "minLength": 1,
64
+ "maxLength": 8192
65
+ }
66
+ }
67
+ }
68
+ ]
69
+ }
70
+ }
71
+ }