Skip to content

Commit b9bebad

Browse files
committed
#1447 - back-end usage scenario
Simplify API (remove error)
1 parent d13b45b commit b9bebad

File tree

2 files changed

+43
-91
lines changed

2 files changed

+43
-91
lines changed

rpc/cc/arduino/cli/files/v1/files.pb.go

+40-84
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/files/v1/files.proto

+3-7
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ package cc.arduino.cli.files.v1;
1919

2020
option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/files/v1;files";
2121

22-
import "google/rpc/status.proto";
23-
2422
// Arduino Files service API
2523
service FilesService {
2624
// Load file content from the file system
@@ -40,10 +38,8 @@ message LoadFileRequest {
4038
}
4139

4240
message LoadFileResponse {
43-
oneof message {
44-
bytes content = 1;
45-
google.rpc.Status error = 2;
46-
}
41+
// File content
42+
bytes content = 1;
4743
// is skipped in case of error
48-
ContentType type = 3;
44+
ContentType type = 2;
4945
}

0 commit comments

Comments
 (0)