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
Copy file name to clipboardExpand all lines: docs/usage/common-pitfalls.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ public sealed class LoginAccount : Identifiable<long>
47
47
}
48
48
```
49
49
Did you notice the missing type of the `LoginAccount.Customer` property? We must choose between `WebCustomer` or `AdminCustomer`, but neither is correct.
50
-
This is just one of the issues you'll run into. Just don't go there.
50
+
This is only one of the issues you'll run into. Just don't go there.
51
51
52
52
The right way to model this is by having only `Customer` instead of `WebCustomer` and `AdminCustomer`. And then:
53
53
- Hide the `CreditRating` property for web users using [this](https://www.jsonapi.net/usage/extensibility/resource-definitions.html#excluding-fields) approach.
0 commit comments