1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use serde::{Deserialize, Serialize};

use super::Merge;

#[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Debug, schemars::JsonSchema)]
pub struct CapabilityWebGatewayV1 {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub expose_detailed_errors: Option<bool>,
}

impl Merge for CapabilityWebGatewayV1 {
    fn merge_extend(self, other: &Self) -> Self {
        Self {
            expose_detailed_errors: self
                .expose_detailed_errors
                .merge_extend(&other.expose_detailed_errors),
        }
    }
}