Skip to content

Commit

Permalink
chore: send markdown as part of the connection definition (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagojez authored Oct 22, 2024
1 parent 02ee568 commit a3f1c95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integrationos-api/src/logic/connection_definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ pub struct CreateRequest {
pub paths: Paths,
pub test_connection: Option<Id>,
pub active: bool,
#[serde(default)]
pub markdown: Option<String>,
}

impl HookExt<ConnectionDefinition> for CreateRequest {}
Expand Down Expand Up @@ -341,6 +343,7 @@ impl RequestExt for CreateRequest {
image: self.image.clone(),
tags: self.tags.clone(),
helper_link: self.helper_link.clone(),
markdown: self.markdown.clone(),
},
connection_form,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ impl ConnectionDefinition {
image,
tags,
helper_link: None,
markdown: None,
},
connection_form: ConnectionForm {
name,
Expand Down Expand Up @@ -176,6 +177,8 @@ pub struct Spec {
pub tags: Vec<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub helper_link: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub markdown: Option<String>,
}

#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)]
Expand Down

0 comments on commit a3f1c95

Please sign in to comment.