aspnetcore/test/WebSites/FormatterWebSite
Doug Bunting 42017faa21 Add `InputFormatterResult` and `InputFormatterContext.ModelName`
- #2722
- make communication of errors from formatters to `BodyModelBinder` explicit
  - `JsonInputFormatter` now adds errors to `ModelStateDictionary` with correct key
- change `InputFormatter.SelectCharacterEncoding()` to add an error and return `null` when it fails
  - one less `Exception` case and removes some duplicate code

nits:
- improve some doc comments (more `<inheritdoc/>`, `<paramref/>` and `<see/>`)
- add another two `BodyValidationIntegrationTests` tests
2015-09-19 21:36:38 -07:00
..
Controllers Move ActionResult classes back to main namespace 2015-09-16 21:42:31 -07:00
Filters Move ActionResult classes back to main namespace 2015-09-16 21:42:31 -07:00
Models Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
wwwroot
FormatterWebSite.xproj
Startup.cs Homogenize MVC startup code patterns 2015-08-16 18:48:24 -07:00
StringInputFormatter.cs Add `InputFormatterResult` and `InputFormatterContext.ModelName` 2015-09-19 21:36:38 -07:00
ValidateBodyParameterAttribute.cs Move ActionResult classes back to main namespace 2015-09-16 21:42:31 -07:00
project.json React to Kestrel rename 2015-08-11 16:30:03 -07:00
readme.md

readme.md

FormatterWebSite

This web site illustrates how to input formatters operate on the request body. It also demonstrates how custom options can be set for model validation.