Skip to content

Commit

Permalink
refactor: regenerate avro schemas for latest forum payload
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Jan 8, 2025
1 parent 6dad63b commit d4bc79f
Show file tree
Hide file tree
Showing 3 changed files with 243 additions and 123 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,54 +9,18 @@
"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"
Expand Down Expand Up @@ -107,12 +71,88 @@
"name": "course_id",
"type": "string"
},
{
"name": "thread_type",
"type": [
"null",
"string"
],
"default": null
},
{
"name": "anonymous",
"type": [
"null",
"boolean"
],
"default": null
},
{
"name": "anonymous_to_peers",
"type": [
"null",
"boolean"
],
"default": null
},
{
"name": "title",
"type": [
"null",
"string"
],
"default": null
},
{
"name": "title_truncated",
"type": [
"null",
"boolean"
],
"default": null
},
{
"name": "group_id",
"type": [
"null",
"long"
],
"default": null
},
{
"name": "team_id",
"type": [
"null",
"long"
],
"default": null
},
{
"name": "category_id",
"type": [
"null",
"long"
],
"default": null
},
{
"name": "category_name",
"type": [
"null",
"string"
],
"default": null
},
{
"name": "discussion",
"type": {
"type": "map",
"values": "string"
}
"type": [
"null",
{
"type": "map",
"values": "string"
}
],
"default": null
},
{
"name": "user_course_roles",
Expand All @@ -132,7 +172,7 @@
"name": "options",
"type": {
"type": "map",
"values": "string"
"values": "boolean"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,54 +9,18 @@
"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"
Expand Down Expand Up @@ -107,12 +71,88 @@
"name": "course_id",
"type": "string"
},
{
"name": "thread_type",
"type": [
"null",
"string"
],
"default": null
},
{
"name": "anonymous",
"type": [
"null",
"boolean"
],
"default": null
},
{
"name": "anonymous_to_peers",
"type": [
"null",
"boolean"
],
"default": null
},
{
"name": "title",
"type": [
"null",
"string"
],
"default": null
},
{
"name": "title_truncated",
"type": [
"null",
"boolean"
],
"default": null
},
{
"name": "group_id",
"type": [
"null",
"long"
],
"default": null
},
{
"name": "team_id",
"type": [
"null",
"long"
],
"default": null
},
{
"name": "category_id",
"type": [
"null",
"long"
],
"default": null
},
{
"name": "category_name",
"type": [
"null",
"string"
],
"default": null
},
{
"name": "discussion",
"type": {
"type": "map",
"values": "string"
}
"type": [
"null",
{
"type": "map",
"values": "string"
}
],
"default": null
},
{
"name": "user_course_roles",
Expand All @@ -132,7 +172,7 @@
"name": "options",
"type": {
"type": "map",
"values": "string"
"values": "boolean"
}
}
]
Expand Down
Loading

0 comments on commit d4bc79f

Please sign in to comment.