1
0
mirror of https://github.com/hexolan/stocklet.git synced 2026-08-25 04:54:39 +01:00

chore: format buf

Signed-off-by: Declan Teevan <dt@hexolan.com>
This commit is contained in:
2026-08-19 09:45:19 +01:00
parent 1fb1f6d7b5
commit c0d57da2be
5 changed files with 26 additions and 26 deletions
@@ -79,8 +79,8 @@ message LoginPasswordRequest {
string password = 2 [
(google.api.field_behavior) = REQUIRED,
(buf.validate.field).string = {
min_len: 1;
max_len: 64;
min_len: 1
max_len: 64
}
];
}
@@ -99,8 +99,8 @@ message SetPasswordRequest {
string password = 2 [
(google.api.field_behavior) = REQUIRED,
(buf.validate.field).string = {
min_len: 1;
max_len: 64;
min_len: 1
max_len: 64
}
];
}
@@ -34,7 +34,7 @@ message Order {
string id = 1 [(buf.validate.field).string.min_len = 1];
OrderStatus status = 2 [(buf.validate.field).enum = {
defined_only: true,
defined_only: true
not_in: [0]
}];
+11 -11
View File
@@ -23,17 +23,17 @@ import "protoc-gen-openapiv2/options/annotations.proto";
option go_package = "github.com/hexolan/stocklet/internal/pkg/protogen";
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "Stocklet";
version: "0.1.0";
title: "Stocklet"
version: "0.1.0"
contact: {
name: "GitHub Repository";
url: "https://github.com/hexolan/stocklet";
};
license: {
name: "AGPL-3.0";
url: "https://github.com/hexolan/stocklet/blob/main/LICENSE";
name: "GitHub Repository"
url: "https://github.com/hexolan/stocklet"
}
};
host: "localhost";
schemes: HTTP;
license: {
name: "AGPL-3.0"
url: "https://github.com/hexolan/stocklet/blob/main/LICENSE"
}
}
host: "localhost"
schemes: HTTP
};
@@ -54,16 +54,16 @@ message RegisterUserRequest {
string first_name = 1 [
(google.api.field_behavior) = REQUIRED,
(buf.validate.field).string = {
min_len: 1;
max_len: 35;
min_len: 1
max_len: 35
}
];
string last_name = 2 [
(google.api.field_behavior) = REQUIRED,
(buf.validate.field).string = {
min_len: 1;
max_len: 35;
min_len: 1
max_len: 35
}
];
@@ -75,8 +75,8 @@ message RegisterUserRequest {
string password = 4 [
(google.api.field_behavior) = REQUIRED,
(buf.validate.field).string = {
min_len: 1;
max_len: 64;
min_len: 1
max_len: 64
}
];
}
@@ -27,12 +27,12 @@ message User {
string email = 2 [(buf.validate.field).string.email = true];
string first_name = 3 [(buf.validate.field).string = {
min_len: 1;
max_len: 35;
min_len: 1
max_len: 35
}];
string last_name = 4 [(buf.validate.field).string = {
min_len: 1;
max_len: 35;
min_len: 1
max_len: 35
}];
int64 created_at = 5;