Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

david-crespo
Copy link
Collaborator

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

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 merged commit e8b6636 into main Jun 28, 2024
3 checks passed
@david-crespo david-crespo deleted the better-mock-400s branch June 28, 2024 17:13
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