diff --git a/tools/thothctl/internal/workspaceops/operations.go b/tools/thothctl/internal/workspaceops/operations.go index 0064a894..553a6299 100644 --- a/tools/thothctl/internal/workspaceops/operations.go +++ b/tools/thothctl/internal/workspaceops/operations.go @@ -122,7 +122,7 @@ func (r SuggestFksRequest) stdinEnvelope() (requestEnvelope, error) { if totalBytes > 16<<20 { return requestEnvelope{}, errors.New("SQL input total exceeds 16 MiB") } - envelope.SQLFiles = append(envelope.SQLFiles, inputFile{Path: path, Contents: contents}) + envelope.SQLFiles = append(envelope.SQLFiles, inputFile{Name: filepath.Base(path), SQL: contents}) } return envelope, nil } @@ -164,8 +164,8 @@ type requestEnvelope struct { } type inputFile struct { - Path string `json:"path"` - Contents string `json:"contents"` + Name string `json:"name"` + SQL string `json:"sql"` } type Result struct {