-
Notifications
You must be signed in to change notification settings - Fork 7
/
breadcrumbs-schema-test.json
148 lines (148 loc) · 4.75 KB
/
breadcrumbs-schema-test.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/oamg/schema-test/main/breadcrumbs-schema-test.json",
"title": "Migrations File Schema",
"type": "object",
"required": [
"activities"
],
"properties": {
"activities": {
"$id": "#root/activities",
"title": "Activities",
"type": "array",
"description": "A collection of all migration activities performed on this system",
"default": [],
"items": {
"$id": "#root/activities/items",
"description": "Migration item",
"type": "object",
"required": [
"activity",
"packages",
"executed",
"success",
"activity_started",
"activity_ended",
"source_os",
"target_os",
"env",
"run_id",
"version"
],
"properties": {
"activity": {
"$id": "#root/activities/items/activity",
"type": "string",
"enum": [
"conversion",
"analysis",
"upgrade",
"preupgrade"
],
"description": "Type of migration activity"
},
"version": {
"$id": "#root/activities/items/version",
"type": "string",
"description": "Version of the activity object"
},
"packages": {
"$id": "#root/activities/items/packages",
"description": "List of packages that directly facilitate the activity",
"type": "array",
"default": [],
"items": {
"$id": "#root/activities/items/packages/items",
"type": "object",
"required": [
"nevra",
"signature"
],
"properties": {
"nevra": {
"$id": "#root/activities/items/packages/items/nevra",
"description": "RPM NEVRA of the package",
"type": "string",
"examples": [
"leapp-0.12.0-1.el7_9.noarch"
]
},
"signature": {
"$id": "#root/activities/items/packages/items/signature",
"description": "RPM Signature of the package",
"type": "string",
"examples": [
"RSA/SHA256, Mon 29 Mar 2021 03:05:37 PM UTC, Key ID 199e2f91fd431d51"
]
}
}
}
},
"executed": {
"$id": "#root/activities/items/executed",
"description": "Complete command line with which the migration activity was started",
"type": "string",
"examples": [
"leapp upgrade --debug"
]
},
"success": {
"$id": "#root/activities/items/success",
"description": "Indicates whether the migration activity completed successfully",
"type": "boolean",
"examples": [
true
]
},
"activity_started": {
"$id": "#root/activities/items/activity_started",
"description": "ISO 8601 timestamp of when the activity was started",
"type": "string",
"examples": [
"2021-04-22T08:00Z"
]
},
"activity_ended": {
"$id": "#root/activities/items/activity_ended",
"description": "ISO 8601 timestamp of when the activity ended",
"type": "string",
"examples": [
"2021-04-22T08:00Z"
]
},
"source_os": {
"$id": "#root/activities/items/source_os",
"description": "Source operating system where the activity was started",
"type": "string",
"examples": [
"Red Hat Enterprise Linux 7.9"
]
},
"target_os": {
"$id": "#root/activities/items/target_os",
"description": "Target operating system of the migration activity",
"type": "string",
"examples": [
"Red Hat Enterprise Linux 8.3"
]
},
"env": {
"$id": "#root/activities/items/env",
"description": "List of migration specific environment variables",
"type": "object"
},
"run_id": {
"$id": "#root/activities/items/run_id",
"description": "Connects invocation to implementation defined identifier",
"type": "string",
"examples": [
"a91dccab-84e8-4a28-b28e-102b073200a9"
]
}
}
}
}
}
}