You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 15, 2020. It is now read-only.
The only thing we could do here is improve the error message. Indeed, the library does support Elem! You would just need to implement a few type class instances for this type (as the error suggests), see this section of the doc.
For better error messages, we would need to replace usages of Function1[A, B] with an equivalant custom type (ValidationView[A, B] or something), and annotate it with an @implicitNotFound.
Creating a new type ValidationView would break compatibility so maybe for validation v3 but not in v2. We could maybe however support Elem too.
As always, PR are welcome @gbersac :)
BTW, there's an extensive test suite here that may help if you need examples of XML validation.
I stumbled upon a puzzling error. With a
From[Elem]
in this code :I got the following error :
This error disepeared when I replaced
Elem
byNode
:Whether this library should completely support
Elem
or the user should be notified that the typeElem
is not supported by this library.The text was updated successfully, but these errors were encountered: