mirror of
https://github.com/hexolan/stocklet.git
synced 2026-08-25 13:04:38 +01:00
@@ -79,8 +79,8 @@ message LoginPasswordRequest {
|
|||||||
string password = 2 [
|
string password = 2 [
|
||||||
(google.api.field_behavior) = REQUIRED,
|
(google.api.field_behavior) = REQUIRED,
|
||||||
(buf.validate.field).string = {
|
(buf.validate.field).string = {
|
||||||
min_len: 1;
|
min_len: 1
|
||||||
max_len: 64;
|
max_len: 64
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -99,8 +99,8 @@ message SetPasswordRequest {
|
|||||||
string password = 2 [
|
string password = 2 [
|
||||||
(google.api.field_behavior) = REQUIRED,
|
(google.api.field_behavior) = REQUIRED,
|
||||||
(buf.validate.field).string = {
|
(buf.validate.field).string = {
|
||||||
min_len: 1;
|
min_len: 1
|
||||||
max_len: 64;
|
max_len: 64
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ message Order {
|
|||||||
string id = 1 [(buf.validate.field).string.min_len = 1];
|
string id = 1 [(buf.validate.field).string.min_len = 1];
|
||||||
|
|
||||||
OrderStatus status = 2 [(buf.validate.field).enum = {
|
OrderStatus status = 2 [(buf.validate.field).enum = {
|
||||||
defined_only: true,
|
defined_only: true
|
||||||
not_in: [0]
|
not_in: [0]
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
|||||||
@@ -23,17 +23,17 @@ import "protoc-gen-openapiv2/options/annotations.proto";
|
|||||||
option go_package = "github.com/hexolan/stocklet/internal/pkg/protogen";
|
option go_package = "github.com/hexolan/stocklet/internal/pkg/protogen";
|
||||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
|
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
|
||||||
info: {
|
info: {
|
||||||
title: "Stocklet";
|
title: "Stocklet"
|
||||||
version: "0.1.0";
|
version: "0.1.0"
|
||||||
contact: {
|
contact: {
|
||||||
name: "GitHub Repository";
|
name: "GitHub Repository"
|
||||||
url: "https://github.com/hexolan/stocklet";
|
url: "https://github.com/hexolan/stocklet"
|
||||||
};
|
|
||||||
license: {
|
|
||||||
name: "AGPL-3.0";
|
|
||||||
url: "https://github.com/hexolan/stocklet/blob/main/LICENSE";
|
|
||||||
}
|
}
|
||||||
};
|
license: {
|
||||||
host: "localhost";
|
name: "AGPL-3.0"
|
||||||
schemes: HTTP;
|
url: "https://github.com/hexolan/stocklet/blob/main/LICENSE"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
host: "localhost"
|
||||||
|
schemes: HTTP
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -54,16 +54,16 @@ message RegisterUserRequest {
|
|||||||
string first_name = 1 [
|
string first_name = 1 [
|
||||||
(google.api.field_behavior) = REQUIRED,
|
(google.api.field_behavior) = REQUIRED,
|
||||||
(buf.validate.field).string = {
|
(buf.validate.field).string = {
|
||||||
min_len: 1;
|
min_len: 1
|
||||||
max_len: 35;
|
max_len: 35
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
string last_name = 2 [
|
string last_name = 2 [
|
||||||
(google.api.field_behavior) = REQUIRED,
|
(google.api.field_behavior) = REQUIRED,
|
||||||
(buf.validate.field).string = {
|
(buf.validate.field).string = {
|
||||||
min_len: 1;
|
min_len: 1
|
||||||
max_len: 35;
|
max_len: 35
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -75,8 +75,8 @@ message RegisterUserRequest {
|
|||||||
string password = 4 [
|
string password = 4 [
|
||||||
(google.api.field_behavior) = REQUIRED,
|
(google.api.field_behavior) = REQUIRED,
|
||||||
(buf.validate.field).string = {
|
(buf.validate.field).string = {
|
||||||
min_len: 1;
|
min_len: 1
|
||||||
max_len: 64;
|
max_len: 64
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,12 +27,12 @@ message User {
|
|||||||
string email = 2 [(buf.validate.field).string.email = true];
|
string email = 2 [(buf.validate.field).string.email = true];
|
||||||
|
|
||||||
string first_name = 3 [(buf.validate.field).string = {
|
string first_name = 3 [(buf.validate.field).string = {
|
||||||
min_len: 1;
|
min_len: 1
|
||||||
max_len: 35;
|
max_len: 35
|
||||||
}];
|
}];
|
||||||
string last_name = 4 [(buf.validate.field).string = {
|
string last_name = 4 [(buf.validate.field).string = {
|
||||||
min_len: 1;
|
min_len: 1
|
||||||
max_len: 35;
|
max_len: 35
|
||||||
}];
|
}];
|
||||||
|
|
||||||
int64 created_at = 5;
|
int64 created_at = 5;
|
||||||
|
|||||||
Reference in New Issue
Block a user