Browse Source

utoipa variant

Thomas 1 year ago
parent
commit
48ff2d4e95
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/variants.rs

+ 3 - 3
src/variants.rs

@@ -1005,7 +1005,7 @@ pub struct Variant {
     pub annotations: Vec<AnnotationType>,
 }
 
-#[derive(Debug, PartialEq, Serialize, Deserialize, Clone)]
+#[derive(Debug, PartialEq, Serialize, Deserialize, Clone, ToSchema)]
 pub struct CallerData {
     pub qual: Option<f32>,
     pub format: Format,
@@ -1061,7 +1061,7 @@ impl CallerData {
     }
 }
 
-#[derive(Debug, Clone, Serialize, Eq, PartialEq, Deserialize)]
+#[derive(Debug, Clone, Serialize, Eq, PartialEq, Deserialize, ToSchema)]
 pub enum VariantType {
     Somatic,
     Constitutionnal,
@@ -1356,7 +1356,7 @@ pub enum VariantCategory {
     LowDiversity,
 }
 
-#[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq)]
+#[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq, ToSchema)]
 pub enum ReferenceAlternative {
     Nucleotide(Base),
     Nucleotides(Vec<Base>),