-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: generate avro schema for each forum event
- Loading branch information
1 parent
45a03e7
commit 1f3cac7
Showing
4 changed files
with
432 additions
and
3 deletions.
There are no files selected for viewing
143 changes: 143 additions & 0 deletions
143
...nts/event_bus/avro/tests/schemas/org+openedx+learning+forum+thread+created+v1_schema.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
{ | ||
"name": "CloudEvent", | ||
"type": "record", | ||
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema", | ||
"fields": [ | ||
{ | ||
"name": "thread", | ||
"type": { | ||
"name": "DiscussionThreadData", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "anonymous", | ||
"type": "boolean" | ||
}, | ||
{ | ||
"name": "anonymous_to_peers", | ||
"type": "boolean" | ||
}, | ||
{ | ||
"name": "body", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "category_id", | ||
"type": "long" | ||
}, | ||
{ | ||
"name": "category_name", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "commentable_id", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "group_id", | ||
"type": "long" | ||
}, | ||
{ | ||
"name": "id", | ||
"type": "long" | ||
}, | ||
{ | ||
"name": "team_id", | ||
"type": "long" | ||
}, | ||
{ | ||
"name": "thread_type", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "title", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "title_truncated", | ||
"type": "boolean" | ||
}, | ||
{ | ||
"name": "truncated", | ||
"type": "boolean" | ||
}, | ||
{ | ||
"name": "url", | ||
"type": "string" | ||
}, | ||
{ | ||
"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": "course_id", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "discussion", | ||
"type": { | ||
"type": "map", | ||
"values": "string" | ||
} | ||
}, | ||
{ | ||
"name": "user_course_roles", | ||
"type": { | ||
"type": "array", | ||
"items": "string" | ||
} | ||
}, | ||
{ | ||
"name": "user_forums_roles", | ||
"type": { | ||
"type": "array", | ||
"items": "string" | ||
} | ||
}, | ||
{ | ||
"name": "options", | ||
"type": { | ||
"type": "map", | ||
"values": "string" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"namespace": "org.openedx.learning.forum.thread.created.v1" | ||
} |
143 changes: 143 additions & 0 deletions
143
...o/tests/schemas/org+openedx+learning+forum+thread+response+comment+created+v1_schema.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
{ | ||
"name": "CloudEvent", | ||
"type": "record", | ||
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema", | ||
"fields": [ | ||
{ | ||
"name": "thread", | ||
"type": { | ||
"name": "DiscussionThreadData", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "anonymous", | ||
"type": "boolean" | ||
}, | ||
{ | ||
"name": "anonymous_to_peers", | ||
"type": "boolean" | ||
}, | ||
{ | ||
"name": "body", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "category_id", | ||
"type": "long" | ||
}, | ||
{ | ||
"name": "category_name", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "commentable_id", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "group_id", | ||
"type": "long" | ||
}, | ||
{ | ||
"name": "id", | ||
"type": "long" | ||
}, | ||
{ | ||
"name": "team_id", | ||
"type": "long" | ||
}, | ||
{ | ||
"name": "thread_type", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "title", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "title_truncated", | ||
"type": "boolean" | ||
}, | ||
{ | ||
"name": "truncated", | ||
"type": "boolean" | ||
}, | ||
{ | ||
"name": "url", | ||
"type": "string" | ||
}, | ||
{ | ||
"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": "course_id", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "discussion", | ||
"type": { | ||
"type": "map", | ||
"values": "string" | ||
} | ||
}, | ||
{ | ||
"name": "user_course_roles", | ||
"type": { | ||
"type": "array", | ||
"items": "string" | ||
} | ||
}, | ||
{ | ||
"name": "user_forums_roles", | ||
"type": { | ||
"type": "array", | ||
"items": "string" | ||
} | ||
}, | ||
{ | ||
"name": "options", | ||
"type": { | ||
"type": "map", | ||
"values": "string" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"namespace": "org.openedx.learning.forum.thread.response.comment.created.v1" | ||
} |
Oops, something went wrong.