fix(server): point fetch:openapi at the live v1 spec URL - #54
Conversation
The Taskade v1 docs moved: /api/documentation/yaml now 404s; the spec is at /api/documentation/v1/yaml. Update fetch:openapi (and add curl -fsSL so a failed fetch errors loudly instead of writing an empty file). No generated output changes in this PR — it only restores the ability to refresh the v1 spec.
|
Review follow-upRan Verdict: no issues. Verified against the live endpoints:
|
Why
yarn fetch:openapicurlshttps://www.taskade.com/api/documentation/yaml— which now 404s. The v1 spec moved to/api/documentation/v1/yaml(verified 200; v2 lives at/v2/yaml). Without this, the v1 spec can't be refreshed.What
/api/documentation/v1/yaml.curl -fsSLso a failed fetch errors loudly instead of silently overwritingtaskade-public.yamlwith an error page / empty file.Zero-regression
fetch:openapiscript string changes. No regeneration in this PR →taskade-public.yamlandtools.generated.tsare untouched, so the 57 shipped tools are identical. Verified the new URL returns the v1 OpenAPI doc.