5 writes to EmptyBodyBehavior
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\BindingInfo.cs (3)
38EmptyBodyBehavior = other.EmptyBodyBehavior; 175bindingInfo.EmptyBodyBehavior = configureEmptyBodyBehavior.EmptyBodyBehavior; 265EmptyBodyBehavior = EmptyBodyBehavior.Allow;
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2055EmptyBodyBehavior = EmptyBodyBehavior.Allow,
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\InferParameterBindingInfoConvention.cs (1)
109fromBodyParameters[0].BindingInfo!.EmptyBodyBehavior = EmptyBodyBehavior.Allow;
14 references to EmptyBodyBehavior
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\BindingInfo.cs (2)
38EmptyBodyBehavior = other.EmptyBodyBehavior; 260if (EmptyBodyBehavior == EmptyBodyBehavior.Default &&
Microsoft.AspNetCore.Mvc.Abstractions.Test (4)
ModelBinding\BindingInfoTest.cs (4)
62Assert.Equal(EmptyBodyBehavior.Allow, bindingInfo.EmptyBodyBehavior); 140Assert.Equal(EmptyBodyBehavior.Disallow, bindingInfo.EmptyBodyBehavior); 266Assert.Equal(EmptyBodyBehavior.Allow, bindingInfo.EmptyBodyBehavior); 288Assert.Equal(EmptyBodyBehavior.Default, bindingInfo.EmptyBodyBehavior);
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
DefaultApiDescriptionProvider.cs (2)
303if (parameter.BindingInfo == null || parameter.BindingInfo.EmptyBodyBehavior == EmptyBodyBehavior.Default) 309parameter.IsRequired = !(parameter.BindingInfo.EmptyBodyBehavior == EmptyBodyBehavior.Allow);
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\InferParameterBindingInfoConvention.cs (1)
106fromBodyParameters[0].BindingInfo!.EmptyBodyBehavior == EmptyBodyBehavior.Default &&
ModelBinding\Binders\BodyModelBinderProvider.cs (1)
83var treatEmptyInputAsDefaultValue = CalculateAllowEmptyBody(context.BindingInfo.EmptyBodyBehavior, _options);
Microsoft.AspNetCore.Mvc.Core.Test (4)
ApplicationModels\InferParameterBindingInfoConventionTest.cs (4)
130Assert.Equal(EmptyBodyBehavior.Default, bindingInfo.EmptyBodyBehavior); 164Assert.Equal(EmptyBodyBehavior.Default, bindingInfo.EmptyBodyBehavior); 190Assert.Equal(EmptyBodyBehavior.Allow, bindingInfo.EmptyBodyBehavior); 216Assert.Equal(EmptyBodyBehavior.Allow, bindingInfo.EmptyBodyBehavior);