Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions scripts/openapi-post-process.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,6 @@
import json
import sys

from typing import Any


def filter_search_after_from_me_feed_credentials(
openapi_schema: dict[str, Any],
) -> dict[str, Any]:
parameters: list[dict[str, Any]] | None = (
openapi_schema.get("paths", {})
.get("/me/feed/credentials", {})
.get("get", {})
.get("parameters")
)

if parameters:
openapi_schema["paths"]["/me/feed/credentials"]["get"]["parameters"] = [
param for param in parameters if param["name"] != "search_after"
]

return openapi_schema


def main() -> None:
if len(sys.argv) != 2:
Expand All @@ -38,8 +18,6 @@ def main() -> None:
"scheme": "bearer",
}

openapi_schema = filter_search_after_from_me_feed_credentials(openapi_schema)

with open(path, "w", encoding="utf-8") as f:
f.write(
json.dumps(
Expand Down
Loading