diff --git a/modconfig/flowpipe_pipeline.go b/modconfig/flowpipe_pipeline.go index e095fc13..eeda78a8 100644 --- a/modconfig/flowpipe_pipeline.go +++ b/modconfig/flowpipe_pipeline.go @@ -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 { diff --git a/parse/pipeline_decode.go b/parse/pipeline_decode.go index 323edacc..ae8d8dbc 100644 --- a/parse/pipeline_decode.go +++ b/parse/pipeline_decode.go @@ -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 }