Skip to content

fix(client): dynamically repair missing schemas from upstream backend at runtime#353

Merged
davideast merged 2 commits into
mainfrom
fix/resilient-schema-repair
May 8, 2026
Merged

fix(client): dynamically repair missing schemas from upstream backend at runtime#353
davideast merged 2 commits into
mainfrom
fix/resilient-schema-repair

Conversation

@davideast
Copy link
Copy Markdown
Collaborator

This PR implements on-the-fly schema-repair mechanisms in the Stitch SDK client's tool discovery (StitchToolClient.listTools()).

It intercepts remote tool schemas at runtime and injects missing `` declarations (such as ScreenInstance and `File`) to prevent strict AJV validation crashes during tool discovery, shielding client environments and CI workflows from incomplete backend schemas.

Committed on top of stable version 0.3.3.

@davideast davideast merged commit cdfa4af into main May 8, 2026
6 checks passed
@davideast davideast deleted the fix/resilient-schema-repair branch May 8, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant