-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace value objects with strings (#757)
* refactor: use strings instead of value objects in challenges module * refactor: use strings instead of value objects and add validators * feat: extension method for fluent validation and commands and query validators added * refactor: revert unnecessary changes * fix: compilation error due to list * test: add unit tests for validators * test: add missing unit tests for devices module * test: unit tests for validators in files module * refactor: remove json converters * fix: add mappings after removing json converters * fix: mappings for value objects in synchronization module * fix: mapping for value objects in relationships module * refactor: updates to DTOs after removing json converters while also removing auto mapper * refactor: remove automapper from relationships and adjust DTOs * refactor: remove automapper completely from solution * refactor: make number of identities nullable * refactor: use validator extension method for unit tests * refactor: change validation due to collection properties containing index in property name * refactor: simplify null check * refactor: add cache for reflection * refactor: revert nullable property * refactor: introduce validator extensions class file and adjust namespaces * refactor: extension methods * refactor: changes after code review * chore: formatting * chore: fix formatting * refactor: simplify extension method * test: add arch unit test to ensure isValid method for strongly typed ids * test: add parameter validation to arch unit test * refactor: manually call fluent validation of payload * test: add more conditions to StronglyTypedIds ArchUnit test * chore: add validation for ExternalEventResult.ErrorCode length * refactor: throw validation exception given invalid model state * refactor: remove commented out code block * test: add arch unit test to ensure not value objects in mediatr commands and queries * refactor: owner validation should be performed on the mediatr command only --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Timo Notheisen <[email protected]>
- Loading branch information
1 parent
6f1ee18
commit 707babf
Showing
306 changed files
with
2,532 additions
and
1,720 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
Applications/ConsumerApi/src/Mvc/JsonConverters/Challenges/ChallengeIdJsonConverter.cs
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
Applications/ConsumerApi/src/Mvc/JsonConverters/Files/FileIdJsonConverter.cs
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
Applications/ConsumerApi/src/Mvc/JsonConverters/Messages/FileIdJsonConverter.cs
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
Applications/ConsumerApi/src/Mvc/JsonConverters/Messages/MessageIdJsonConverter.cs
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
Applications/ConsumerApi/src/Mvc/JsonConverters/Messages/RelationshipIdJsonConverter.cs
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
Applications/ConsumerApi/src/Mvc/JsonConverters/Relationships/RelationshipIdJsonConverter.cs
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...s/ConsumerApi/src/Mvc/JsonConverters/Relationships/RelationshipTemplateIdJsonConverter.cs
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
Applications/ConsumerApi/src/Mvc/JsonConverters/Synchronization/DatawalletIdJsonConverter.cs
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
...nsumerApi/src/Mvc/JsonConverters/Synchronization/DatawalletModificationIdJsonConverter.cs
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
...ations/ConsumerApi/src/Mvc/JsonConverters/Synchronization/ExternalEventIdJsonConverter.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.