samedi 9 mai 2015

Spray-Json - How to define field constraints

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?

Aucun commentaire:

Enregistrer un commentaire