Skip to content

Commit eb20710

Browse files
committed
chore: update data attrs
1 parent 15356f9 commit eb20710

11 files changed

+1007
-32
lines changed
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
{
2+
"name": "CloudEvent",
3+
"type": "record",
4+
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
5+
"fields": [
6+
{
7+
"name": "complex_types",
8+
"type": {
9+
"name": "ComplexTypesData",
10+
"type": "record",
11+
"fields": [
12+
{
13+
"name": "list_of_dicts",
14+
"type": {
15+
"type": "array",
16+
"items": {
17+
"type": "map",
18+
"values": "string"
19+
}
20+
}
21+
},
22+
{
23+
"name": "list_of_lists",
24+
"type": {
25+
"type": "array",
26+
"items": {
27+
"type": "array",
28+
"items": "long"
29+
}
30+
}
31+
},
32+
{
33+
"name": "list_of_attrs",
34+
"type": {
35+
"type": "array",
36+
"items": {
37+
"name": "UserData",
38+
"type": "record",
39+
"fields": [
40+
{
41+
"name": "id",
42+
"type": "long"
43+
},
44+
{
45+
"name": "is_active",
46+
"type": "boolean"
47+
},
48+
{
49+
"name": "pii",
50+
"type": {
51+
"name": "UserPersonalData",
52+
"type": "record",
53+
"fields": [
54+
{
55+
"name": "username",
56+
"type": "string"
57+
},
58+
{
59+
"name": "email",
60+
"type": "string"
61+
},
62+
{
63+
"name": "name",
64+
"type": "string"
65+
}
66+
]
67+
}
68+
}
69+
]
70+
}
71+
}
72+
},
73+
{
74+
"name": "dict_of_lists",
75+
"type": {
76+
"type": "map",
77+
"values": {
78+
"type": "array",
79+
"items": "long"
80+
}
81+
}
82+
},
83+
{
84+
"name": "dict_of_dicts",
85+
"type": {
86+
"type": "map",
87+
"values": {
88+
"type": "map",
89+
"values": "string"
90+
}
91+
}
92+
},
93+
{
94+
"name": "dict_of_attrs",
95+
"type": {
96+
"type": "map",
97+
"values": {
98+
"name": "CourseData",
99+
"type": "record",
100+
"fields": [
101+
{
102+
"name": "course_key",
103+
"type": "string"
104+
},
105+
{
106+
"name": "display_name",
107+
"type": "string"
108+
},
109+
{
110+
"name": "start",
111+
"type": [
112+
"null",
113+
"string"
114+
],
115+
"default": null
116+
},
117+
{
118+
"name": "end",
119+
"type": [
120+
"null",
121+
"string"
122+
],
123+
"default": null
124+
}
125+
]
126+
}
127+
}
128+
}
129+
]
130+
}
131+
}
132+
],
133+
"namespace": "org.openedx.learning.complex.types.v1"
134+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "CloudEvent",
3+
"type": "record",
4+
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
5+
"fields": [
6+
{
7+
"name": "course_notification_data",
8+
"type": {
9+
"name": "CourseNotificationData",
10+
"type": "record",
11+
"fields": [
12+
{
13+
"name": "course_key",
14+
"type": "string"
15+
},
16+
{
17+
"name": "app_name",
18+
"type": "string"
19+
},
20+
{
21+
"name": "notification_type",
22+
"type": "string"
23+
},
24+
{
25+
"name": "content_url",
26+
"type": "string"
27+
},
28+
{
29+
"name": "content_context",
30+
"type": {
31+
"type": "map",
32+
"values": "string"
33+
}
34+
},
35+
{
36+
"name": "audience_filters",
37+
"type": {
38+
"type": "map",
39+
"values": {
40+
"type": "array",
41+
"items": "string"
42+
}
43+
}
44+
}
45+
]
46+
}
47+
}
48+
],
49+
"namespace": "org.openedx.learning.course.notification.requested.v1"
50+
}
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"name": "CloudEvent",
3+
"type": "record",
4+
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
5+
"fields": [
6+
{
7+
"name": "configuration",
8+
"type": {
9+
"name": "CourseDiscussionConfigurationData",
10+
"type": "record",
11+
"fields": [
12+
{
13+
"name": "course_key",
14+
"type": "string"
15+
},
16+
{
17+
"name": "provider_type",
18+
"type": "string"
19+
},
20+
{
21+
"name": "enable_in_context",
22+
"type": "boolean"
23+
},
24+
{
25+
"name": "enable_graded_units",
26+
"type": "boolean"
27+
},
28+
{
29+
"name": "unit_level_visibility",
30+
"type": "boolean"
31+
},
32+
{
33+
"name": "plugin_configuration",
34+
"type": {
35+
"type": "map",
36+
"values": "boolean"
37+
}
38+
},
39+
{
40+
"name": "contexts",
41+
"type": {
42+
"type": "array",
43+
"items": {
44+
"name": "DiscussionTopicContext",
45+
"type": "record",
46+
"fields": [
47+
{
48+
"name": "title",
49+
"type": "string"
50+
},
51+
{
52+
"name": "usage_key",
53+
"type": [
54+
"null",
55+
"string"
56+
],
57+
"default": null
58+
},
59+
{
60+
"name": "group_id",
61+
"type": [
62+
"null",
63+
"long"
64+
],
65+
"default": null
66+
},
67+
{
68+
"name": "external_id",
69+
"type": [
70+
"null",
71+
"string"
72+
],
73+
"default": null
74+
},
75+
{
76+
"name": "ordering",
77+
"type": [
78+
"null",
79+
"long"
80+
],
81+
"default": null
82+
},
83+
{
84+
"name": "context",
85+
"type": {
86+
"type": "map",
87+
"values": "string"
88+
}
89+
}
90+
]
91+
}
92+
}
93+
}
94+
]
95+
}
96+
}
97+
],
98+
"namespace": "org.openedx.learning.discussions.configuration.changed.v1"
99+
}

0 commit comments

Comments
 (0)