Skip to content

Commit 45c47fe

Browse files
lisadglpatcern
authored andcommitted
Add actual contents of schema file
1 parent 78bf349 commit 45c47fe

File tree

1 file changed

+101
-1
lines changed

1 file changed

+101
-1
lines changed

schemas/ocm-discovery.json

Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,101 @@
1-
ocm-discovery.json
1+
{
2+
"title": "OCM API Discovery",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4+
"type": "object",
5+
"properties": {
6+
"enabled": {
7+
"type": "boolean"
8+
},
9+
"apiVersion": {
10+
"type": "string"
11+
},
12+
"endPoint": {
13+
"type": "string",
14+
"format": "uri"
15+
},
16+
"provider": {
17+
"type": "string"
18+
},
19+
"resourceTypes": {
20+
"type": "array",
21+
"items": { "$ref": "#/$defs/resourceType" }
22+
},
23+
"capabilities": {
24+
"type": "array",
25+
"description": "Capabilities values of 'exchange-token', 'webdav-uri', 'protocol-object', 'invites', 'invite-wayf' defined in draft",
26+
"items": {
27+
"type": "string"
28+
}
29+
},
30+
"criteria": {
31+
"type": "array",
32+
"description": "Criteria values of 'http-request-signatures', 'token-exchange', 'denlyist' and 'allowlist' are defined in draft",
33+
"items": {
34+
"type": "string"
35+
}
36+
},
37+
"publicKey": {
38+
"$ref": "#/$defs/publicKey"
39+
},
40+
"inviteAcceptDialog": {
41+
"type": "string",
42+
"format": "uri"
43+
},
44+
"tokenEndPoint": {
45+
"type": "string",
46+
"format": "uri"
47+
}
48+
},
49+
"required": [
50+
"enabled",
51+
"apiVersion",
52+
"endPoint",
53+
"resourceTypes"
54+
],
55+
"$defs": {
56+
"resourceType": {
57+
"properties": {
58+
"name": {
59+
"type": "string"
60+
},
61+
"shareTypes": {
62+
"type": "array"
63+
},
64+
"protocols": { "$ref": "#/$defs/protocols" }
65+
},
66+
"required": ["name", "shareTypes", "protocols"]
67+
},
68+
"protocols": {
69+
"type": "object",
70+
"minProperties": 1,
71+
"description": "Additional protocols besides 'webdav', 'webapp' and 'datatx' may be defined.",
72+
"properties": {
73+
"webdav": {
74+
"type": "string",
75+
"pattern": "^/"
76+
},
77+
"webapp": {
78+
"type": "string",
79+
"pattern": "^/"
80+
},
81+
"datatx": {
82+
"type": "string",
83+
"pattern": "^/"
84+
}
85+
}
86+
},
87+
"publicKey": {
88+
"type": "object",
89+
"properties": {
90+
"keyId": {
91+
"type": "string"
92+
},
93+
"publicKeyPem": {
94+
"type": "string"
95+
}
96+
},
97+
"required": ["keyId", "publicKeyPem" ]
98+
99+
}
100+
}
101+
}

0 commit comments

Comments
 (0)