aspnetcore/test/Microsoft.AspNetCore.Mvc.In...
Doug Bunting 5c8dfef15e
Change `CollectionModelBinder` and `ComplexTypeModelBinder` to enforce `[BindRequired]`
- #8180
- add an error when binding fails for top-level model
  - same case as when MVC creates "default" / empty model i.e. `ParameterBinder` can't detect this
- update `CollectionModelBinder` subclasses and the various providers as well
- controlled by existing `MvcOptions.AllowValidatingTopLevelNodes` option

smaller issue:
- change `ModelBinding_MissingBindRequiredMember` resource to mention parameters too
2018-09-21 11:08:16 -07:00
..
Models
ActionParametersIntegrationTest.cs
ArrayModelBinderIntegrationTest.cs
AuthorizeFilterIntegrationTest.cs Fix regression with Authorize + IPolicyProvider (#8068) 2018-07-12 15:36:03 -07:00
BindPropertyIntegrationTest.cs
BinderTypeBasedModelBinderIntegrationTest.cs
BindingSourceMetadataProviderIntegrationTest.cs
BodyValidationIntegrationTests.cs
ByteArrayModelBinderIntegrationTest.cs
CancellationTokenModelBinderIntegrationTest.cs
CollectionModelBinderIntegrationTest.cs Change `CollectionModelBinder` and `ComplexTypeModelBinder` to enforce `[BindRequired]` 2018-09-21 11:08:16 -07:00
CompanyNameAttribute.cs
ComplexTypeModelBinderIntegrationTest.cs Change `CollectionModelBinder` and `ComplexTypeModelBinder` to enforce `[BindRequired]` 2018-09-21 11:08:16 -07:00
DictionaryModelBinderIntegrationTest.cs
ExcludeBindingMetadataProviderIntegrationTest.cs
FormCollectionModelBindingIntegrationTest.cs
FormFileModelBindingIntegrationTest.cs
GenericModelBinderIntegrationTest.cs
HeaderModelBinderIntegrationTest.cs
JQueryFormatModelBindingIntegrationTest.cs
KeyValuePairModelBinderIntegrationTest.cs
Microsoft.AspNetCore.Mvc.IntegrationTests.csproj Cleanup TestCommon 2018-05-18 10:45:57 -07:00
ModelBindingTestContext.cs
ModelBindingTestHelper.cs [Design] Add a MaxValidationDepth option to ValidationVisitor 2018-08-16 15:01:18 -07:00
ModelPrefixSelectionIntegrationTest.cs
ParameterBinderExtensions.cs
ProductValidatorAttribute.cs
ServicesModelBinderIntegrationTest.cs
SimpleTypeModelBinderIntegrationTest.cs Fix typos (#8413) 2018-09-12 09:34:45 -07:00
TestMvcOptions.cs
TryUpdateModelIntegrationTest.cs
TryValidateModelIntegrationTest.cs Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
ValidationIntegrationTests.cs Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00