Reading the failures

Let's take this Username modddel again as an example :

The 'form' validationStep contains two validations : 'length' validation and 'characters' validation. The 'availability' validationStep contains only one validation : 'reserved' validation.

You can easily access the failure(s) of an invalid-step union-case :

You can also access a list of all the failures of an invalid union-case, using the failures getter :

Last updated