I have case class which represents my json model:
case class UserData(photo_url: String, age: Int, bio: String)
and wondering how could I define some constraints on some specific fields, like length for bio or value range for age?
bio
age
Aucun commentaire:
Enregistrer un commentaire