next-api-decorators icon indicating copy to clipboard operation
next-api-decorators copied to clipboard

Collection of decorators to create typed Next.js API routes, with easy request validation and transformation.

Results 30 next-api-decorators issues
Sort by recently updated
recently updated
newest added

This PR introduces a breaking change, therefore the next release will be `v2`. The breaking change is renaming `HttpVerb` with `HttpMethod` per HTTP standards. The PR also contains the feature...

Using the new middleware decorators

documentation

**Is your feature request related to a problem? Please describe.** I would like to integrate with swagger **Describe the solution you'd like** It will be great if based on the...

enhancement

for example if the api route file is at '/pages/api/deep/nested/route/[[...params]].ts' then I expect the `@Get()` URL pattern should match from `/deep/nested/route/` but instead it only match from `/deep/` ``` class...

bug
released on @beta

Next-Api-Decorators package has become a staple of my work project and many of my passion projects. As the title says - I was wondering what the Development / Project status...

I'm using NextJS 13.3.4 for app router and trying to apply this package to my project. But I got this bellow exception. - error Detected default export in '..../api/auth/verify-email/resent/route.ts'. Export...

Hello! I work on a similar library https://github.com/finom/next-wednesday and mentioned your solution in the README. Would be nice if you could also mention next-wednesday as an alternative project. Let me...

This PR adds zod validation pipe as an alternative to `class-validator` and `class-transformer` closes #479

Currently, I try to use [next-api-decorators](https://github.com/instantcommerce/next-api-decorators) in combination with [tsyringe](https://github.com/microsoft/tsyringe) for dependency injection. In order to get this to work I had to allow the `container` instance to instantiate the...

The problem When running a unit test using Jest the validation pipeline is not triggered. The expected behaviour would be by providing incorrect values to a route which accepts a...