You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API reference repeats the full error type list in every error response #3259
Every API reference page prints the full list of 404 error types from ErrorType.yaml in each error response. The list makes most pages too long for AI agents to read. It also seems to include internal error types that don't belong in public docs.
Problem 1: pages are too long for agents
ErrorType.yaml is about 12,000 characters. ErrorDetail.yaml uses it for the error type , and all 11 shared error responses in components/responses/ build on ErrorDetail . As a result, the OpenAPI plugin inlines the full list into every error response. In the .md copy that agents read, rehypeExpandTabs opens the hidden tabs, so every copy ends up in the text.
Problem 2: the list includes internal error types
#2428 added every error type from the apify-core errors package, whether or not the public API returns it.
None of the 404 types has a description, so readers can't tell which ones apply to them. Which types are actually internal is a question for the API team.
Points to check before changing the spec:
Autofix re-adds types. The "Autofix OpenAPI spec validation errors" PRs add any error type the API returns in integration tests. docs(openapi): Autofix OpenAPI spec validation errors #3096 added 9. If you remove a type that the API still returns, the next autofix run will probably add it back.
The Python client uses the enum. apify-client-python is generated from the spec.
Related, and worth fixing in the same PR: the shared 401 Unauthorized example shows invalid-token. The live API returns token-not-provided when the token is missing and user-or-token-not-found when it's wrong (components/responses/Unauthorized.yaml).
Activity