Download Latest Version v5.7.1 source code.tar.gz (1.4 MB)
Email in envelope

Get an email when there's a new version of JsonApiDotNetCore

Home / v5.7.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-04-21 3.9 kB
v5.7.0 source code.tar.gz 2025-04-21 1.4 MB
v5.7.0 source code.zip 2025-04-21 4.4 MB
Totals: 3 Items   5.8 MB 0

New features and enhancements

After years of work, we're finally ready to ship the first pre-release of OpenAPI support for JSON:API!

Now you can generate a documentation website from your models. And generate typed client libraries using NSwag and Microsoft Kiota. See the documentation to get started. In this preview, all JsonApiDotNetCore features work with OpenAPI, except for the following: - Custom controllers and custom action methods are ignored - Controllers that use ID obfuscation don't work - The usage of [DisableQueryString] on controllers is ignored

As part of the OpenAPI work, basic support for third-party JSON:API extensions was added. We also introduced our own extension to enhance the OpenAPI experience.

Next to the existing IAtomicOperationFilter, IJsonApiEndpointFilter was added, which enables to remove controller action methods at runtime.

Breaking changes

  • This version requires .NET 8 or higher; official support has ended for .NET 6
  • The relaxed form "atomic-operations" for the Atomic Operations JSON:API extension was renamed to "atomic" for consistency

Bugfixes

  • A proper error is now returned when the ID in a request body is an empty string or whitespace
  • Resource inheritance: Atomic operations enabled on a base type are implicitly enabled on all derived types
  • Resource inheritance: Pagination on derived types wasn't being applied
  • Resource inheritance: A post-resource request with ?include used to fail
  • The calculation of the total resource count on a secondary/relationship endpoint could crash when resource definitions are involved

Merged PRs

Full Changelog: https://github.com/json-api-dotnet/JsonApiDotNetCore/compare/v5.6.0...v5.7.0

Source: README.md, updated 2025-04-21