-
Notifications
You must be signed in to change notification settings - Fork 63
/
pantheon.schema.json
100 lines (100 loc) · 3.96 KB
/
pantheon.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://github.com/redhat-developer/app-services-guides/pantheon.schema.json",
"type": "object",
"description": "Each member represents a mapping from a <tag> <tag value> in the quickstart.yml to the Pantheon API",
"default": {},
"examples": [
{
"!snippet/title README.adoc#using-with-quarkus": "https://pantheon.corp.redhat.com/api/assembly/variant.json/53dfb804-2038-4545-b917-2cb01a09ef98",
"!snippet README.adoc#description": {
"type": "assembly",
"uuid": "53dfb804-2038-4545-b917-2cb01a09ef98",
"jsonPathExpression": "$.assembly.description",
"cssSelector": ".foo"
},
"!snippet/proc README.adoc#task-1": "https://pantheon.corp.redhat.com/api/module/variant.json/b2c90e5b-a33c-475f-b6af-da7f32532b89",
"!snippet/proc README.adoc#task-2": {
"type": "module",
"uuid": "2f3c3b35-b9f3-4caf-b013-acfc6d5c6b53"
}
}
],
"required": [],
"patternProperties": {
"^.*$": {
"anyOf": [
{
"$id": "https://github.com/redhat-developer/app-services-guides/pantheon.schema.json/simple",
"type": "string",
"description": "A quick and easy way to copy and paste a Pantheon URL. The URL will be parsed to extract the type and UUID",
"default": "",
"examples": [
"https://pantheon.corp.redhat.com/api/assembly/variant.json/53dfb804-2038-4545-b917-2cb01a09ef98",
"https://pantheon.corp.redhat.com/api/module/variant.json/b2c90e5b-a33c-475f-b6af-da7f32532b89"
]
},
{
"$id": "https://github.com/redhat-developer/app-services-guides/pantheon.schema.json/full",
"type": "object",
"description": "Allows full specification of the Pantheon reference",
"default": {},
"examples": [
{
"type": "assembly",
"uuid": "53dfb804-2038-4545-b917-2cb01a09ef98",
"jsonPathExpression": "$.assembly.description",
"cssSelector": ".foo"
},
{
"type": "module",
"uuid": "2f3c3b35-b9f3-4caf-b013-acfc6d5c6b53"
}
],
"required": [
"type",
"uuid"
],
"properties": {
"type": {
"$id": "https://github.com/redhat-developer/app-services-guides/pantheon.schema.json/full/type",
"type": "string",
"description": "The Pantheon type (module or assembly)",
"examples": [
"assembly"
],
"enum": ["assembly", "module"]
},
"uuid": {
"$id": "https://github.com/redhat-developer/app-services-guides/pantheon.schema.json/full/uuid",
"type": "string",
"examples": [
"53dfb804-2038-4545-b917-2cb01a09ef98"
]
},
"jsonPathExpression": {
"$id": "https://github.com/redhat-developer/app-services-guides/pantheon.schema.json/full/jsonPathExpression",
"type": "string",
"description": "Override the default JSON Path expression in use. It will be applied to the JSON document returned by the Pantheon API",
"default": "",
"examples": [
"$.assembly.description"
]
},
"cssSelector": {
"$id": "https://github.com/redhat-developer/app-services-guides/pantheon.schema.json/full/cssSelector",
"type": "string",
"description": "Override the default CSS Selector expression in use. It will be applied to the $.*.body of the JSON document returned by the Pantheon API",
"default": "",
"examples": [
"#description"
]
}
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false
}