SORMAS-Project
SORMAS-Project copied to clipboard
Bugfix 10343 missing validations via api
#10343 Add new validations for required fields when adding data from API
- add new validations for Sample and for TravelEntry
- use @NotEmpty annotation instead of @Requried (it's gonna be deprecated)
Hello @JonasCir I've commited the changes. Please note that for the @Required annotation refactoring, there will be a new ticket (as I was suggested), so for this Pull Request only PointOfEntryDetails (TravelEntryDto) and SampleMaterialText (SampleDto) are treated. Thanks for looking into this.
hey, take a look at the issue again: The second scenario is not fixed.
tests are failing now