langgenius/dify

dep inject model validate

Open

#36,659 opened on May 26, 2026

 (10 comments) (1 reaction) (0 assignees)TypeScript (22,210 forks)batch import
good first issue

Repository metrics

Stars
 (141,412 stars)
PR merge metrics
 (Avg merge 1d 21h) (579 merged PRs in 30d)

Description

@dosu since we can dep inject the current user id, why dont we also inject the validated parameter?

like

...
@with_user
@validate(Query)
def post(self, args: Query, user: Account):
    ...

Contributor guide