Bluemage/schemas/proto/subreddits/v1/get.proto

20 lines
442 B
Protocol Buffer
Raw Normal View History

2024-08-09 15:22:54 +07:00
syntax = "proto3";
package subreddits.v1;
import "buf/validate/validate.proto";
2024-08-15 14:13:40 +07:00
import "subreddits/v1/types.proto";
2024-08-09 15:22:54 +07:00
option go_package = "github.com/tigorlazuardi/bluemage/go/gen/proto/subreddits/v1";
message GetSubredditRequest {
// name of the subreddit. Case insensitive.
//
// Returns error on not found.
string name = 1 [(buf.validate.field).string.min_len = 1];
}
message GetSubredditResponse {
2024-08-15 14:13:40 +07:00
Subreddit subreddit = 1;
2024-08-09 15:22:54 +07:00
}