Skip to content

Commit 872b25e

Browse files
committed
refactor: update open api client generation, update docs
1 parent f5c3eb4 commit 872b25e

File tree

25 files changed

+585
-1095
lines changed

25 files changed

+585
-1095
lines changed

.changeset/openapi-async-client.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"tangrams": patch
3+
---
4+
5+
Change OpenAPI client from static `$fetch` instance to async `getClient()` function pattern, matching the GraphQL client approach. This allows users to add dynamic headers (e.g., auth tokens) that require async operations.
6+
7+
**Breaking Change:** If you have customized your OpenAPI `client.ts` file, you will need to migrate from the `$fetch` export to the new `getClient()` async function pattern.

0 commit comments

Comments
 (0)