We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
public class HelloApiRequest : BaseRequest<HelloApiRequest> { public string? Name { get; set; } = "default"; [AliasAs("a")] public string? Alias { get; set; } [FromQuery] public string? Q { get; set; } [FromServices] public IService Svc { get; set; } public HelloApiRequest() { RuleFor(x => x.Name).NotNull().Length(2, 36); } }
如果指定了绑定来源那绑定器会自动定位来源, 如果未指定来源, 绑定器将 从 Query&Body&Head&Route等依次匹配(原有模式匹配)
The text was updated successfully, but these errors were encountered:
支持原生Bind特性 #6
faf96b1
#6 FromBodyAttribute
490a439
#14 现在支持复杂的绑定
Sorry, something went wrong.
No branches or pull requests
如果指定了绑定来源那绑定器会自动定位来源, 如果未指定来源, 绑定器将 从 Query&Body&Head&Route等依次匹配(原有模式匹配)
The text was updated successfully, but these errors were encountered: