Skip to content

Commit

Permalink
fix: add missing property category.node_id to discussion and `dis…
Browse files Browse the repository at this point in the history
…cussion_comment` (#960)
  • Loading branch information
pascal-botpress authored Oct 3, 2024
1 parent 524ed0d commit 049c104
Show file tree
Hide file tree
Showing 22 changed files with 85 additions and 74 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809315,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 141753607,
"emoji": ":pray:",
"name": "Q&A",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809317,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 141753607,
"emoji": ":raised_hands:",
"name": "Show and tell",
Expand Down Expand Up @@ -54,6 +55,7 @@
"category": {
"from": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE",
"repository_id": 141753607,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 141753607,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 141753607,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809315,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 141753607,
"emoji": ":pray:",
"name": "Q&A",
Expand Down Expand Up @@ -55,6 +56,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/friendly-octo-succotash",
"category": {
"id": 32809824,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5ODI",
"repository_id": 353173080,
"emoji": ":pray:",
"name": "Q&A",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809315,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 141753607,
"emoji": ":pray:",
"name": "Q&A",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 141753607,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEwOkkpc4F1c3Npg24zMjk5NjE0",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEwOkkpc4F1c3Npg24zMjk5NjE0",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEwOkkpc4F1c3Npg24zMjk5NjE0",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down
19 changes: 19 additions & 0 deletions payload-examples/api.github.com/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -12116,6 +12116,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809315,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 141753607,
"emoji": ":pray:",
"name": "Q&A",
Expand Down Expand Up @@ -12344,6 +12345,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809317,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 141753607,
"emoji": ":raised_hands:",
"name": "Show and tell",
Expand Down Expand Up @@ -12394,6 +12396,7 @@
"category": {
"from": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE",
"repository_id": 141753607,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down Expand Up @@ -12535,6 +12538,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down Expand Up @@ -12711,6 +12715,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down Expand Up @@ -12888,6 +12893,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down Expand Up @@ -13077,6 +13083,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down Expand Up @@ -13262,6 +13269,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down Expand Up @@ -13459,6 +13467,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 141753607,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down Expand Up @@ -13635,6 +13644,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 141753607,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down Expand Up @@ -13823,6 +13833,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down Expand Up @@ -13999,6 +14010,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809315,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 141753607,
"emoji": ":pray:",
"name": "Q&A",
Expand Down Expand Up @@ -14050,6 +14062,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/friendly-octo-succotash",
"category": {
"id": 32809824,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5ODI",
"repository_id": 353173080,
"emoji": ":pray:",
"name": "Q&A",
Expand Down Expand Up @@ -14326,6 +14339,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809315,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 141753607,
"emoji": ":pray:",
"name": "Q&A",
Expand Down Expand Up @@ -14535,6 +14549,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down Expand Up @@ -14720,6 +14735,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEyOkRpc2N1c3Npb25DYWNoZTMyODA5MzE1",
"repository_id": 141753607,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down Expand Up @@ -15185,6 +15201,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEwOkkpc4F1c3Npg24zMjk5NjE0",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down Expand Up @@ -15406,6 +15423,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEwOkkpc4F1c3Npg24zMjk5NjE0",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down Expand Up @@ -15628,6 +15646,7 @@
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809314,
"node_id": "MDEwOkkpc4F1c3Npg24zMjk5NjE0",
"repository_id": 186853002,
"emoji": ":speech_balloon:",
"name": "General",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "common/discussion-category.schema.json",
"type": "object",
"required": [
"id",
"node_id",
"repository_id",
"emoji",
"name",
"description",
"created_at",
"updated_at",
"slug",
"is_answerable"
],
"properties": {
"id": { "type": "integer" },
"node_id": { "type": "string" },
"repository_id": { "type": "integer" },
"emoji": { "type": "string" },
"name": { "type": "string" },
"description": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"slug": { "type": "string" },
"is_answerable": { "type": "boolean" }
},
"additionalProperties": false,
"title": "Discussion Category"
}
27 changes: 1 addition & 26 deletions payload-schemas/api.github.com/common/discussion.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,7 @@
"type": "object",
"properties": {
"repository_url": { "type": "string" },
"category": {
"type": "object",
"required": [
"id",
"repository_id",
"emoji",
"name",
"description",
"created_at",
"updated_at",
"slug",
"is_answerable"
],
"properties": {
"id": { "type": "integer" },
"repository_id": { "type": "integer" },
"emoji": { "type": "string" },
"name": { "type": "string" },
"description": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"slug": { "type": "string" },
"is_answerable": { "type": "boolean" }
},
"additionalProperties": false
},
"category": { "$ref": "discussion-category.schema.json" },
"answer_html_url": { "type": ["string", "null"] },
"answer_chosen_at": {
"oneOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }]
Expand Down
Loading

0 comments on commit 049c104

Please sign in to comment.