aboutsummaryrefslogtreecommitdiffstats
path: root/lib/api-config/src/schema/create.rs
blob: 5c91f648e91b8bc935e2007d2234b330339b73ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

#[derive(Deserialize, Serialize)]
#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
/// Transaction to monitor
pub struct CreateSchema {
    #[serde(rename = "type")]
    /// Transaction schema type
    pub kind: String,
    /// The schema's version
    pub version: String,
    /// Transaction data
    #[serde(rename = "json_schema")]
    pub schema: serde_json::Value,
}