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 · 5 comments
Open

validate dto 继承 swagger ApiProperty #2556

TimonPeng opened this issue Dec 6, 2022 · 5 comments
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
@lyric-zemin
Copy link

@czy88840616 这个问题有什么进展吗😬

@czy88840616
Copy link
Member

czy88840616 commented Aug 25, 2024

metadata 集成涉及底层改动,v3 不会动了,v4 会明确继承的方式。

@pandaApe
Copy link

@czy88840616 遇到了相同的问题。v4有Release plan吗?

@czy88840616
Copy link
Member

初步估计十一结束会有第一个 beta 版本。

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

4 participants