1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
use super::*;

/// ## A selector for additional items
///
/// Could be a boolean telling if additional items are allowed or not,
/// or could be a schema describing how they should be structured.
#[derive(Debug, PartialEq, Serialize, Deserialize, Clone, Sparsable, OApiCheck)]
pub enum OApiSchemaAdditionalItem {
    Any(bool),
    Obj(Box<OperatorSelector<OApiSchema>>),
}

impl std::default::Default for OApiSchemaAdditionalItem {
    fn default() -> Self {
        OApiSchemaAdditionalItem::Any(false)
    }
}