Skip to content

Commit

Permalink
Add error code uniqueness guideline
Browse files Browse the repository at this point in the history
  • Loading branch information
michal12334 committed Jan 28, 2025
1 parent f3f2d11 commit 216cfc1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ This is currently not blocked, but might be in the future.

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

### Prefer globally unique error codes in nested DTOs

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.

## DTOs & Enums

### Postfix DTOs & enums with `DTO`
Expand Down

0 comments on commit 216cfc1

Please sign in to comment.