adding inputs output struct based on argo naming for now
This commit is contained in:
@@ -3,13 +3,19 @@ package models
|
||||
type Artifact struct {
|
||||
AttrPath string `json:"attr_path,omitempty" bson:"attr_path,omitempty" validate:"required"`
|
||||
AttrFrom string `json:"from_path,omitempty" bson:"from_path,omitempty"`
|
||||
Readonly bool `json:"readonly" bson:"readonly" dafault:"true"`
|
||||
Readonly bool `json:"readonly" bson:"readonly" default:"true"`
|
||||
}
|
||||
|
||||
type Param struct {
|
||||
Attr string `json:"attr" bson:"attr" validate:"required"`
|
||||
Readonly bool `json:"readonly" bson:"readonly" dafault:"true"`
|
||||
Readonly bool `json:"readonly" bson:"readonly" default:"true"`
|
||||
}
|
||||
|
||||
type ParamValue struct {
|
||||
Param
|
||||
Value string `json:"value" bson:"value" validate:"required"`
|
||||
}
|
||||
|
||||
type InOutputs struct {
|
||||
Params []Param `json:"parameters" bson:"parameters"`
|
||||
Artifacts []Artifact `json:"artifacts" bson:"artifacts"`
|
||||
|
Reference in New Issue
Block a user