Skip to content

Commit 98189a0

Browse files
committed
feat(provider/sql_dataset): allow removing description
1 parent ee7b01d commit 98189a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/provider/sql_dataset_model_request.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ func (m *SQLDatasetModel) ToCreateSQLDatasetBody(_ context.Context) cm.CreateSQL
2626
description := m.Description.ValueString()
2727
if description != "" {
2828
body.Description.SetTo(description)
29+
} else {
30+
body.Description.SetToNull()
2931
}
3032

3133
return body
@@ -48,6 +50,8 @@ func (m *SQLDatasetModel) ToUpdateSQLDatasetBody(_ context.Context) cm.UpdateSQL
4850
description := m.Description.ValueString()
4951
if description != "" {
5052
body.Description.SetTo(description)
53+
} else {
54+
body.Description.SetToNull()
5155
}
5256

5357
return body

0 commit comments

Comments
 (0)