Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How can a Implement Custom validation? #1633

Answered by ashishdhingra
tsaideepak7 asked this question in Q&A
Discussion options

public Task DoSomething([Frombody] Custom body){}

public class Custom
{
public string Value{get;set;}
}

How do i over ride the validation method to return some thing other than the generic validation failure response.

You must be logged in to vote

@tsaideepak7 Could you please elaborate your scenario, how are you using Lambda annotations for your use case and share sample code solution (if possible)?

Replies: 3 comments

Comment options

@tsaideepak7 Could you please elaborate your scenario, how are you using Lambda annotations for your use case and share sample code solution (if possible)?

You must be logged in to vote
0 replies
Answer selected by ashishdhingra
Comment options

Hello! Reopening this discussion to make it searchable.

You must be logged in to vote
0 replies
Comment options

Hello! Reopening this discussion to make it searchable.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
response-requested Waiting on additional info and feedback. Will move to close soon in 7 days. annotations

AltStyle によって変換されたページ (->オリジナル) /