Skip to content

Commit

Permalink
Added type string to PipelineParam.
Browse files Browse the repository at this point in the history
  • Loading branch information
vhadianto committed Aug 6, 2024
1 parent a95c1ab commit 8f0f8d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modconfig/flowpipe_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ type PipelineParam struct {
Optional bool `json:"optional,omitempty"`
Default cty.Value `json:"-"`
Type cty.Type `json:"-"`
TypeString string `json:"type"`
}

func (p *PipelineParam) Equals(other *PipelineParam) bool {
Expand Down
1 change: 1 addition & 0 deletions parse/pipeline_decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ func decodePipelineParam(block *hcl.Block, parseCtx *ModParseContext) (*modconfi
o.Description = ctyVal.AsString()
}

o.TypeString = hclhelpers.CtyTypeToHclType(o.Type)
return o, diags
}

Expand Down

0 comments on commit 8f0f8d2

Please sign in to comment.