Validators
There are times when you cannot blindly trust the server to return the correct data. You might be working on a critical application where any mistakes would be costly, or you’re simply dealing with a legacy or undocumented system.
Validator plugins generate schemas from your input. You can connect them to your client as validators or transformers via the SDK plugin.
Features
Section titled “Features”- seamless integration with
@hey-api/openapi-tsecosystem - schemas for requests, responses, and reusable definitions
- static type inference from schemas
- tree-shakeable output
Plugins
Section titled “Plugins”Hey API natively supports the following validators.
Don’t see your validator? Let us know by opening an issue.
Examples
You can view live examples on StackBlitz or on GitHub.