SEW | CORE | Validation
As a musician I want the system to notify me about possible mistakes, so that the data in the database is consistent.
- All fields in the editor are using validation.
- Feedback about validation issues are displayed to the user.
- Validation is performed on the server and on the client (using vuelidate).
- To use the full range of the spring boot validation system add the following lines to your pom.xml and let maven update your project.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
- Use the GlobalExceptionHandler to send a response using status code 4xx and a meaningful error message to the client. This Java file needs to be copied into the repository directory.