feat(proto): Format protobuf files with buf (#2033)
Formats all protobuf files with buf format. This ensures a consistent style across all our protobuf files, similar to gofumpt.
This commit is contained in:
1 parent
0fb9b35498
commit
f69fbf2255
131 files changed
+2329
-1618
No files matched your search
@@ -6,37 +6,37 @@ option go_package = "github.com/hashicorp/boundary/internal/gen/controller/api;a
|
||||
|
||||
// Error information relevant to an error that was wrapped by the backend.
|
||||
message WrappedError {
|
||||
// An string indicating what operation was being run when the wrapped error was created.
|
||||
string op = 1;
|
||||
string message = 2;
|
||||
// An string indicating what operation was being run when the wrapped error was created.
|
||||
string op = 1;
|
||||
string message = 2;
|
||||
}
|
||||
|
||||
// Additional details regarding a specific error.
|
||||
message ErrorDetails {
|
||||
// Request-field-specific error details.
|
||||
repeated FieldError request_fields = 1 [json_name="request_fields"];
|
||||
// Request-field-specific error details.
|
||||
repeated FieldError request_fields = 1 [json_name = "request_fields"];
|
||||
|
||||
// The errors that were wrapped in the backend for this returned error.
|
||||
repeated WrappedError wrapped_errors = 2 [json_name="wrapped_errors"];
|
||||
// The errors that were wrapped in the backend for this returned error.
|
||||
repeated WrappedError wrapped_errors = 2 [json_name = "wrapped_errors"];
|
||||
}
|
||||
|
||||
// FieldErrors contains error information on a per field basis.
|
||||
message FieldError {
|
||||
// The name of the field.
|
||||
string name = 1;
|
||||
// The name of the field.
|
||||
string name = 1;
|
||||
|
||||
// The description of the error.
|
||||
string description = 2;
|
||||
// The description of the error.
|
||||
string description = 2;
|
||||
}
|
||||
|
||||
// Error is returned by the JSON API when an error occurs.
|
||||
message Error {
|
||||
// The kind of error this is.
|
||||
string kind = 1;
|
||||
// An string indicating what operation was being run when the error was returned.
|
||||
string op = 2;
|
||||
// A human-readable explanation specific to this occurrence of the error.
|
||||
string message = 3;
|
||||
// Additional metadata regarding the error. Depending on the error, different fields will be populated.
|
||||
ErrorDetails details = 4;
|
||||
// The kind of error this is.
|
||||
string kind = 1;
|
||||
// An string indicating what operation was being run when the error was returned.
|
||||
string op = 2;
|
||||
// A human-readable explanation specific to this occurrence of the error.
|
||||
string message = 3;
|
||||
// Additional metadata regarding the error. Depending on the error, different fields will be populated.
|
||||
ErrorDetails details = 4;
|
||||
}
|
||||
Reference in new issue
Block a user