federation-api: Make pdus of transactions optional under unstable-pre-spec

This commit is contained in:
Timo Kösters 2020-12-10 15:42:14 +01:00 committed by GitHub
parent 724a48d616
commit 5a65634a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,6 +35,7 @@ ruma_api! {
/// List of persistent updates to rooms. /// List of persistent updates to rooms.
/// ///
/// Must not be more than 50 items. /// Must not be more than 50 items.
#[cfg_attr(feature = "unstable-pre-spec", serde(default, skip_serializing_if = "<[_]>::is_empty"))]
pub pdus: &'a [Raw<Pdu>], pub pdus: &'a [Raw<Pdu>],
/// List of ephemeral messages. /// List of ephemeral messages.