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
wwwroot
FormatterWebSite.xproj
Startup.cs
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
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.