Skip to content

Commit

Permalink
test: added avro schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
ilee2u committed Aug 26, 2024
1 parent 6237850 commit 00d7433
Show file tree
Hide file tree
Showing 5 changed files with 285 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ Event Definitions:
Consequences
************

* `persona_integration` will emit events via the event bus to send information without needing a response.
* The `verify_student` app will emit events via the event bus to send information without needing a response.
* These events are dynamic, in that they can also be consumed by other services/applications as needed in the future.

Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"name": "CloudEvent",
"type": "record",
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
"fields": [
{
"name": "idv_attempt",
"type": {
"name": "VerificationAttemptData",
"type": "record",
"fields": [
{
"name": "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": "name",
"type": "string"
},
{
"name": "status",
"type": "string"
},
{
"name": "expiration_date",
"type": "string"
},
{
"name": "inquiry_id",
"type": "string"
}
]
}
}
],
"namespace": "org.openedx.learning.idv_attempt.approved.v1"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"name": "CloudEvent",
"type": "record",
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
"fields": [
{
"name": "idv_attempt",
"type": {
"name": "VerificationAttemptData",
"type": "record",
"fields": [
{
"name": "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": "name",
"type": "string"
},
{
"name": "status",
"type": "string"
},
{
"name": "expiration_date",
"type": "string"
},
{
"name": "inquiry_id",
"type": "string"
}
]
}
}
],
"namespace": "org.openedx.learning.idv_attempt.created.v1"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"name": "CloudEvent",
"type": "record",
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
"fields": [
{
"name": "idv_attempt",
"type": {
"name": "VerificationAttemptData",
"type": "record",
"fields": [
{
"name": "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": "name",
"type": "string"
},
{
"name": "status",
"type": "string"
},
{
"name": "expiration_date",
"type": "string"
},
{
"name": "inquiry_id",
"type": "string"
}
]
}
}
],
"namespace": "org.openedx.learning.idv_attempt.denied.v1"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"name": "CloudEvent",
"type": "record",
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
"fields": [
{
"name": "idv_attempt",
"type": {
"name": "VerificationAttemptData",
"type": "record",
"fields": [
{
"name": "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": "name",
"type": "string"
},
{
"name": "status",
"type": "string"
},
{
"name": "expiration_date",
"type": "string"
},
{
"name": "inquiry_id",
"type": "string"
}
]
}
}
],
"namespace": "org.openedx.learning.idv_attempt.pending.v1"
}

0 comments on commit 00d7433

Please sign in to comment.