billbogaiv / hybrid-model-binding

Provides the ability to bind models using both ModelBinder and ValueProvider in ASP.NET Core.
MIT License
104 stars 19 forks source link

Support JsonPropertyName and JsonProperty attributes when binding from body #62

Open Misiu opened 2 years ago

Misiu commented 2 years ago

This change allows binding to properties that have JsonPropertyName or JsonProperty. I've also adjusted the sample to show the new behavior. Tested locally with both Test.Json and Newtonsoft.Json

Closes https://github.com/billbogaiv/hybrid-model-binding/issues/61