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.

Whatever your reason to use validators might be, you can rest assured that you're working with the correct data.

Features

  • seamless integration with @hey-api/openapi-ts ecosystem
  • schemas for requests, responses, and reusable definitions

Options

Hey API natively supports the following validators.

Don't see your validator? Let us know your interest by opening an issue.

Examples

You can view live examples on StackBlitz.

Sponsors

Hey API is sponsor-funded. If you rely on Hey API in production, consider becoming a sponsor to accelerate the roadmap.