jto / validation

validation api extracted from play

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why did you guys use Success/Failure rather than specific names like ValidationSuccess?

queirozfcom opened this issue · comments

You have probably ditched JsSuccess as it is in Play because this library is not json-specific anymore, but Success and Failure conflicts with scala.util.Try stuff.

I find myself always needing to alias them to ValidationSuccess and ValidationFailure so they don't conflict with scala default Try. Am I missing something?

This problem will be fixed in the soon to be released 2.0 version (see v2.0 branch). Validation now uses cats' Valid / Invalid.