Skip to content

Commit 77ac26b

Browse files
committed
fix: add correct comments
Signed-off-by: Armin Graf <arminhammer@gmail.com>
1 parent 338a7ab commit 77ac26b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

core/src/models/extension.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ pub struct ExtensionDefinition{
1414
#[serde(rename = "when", skip_serializing_if = "Option::is_none")]
1515
pub when: Option<String>,
1616

17-
/// Gets/sets a name/definition map, if any, of the tasks to execute before the extended task
17+
/// Gets/sets a name/definition list, if any, of the tasks to execute before the extended task
1818
#[serde(rename = "before", skip_serializing_if = "Option::is_none")]
1919
pub before: Option<Vec<HashMap<String, TaskDefinition>>>,
2020

21-
/// Gets/sets a name/definition map, if any, of the tasks to execute after the extended task
21+
/// Gets/sets a name/definition list, if any, of the tasks to execute after the extended task
2222
#[serde(rename = "after", skip_serializing_if = "Option::is_none")]
2323
pub after: Option<Vec<HashMap<String, TaskDefinition>>>
2424
}

core/src/models/task.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,9 +715,11 @@ pub struct ContainerProcessDefinition{
715715
#[serde(rename = "environment", skip_serializing_if = "Option::is_none")]
716716
pub environment: Option<HashMap<String, String>>,
717717

718+
/// Gets/sets the data to pass to the process via stdin, if any
718719
#[serde(rename = "stdin", skip_serializing_if = "Option::is_none")]
719720
pub stdin: Option<String>,
720721

722+
/// Gets/sets a list of arguments, if any, to pass to the container (argv)
721723
#[serde(rename = "arguments", skip_serializing_if = "Option::is_none")]
722724
pub arguments: Option<Vec<String>>,
723725
}

core/src/models/workflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ pub struct ComponentDefinitionCollection{
205205
#[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
206206
pub errors: Option<HashMap<String, ErrorDefinition>>,
207207

208-
/// Gets/sets a name/value mapping of the workflow's extensions, if any
208+
/// Gets/sets a list containing the workflow's extensions, if any
209209
#[serde(rename = "extensions", skip_serializing_if = "Option::is_none")]
210210
pub extensions: Option<Vec<HashMap<String, ExtensionDefinition>>>,
211211

0 commit comments

Comments
 (0)