Skip to content

Commit

Permalink
fix: avro
Browse files Browse the repository at this point in the history
  • Loading branch information
ilee2u committed Sep 21, 2023
1 parent d3f0bcc commit e7159dd
Show file tree
Hide file tree
Showing 5 changed files with 190 additions and 230 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,48 @@
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
"fields": [
{
"name": "exam_attempt_data",
"name": "exam_attempt",
"type": {
"name": "ExamAttemptData",
"type": "record",
"fields": [
{
"name": "user_id",
"type": "long"
"name": "student_user",
"type": {
"name": "UserData",
"type": "record",
"fields": [
{
"name": "id",
"type": "long"
},
{
"name": "is_active",
"type": "boolean"
},
{
"name": "pii",
"type": {
"name": "UserPersonalData",
"type": "record",
"fields": [
{
"name": "username",
"type": "string"
},
{
"name": "email",
"type": "string"
},
{
"name": "name",
"type": "string"
}
]
}
}
]
}
},
{
"name": "course_key",
Expand All @@ -25,49 +59,7 @@
"name": "requesting_user",
"type": [
"null",
{
"name": "UserData",
"type": "record",
"fields": [
{
"name": "id",
"type": "long"
},
{
"name": "is_active",
"type": "boolean"
},
{
"name": "pii",
"type": {
"name": "UserPersonalData",
"type": "record",
"fields": [
{
"name": "username",
"type": "string"
},
{
"name": "email",
"type": "string"
},
{
"name": "name",
"type": "string"
}
]
}
}
]
}
],
"default": null
},
{
"name": "credit_requirement_status",
"type": [
"null",
"string"
"UserData"
],
"default": null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,48 @@
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
"fields": [
{
"name": "exam_attempt_data",
"name": "exam_attempt",
"type": {
"name": "ExamAttemptData",
"type": "record",
"fields": [
{
"name": "user_id",
"type": "long"
"name": "student_user",
"type": {
"name": "UserData",
"type": "record",
"fields": [
{
"name": "id",
"type": "long"
},
{
"name": "is_active",
"type": "boolean"
},
{
"name": "pii",
"type": {
"name": "UserPersonalData",
"type": "record",
"fields": [
{
"name": "username",
"type": "string"
},
{
"name": "email",
"type": "string"
},
{
"name": "name",
"type": "string"
}
]
}
}
]
}
},
{
"name": "course_key",
Expand All @@ -25,49 +59,7 @@
"name": "requesting_user",
"type": [
"null",
{
"name": "UserData",
"type": "record",
"fields": [
{
"name": "id",
"type": "long"
},
{
"name": "is_active",
"type": "boolean"
},
{
"name": "pii",
"type": {
"name": "UserPersonalData",
"type": "record",
"fields": [
{
"name": "username",
"type": "string"
},
{
"name": "email",
"type": "string"
},
{
"name": "name",
"type": "string"
}
]
}
}
]
}
],
"default": null
},
{
"name": "credit_requirement_status",
"type": [
"null",
"string"
"UserData"
],
"default": null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,48 @@
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
"fields": [
{
"name": "exam_attempt_data",
"name": "exam_attempt",
"type": {
"name": "ExamAttemptData",
"type": "record",
"fields": [
{
"name": "user_id",
"type": "long"
"name": "student_user",
"type": {
"name": "UserData",
"type": "record",
"fields": [
{
"name": "id",
"type": "long"
},
{
"name": "is_active",
"type": "boolean"
},
{
"name": "pii",
"type": {
"name": "UserPersonalData",
"type": "record",
"fields": [
{
"name": "username",
"type": "string"
},
{
"name": "email",
"type": "string"
},
{
"name": "name",
"type": "string"
}
]
}
}
]
}
},
{
"name": "course_key",
Expand All @@ -25,49 +59,7 @@
"name": "requesting_user",
"type": [
"null",
{
"name": "UserData",
"type": "record",
"fields": [
{
"name": "id",
"type": "long"
},
{
"name": "is_active",
"type": "boolean"
},
{
"name": "pii",
"type": {
"name": "UserPersonalData",
"type": "record",
"fields": [
{
"name": "username",
"type": "string"
},
{
"name": "email",
"type": "string"
},
{
"name": "name",
"type": "string"
}
]
}
}
]
}
],
"default": null
},
{
"name": "credit_requirement_status",
"type": [
"null",
"string"
"UserData"
],
"default": null
}
Expand Down
Loading

0 comments on commit e7159dd

Please sign in to comment.