Skip to content

Commit c512cc1

Browse files
committed
Add error code uniquessness guideline
1 parent f3f2d11 commit c512cc1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/guidelines.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ This is currently not blocked, but might be in the future.
2323

2424
Unless it is impossible to model as a two separate actions or the resulting API would be awkward.
2525

26+
### Prefer globally unique error codes in nested DTOs
27+
28+
2 DTOs can be used by 1 command in the future. In that case those DTOs will have to have unique error codes. Changing error codes values is a breaking change. To omit breaking change, it is better to have globally unique error codes in nested DTOs.
29+
2630
## DTOs & Enums
2731

2832
### Postfix DTOs & enums with `DTO`

0 commit comments

Comments
 (0)