Skip to main content

Params Validation

Validate path parameters (e.g. from dynamic routes like [id]) by defining a params schema for the method in your route’s schema object. BurgerAPI runs validation before the handler; validated params are on req.validated.params.

See Schema Definition and the full Validation guide for examples.