Skip to content

Make zod parsing failures look more like real API 400s - #259

Merged
david-crespo merged 2 commits into
mainfrom
better-mock-400s
Jun 28, 2024
Merged

david-crespo merged 2 commits into
mainfrom
better-mock-400s

Conversation

@david-crespo

@david-crespo david-crespo commented Jun 28, 2024 •

Copy link
Copy Markdown
Collaborator

Closes #228

I also removed the ability to handle functions through from handlers by calling them — I think that's an antipattern and I've removed all the spots in the console where we throw uncalled functions.

This will be a minor version bump for the generator because it changes the semantics of generated code, but there is no regen required for the client versioned in this repo because the mock server is not included in that.

@david-crespo
david-crespo requested a review from charliepark June 28, 2024 16:43
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.

Make mock API validation errors look more like real API errors

1 participant