hybrid-model-binding icon indicating copy to clipboard operation
hybrid-model-binding copied to clipboard

Provides the ability to bind models using both ModelBinder and ValueProvider in ASP.NET Core.

Results 17 hybrid-model-binding issues
Sort by recently updated
recently updated
newest added

Hi all, Great nuget package; thanks. Is it possible to combining `HybridModelBinder` with another Custom `IModelBinder`. My `Request` class has a complex type (`Company`) which I'm attempting to resolve using...

I have a REST API that needs to support a dynamic model, I have this endpoint: ``` [HttpPost("{entity}")] [ProducesResponseType(typeof(object), StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status400BadRequest)] [AllowAnonymous] public async Task CreateSingleRecord2([ModelBinder(typeof(CreateSingleRecordBinder))] CreateSingleRecord model) { //process...

Hi, What's exactly the reason why the ModelState is being cleared first in `src/HybridModelBinding/HybridModelBinder.cs` on line **110**? Clearing the ModelState there will remove possible initial binding errors (e.g. providing a...

Are there release notes for the changes from 0.17.0 to 0.18.0? The model binding stopped working when I upgraded and I can't figure out what changed.

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

I've noticed that after adding HybridModelBinding to my project `JsonProperty` attributes stopped working. Below is a very simple controller that allows testing this behaviour: ``` namespace HybridModelBinding.Samples.Controllers { [Route("api/[controller]")] [ApiController]...

some cleanup that was suggested by Resharper. Things to consider (probably in the next PR). Should I replace ``` var hasBindingAttribute = parameterModel.Attributes .Any(x => typeof(IBindingSourceMetadata).IsAssignableFrom(x.GetType())); ``` with ``` var...

Hi, I am having great success in using hybrid model binding to bind from route and body to a single model. However the downside is that swashbuckle no longer functions...

I've stumbled upon an odd behaviour with hybrid model binding. Consider this example: Model: ``` public class AnotherDto { public string SomeString { get; set; } public int SomeInt {...

bug

Hi I may be using the package incorrectly but I am trying to create API endpoints with a single object and bind from the body and the route to my...