v5.1.2
Enhancements
- New documentation sections: FAQ and Common Pitfalls.
- Entity Framework Core 7 table-per-concrete-type (TPC) inheritance is now supported.
- Added support for DateOnly and TimeOnly. This works out of the box when using .NET 7. But when using .NET 6, additional steps are required.
- Support for
[ApiController]
has improved, though its use is not recommended because it degrades JSON:API compliance. Therefore we now log a warning when found.
Bugfixes
- Fixed whitespace handling in query string parameters.
- Fixed ModelState validation in atomic operations when using custom validators with injected dependencies.
- Fixed incorrect ModelState validation error when using
[Range]
that does not include the type's default value.
Breaking changes
- Parsing query string parameters used to rely on the current culture, which is no longer the case. To revert to the old behavior, add the following at startup:
AppContext.SetSwitch("JsonApiDotNetCore.ParseQueryStringsUsingCurrentCulture", true);
Merged PRs
- Fix missing HttpContext on ValidationContext during atomic operations by @Tommy228 in #1251
- Better handling of [ApiController] usage by @bkoelman in #1246
- Package updates; run tests against EF Core 7 by @bkoelman in #1249
- Fixed: fail on non-leading whitespace in field chains by @bkoelman in #1252
- Fixed: ModelState validation failed when [Range] does not include property default value by @bkoelman in #1253
- Documentation: FAQ and Common Pitfalls by @bkoelman in #1245
- Add support for DateOnly/TimeOnly by @bkoelman in #1169
New Contributors
Full Changelog: v5.1.1...v5.1.2