Closed dougbu closed 6 years ago
More code we can clean up using 2.1 features: Don't need to special-case media type suffix matches and should instead use application/*+json
or application/*+xml
in WebHookVerifyBodyTypeFilter
. The following hack can go away: https://github.com/aspnet/WebHooks/blob/ca7f0e7c9a11663be336d0d0412e0e26b4d9117a/src/Microsoft.AspNetCore.WebHooks.Receivers/Filters/WebHookVerifyBodyTypeFilter.cs#L167-L171
@danroth27, any objections about moving this out from preview2?
ec834ebabb
Merged to dev
in 607d59b9e6
We should get rid of the
if (!ModelState.IsValid)
… boiler-plate in user code.Should also
throw
anInvalidOperationException
if[ApiController]
is applied to a controller containing WebHook actions./cc @rynowak anything else we need to worry about now that WebHooks gets all the 2.1 goodness?