Skip to content
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

validate dto 继承 swagger ApiProperty #2556

Open
TimonPeng opened this issue Dec 6, 2022 · 1 comment
Open

validate dto 继承 swagger ApiProperty #2556

TimonPeng opened this issue Dec 6, 2022 · 1 comment
Labels
type: enhancement New feature or request

Comments

@TimonPeng
Copy link

个人认为 validate 和 swagger 的关联性是较强的,因此 ApiProperty 也放在了 dto model 中。

但是在 PickDto 或 OmitDto 只继承了 RULES_KEY 装饰器的 Metadata,是否应该为这俩函数提供一个可选参数继承其他装饰器的 Metadata?

@czy88840616
Copy link
Member

这个已经在做了。

@czy88840616 czy88840616 added the type: enhancement New feature or request label Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Development

No branches or pull requests

2 participants