REST input validation in a Spring Boot Kotlin project

Опубликовано: 22 Март 2026
на канале: Vladsave Coding
2,832
67

Input validation is important when developing a REST API. Thankfully Spring Boot has a starter dependency that makes the process straightforward. However if you are using Kotlin, there is pitfall that you need to be careful with. In this video we are going to a simple validation to a Kotlin project and also discuss the root cause of this pitfall.

Link to source code:
https://vladsave.com/?p=191

Link to video where I create the project:
   • Spring Boot Kotlin Part 1: Project creatio...  

My business website if you need to hire a freelancer:
https://vladsave.com

Chapters:
00:00 Introduction
00:26 Starter project
01:55 Add gradle dependency
02:41 Add the annotation
05:12 Explaining the root cause in Kotlin
07:50 Other validators