Skip to content

Commit

Permalink
fix: support remaining input/output types
Browse files Browse the repository at this point in the history
  • Loading branch information
henryde committed May 22, 2024
1 parent 0bde78c commit 45ff963
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/provider/buildingblock_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ func (d *buildingBlockDataSource) Read(ctx context.Context, req datasource.ReadR
var valueInt *int64
var valueBool *bool

if input.ValueType == "STRING" {
// TODO: support input type list
if input.ValueType == "STRING" || input.ValueType == "SINGLE_SELECT" || input.ValueType == "FILE" {
val, ok := input.Value.(string)
if !ok {
err = errors.Join(err, fmt.Errorf("Unexpected type '%s' for key '%s'.", input.ValueType, input.Key))
Expand Down

0 comments on commit 45ff963

Please sign in to comment.