Skip to content

Enhance OpenAPI support with multipart/form-data handling#15

Merged
RDeluxe merged 4 commits into
mainfrom
feat/enhance-typed-body-with-multipart
Feb 2, 2026
Merged

Enhance OpenAPI support with multipart/form-data handling#15
RDeluxe merged 4 commits into
mainfrom
feat/enhance-typed-body-with-multipart

Conversation

@Netoun

@Netoun Netoun commented Feb 2, 2026

Copy link
Copy Markdown
Collaborator
  • Added decorator for validating multipart/form-data requests using Zod schemas.
  • Updated to include 'Multipart' for better schema organization.
  • Introduced tests for multipart body handling in .
  • Updated package.json to include new dependencies for @types/multer and @vitest/ui.
  • Added a new UI test command in package.json for improved testing capabilities.

- Added  decorator for validating multipart/form-data requests using Zod schemas.
- Updated  to include 'Multipart' for better schema organization.
- Introduced tests for multipart body handling in .
- Updated package.json to include new dependencies for @types/multer and @vitest/ui.
- Added a new UI test command in package.json for improved testing capabilities.
@Netoun Netoun requested review from RDeluxe and matheoleger February 2, 2026 12:04

@matheoleger matheoleger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's good! (I can't try it but the code looks good)

If you have time, maybe you can add some documentation in https://lonestone.github.io/nzoth/core/validation/ page?

- Added Zod version override in package.json and pnpm-lock.yaml.
- Updated various dependencies including eslint, typescript, and @nestjs packages to their latest versions.
- Removed outdated Zod version from core package.json.
@RDeluxe

RDeluxe commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

Perfect, except like @matheoleger said : it should be added to the docs.

Comment on lines +90 to +91
Ensures `Content-Type: application/json`, validates with Zod, and registers an `ApiBody` schema.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's the wrong Content-Type here ;)

Comment thread docs/src/content/docs/core/validation.mdx Outdated
Co-authored-by: Mathéo LEGER <71370253+matheoleger@users.noreply.github.com>
@RDeluxe RDeluxe merged commit 7aaf41e into main Feb 2, 2026
1 check passed
@RDeluxe RDeluxe deleted the feat/enhance-typed-body-with-multipart branch February 2, 2026 15:28
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

Successfully merging this pull request may close these issues.

3 participants