scala-kit
scala-kit copied to clipboard
List of DocumentLink with at least one broken link returns None
Hi,
In a document, I have the following structure :
- a fragment
XXX
of typeGroup
- for each document inside the group, a unique fragment, called
YYY
, with aDocumentLink
.
- for each document inside the group, a unique fragment, called
If in this group, I have at least one DocumentLink which is broken, the fragment XXX
returns None
, and not Some(Group(List(...)))
. Is this the expected behaviour ?
Tested on scala 2.11, prismic-kit 2.4.2
Thank you !
Ronan
Ok, I think I founded the bug :
- When a DocumentLink is broken, the
lang
attribute is anull
- However, in
PrismicJsonProtocol.scala
, it try to convertJsNull
spray library to a String... which is apparently not possible.