r/ClaudeCode • u/CarrotOld6093 • 5d ago
Discussion A saved API procedure needs to say which client it applies to
The line I care about in a saved API procedure is "check how the target client is maintained." Having an OpenAPI file somewhere in the repo doesn't mean every API wrapper is generated.
In this order-dashboard example, the orders client is generated from a local OpenAPI file. The courier wrapper is handwritten TypeScript. Adding the response's existing tracking_url field to the order page goes through the local schema and generator, followed by a review of the generated diff and component behavior.
In MemoraX Code's Procedure Memory, a useful entry for this starts by checking the target client, then branches. A generated client calls for finding the source schema and generator command, regenerating, and reviewing the diff.
The courier's pickup_window task is where that condition matters. The generator in package.json targets the orders client. In Claude Code's plan, I look for the courier change to stay in the handwritten response type and page component.
Making pickup_window optional in the type leaves the page with a missing-field case to handle. The component test needs both response fixtures, one with the field and one without it. I want to see the pickup row appear in the first case and stay hidden in the second.
•
u/AutoModerator 5d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.