pub type ExpansionResult<T, J> = Result<ExpandedDocument<J, T>, ExpansionError<J>>;