Skip to content

Commit d2bba02

Browse files
authored
Merge pull request #447 from abraham/copilot/fix-7785a8b4-ea5d-45c5-a8dd-d79a3c3b0e5a
Fix request body enum names to reuse entity enums instead of generating ugly names
2 parents 49f84e3 + d431b10 commit d2bba02

File tree

3 files changed

+430
-27
lines changed

3 files changed

+430
-27
lines changed

dist/schema.json

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14868,11 +14868,7 @@
1486814868
"type": "array",
1486914869
"description": "Specify the timeline(s) for which markers should be fetched. Possible values: `home`, `notifications`. If not provided, an empty object will be returned.",
1487014870
"items": {
14871-
"type": "string",
14872-
"enum": [
14873-
"home",
14874-
"notifications"
14875-
]
14871+
"$ref": "#/components/schemas/FilterContextEnum"
1487614872
}
1487714873
}
1487814874
}
@@ -16186,7 +16182,7 @@
1618616182
"type": "array",
1618716183
"description": "Types to exclude from the results.",
1618816184
"items": {
16189-
"$ref": "#/components/schemas/GetApiV1NotificationsParamTypesEnum"
16185+
"$ref": "#/components/schemas/NotificationTypeEnum"
1619016186
}
1619116187
}
1619216188
},
@@ -16245,7 +16241,7 @@
1624516241
"type": "array",
1624616242
"description": "Types to include in the result.",
1624716243
"items": {
16248-
"$ref": "#/components/schemas/GetApiV1NotificationsParamTypesEnum"
16244+
"$ref": "#/components/schemas/NotificationTypeEnum"
1624916245
}
1625016246
}
1625116247
}
@@ -17970,7 +17966,7 @@
1797017966
"type": "array",
1797117967
"description": "Types to exclude from the results.",
1797217968
"items": {
17973-
"$ref": "#/components/schemas/GetApiV1NotificationsParamTypesEnum"
17969+
"$ref": "#/components/schemas/NotificationTypeEnum"
1797417970
}
1797517971
}
1797617972
},
@@ -17991,7 +17987,7 @@
1799117987
"type": "array",
1799217988
"description": "Restrict which notification types can be grouped. Use this if there are notification types for which your client does not support grouping. If omitted, the server will group notifications of all types it supports (currently, `favourite`, `follow`, `reblog` and `admin.sign_up`). If you do not want any notification grouping, use [GET `/api/v1/notifications`] instead. Notifications that would be grouped if not for this parameter will instead be returned as individual single-notification groups with a unique `group_key` that can be assumed to be of the form `ungrouped-{notification_id}`. Please note that neither the streaming API nor the individual notification APIs are aware of this parameter and will always include a “proper” `group_key` that can be different from what is returned here, meaning that you may have to ignore `group_key` for such notifications that you do not want grouped and use `ungrouped-{notification_id}` instead for consistency.",
1799317989
"items": {
17994-
"$ref": "#/components/schemas/GetApiV1NotificationsParamTypesEnum"
17990+
"$ref": "#/components/schemas/NotificationTypeEnum"
1799517991
}
1799617992
}
1799717993
},
@@ -18050,7 +18046,7 @@
1805018046
"type": "array",
1805118047
"description": "Types to include in the result.",
1805218048
"items": {
18053-
"$ref": "#/components/schemas/GetApiV1NotificationsParamTypesEnum"
18049+
"$ref": "#/components/schemas/NotificationTypeEnum"
1805418050
}
1805518051
}
1805618052
}
@@ -38708,21 +38704,6 @@
3870838704
"user_domain_block",
3870938705
"account_suspension"
3871038706
]
38711-
},
38712-
"GetApiV1NotificationsParamTypesEnum": {
38713-
"type": "string",
38714-
"enum": [
38715-
"mention",
38716-
"status",
38717-
"reblog",
38718-
"follow",
38719-
"follow_request",
38720-
"favourite",
38721-
"poll",
38722-
"update",
38723-
"admin.sign_up",
38724-
"admin.report"
38725-
]
3872638707
}
3872738708
},
3872838709
"securitySchemes": {

0 commit comments

Comments
 (0)