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

Add an option to validate response types #18

Open
danvk opened this issue Apr 12, 2021 · 0 comments
Open

Add an option to validate response types #18

danvk opened this issue Apr 12, 2021 · 0 comments

Comments

@danvk
Copy link
Owner

danvk commented Apr 12, 2021

crosswalk validates request bodies, but it might also be useful to validate response bodies. This could catch errors due to as any and other type assertions. And if you use noExtraProps when you generate your JSON Schema, it could catch issues with additional properties leaking by surprise.

Enabling this for debug builds but not prod might also be a useful strategy.

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

No branches or pull requests

1 participant