← Graph

Is Literal a good basis for a validation library?

question 2 connections

Audience asks whether Literal fits writing a validation library that returns an error list rather than raising. Drapper: conceptually yes, but not quite there — today you can only 'try to construct' and handle the exception. He'd like to add a non-raising `validate` path that returns an array of errors for the everyday validation use case where raising is inappropriate.

answer_summary
Good basis in principle, but Literal currently only raises — a soft `validate` API returning errors would be needed.
question Is Literal a good basis for a validation library?
about
Literal tool
Asks whether Literal can power a validation library.
question Is Literal a good basis for a validation library?
asked_at
Follow-up Q&A question.

Provenance