You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use auto request validation in an app that uses a custom model binder.
Looking at the code here , I see the accepted binding sources are Query, Form and Body. Would it be possible to extend that to allow custom binding sources as well?
Thank you!
The text was updated successfully, but these errors were encountered:
Hi there! I haven't used custom binding source yet. Could you post some code to help me understand how the binding works? I do see a BindingSource.Custom option in the .NET framework so I guess we can make it work.
I actually have a PR I'm hoping to submit today with this exact feature, as I had a need for it. @mvdgun, is it worth me submitting that or have you started implementation?
@JonAdamsFromNC I am happy you have a PR for this.
I was trying to use a variation of FromHybrid model binding, but apart from the auto validation issues I had a few other problems that made me decide to go back to the default model binding.
But I do think adding support for custom binders will be a nice feature for this great library.
Hi,
I am trying to use auto request validation in an app that uses a custom model binder.
Looking at the code here , I see the accepted binding sources are Query, Form and Body. Would it be possible to extend that to allow custom binding sources as well?
Thank you!
The text was updated successfully, but these errors were encountered: