-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open API doc not generated for PartialType DTO #1074
Comments
Please provide a minimum reproduction repository. |
Sample Repo: https://github.com/kalaivanan-muthusamy/nestjs-swagger-issue-1074 I am expecting the properties in |
Import |
I missed it completely. It is clearly mentioned in the document. Thanks for the wonderful document. This should be the issue with cli then. As CLI is importing the Opened the PR for the expected change |
Change is required for swagger to generate doc on PartialType-based DTOs, per nestjs/swagger#1074 (comment)
But it's not Making the properties in StarterDto
UpdateStarterDto
|
Bug Report
When using the PartialType for DTO, it is not reflected in the OpenAPI documentation.
https://docs.nestjs.com/openapi/mapped-types
Input Code
Current behavior
UpdateUserDTO
schema in the OpenAPI documentation is missing thename
propertyExpected behavior
OpenAPI document to have
name: string
inUpdateUserDTO
Schema. But missing the name property in the generated schema.Environment
The text was updated successfully, but these errors were encountered: