You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* JSON:API spec compliance: do not unescape brackets in response
From https://jsonapi.org/format/1.1/#appendix-query-details-square-brackets:
> According to the query parameter serialization rules above, a compliant implementation will percent-encode these square brackets.
* Updated existing IResourceDefinition tests to capture all relevant callbacks
* Retrieve total resource count on secondary/relationship endpoints using inverse relationship
Bugfix: links.next was not set on full page at relationship endpoint
* Rename flags enum to plural
* Clarified documentation; fixed broken link
* Check off roadmap entry
Copy file name to clipboardExpand all lines: ROADMAP.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,10 @@ The need for breaking changes has blocked several efforts in the v4.x release, s
22
22
-[x] Support System.Text.Json [#664](https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/664)[#999](https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/999)[1077](https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/1077)[1078](https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/1078)
23
23
-[x] Optimize IIdentifiable to ResourceObject conversion [#1028](https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/1028)[#1024](https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/1024)[#233](https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/233)
Aside from the list above, we have interest in the following topics. It's too soon yet to decide whether they'll make it into v5.x or in a later major version.
Copy file name to clipboardExpand all lines: docs/usage/options.md
+3
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,9 @@ options.MaximumPageNumber = new PageNumber(50);
39
39
options.IncludeTotalResourceCount=true;
40
40
```
41
41
42
+
To retrieve the total number of resources on secondary and relationship endpoints, the reverse of the relationship must to be available. For example, in `GET /customers/1/orders`, both the relationships `[HasMany] Customer.Orders` and `[HasOne] Order.Customer` must be defined.
43
+
If `IncludeTotalResourceCount` is set to `false` (or the inverse relationship is unavailable on a non-primary endpoint), best-effort paging links are returned instead. This means no `last` link and the `next` link only occurs when the current page is full.
44
+
42
45
## Relative Links
43
46
44
47
All links are absolute by default. However, you can configure relative links.
Copy file name to clipboardExpand all lines: docs/usage/resources/nullability.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Properties on a resource class can be declared as nullable or non-nullable. This affects both ASP.NET ModelState validation and the way Entity Framework Core generates database columns.
4
4
5
-
ModelState validation is enabled by default since v5.0. In earlier versions, it can be enabled in [options](~/usage/options.md#enable-modelstate-validation).
5
+
ModelState validation is enabled by default since v5.0. In earlier versions, it can be enabled in [options](~/usage/options.md#modelstate-validation).
0 commit comments