2024-08-09 15:22:54 +07:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package subreddits.v1;
|
|
|
|
|
|
|
|
import "buf/validate/validate.proto";
|
2024-08-15 20:39:04 +07:00
|
|
|
import "subreddits/v1/types.proto";
|
2024-08-09 15:22:54 +07:00
|
|
|
|
|
|
|
message ResolveSubredditNameRequest {
|
|
|
|
// name of the subreddit to resolve (check existence and casing).
|
|
|
|
string name = 1 [(buf.validate.field).string.min_len = 1];
|
2024-08-15 20:39:04 +07:00
|
|
|
SubredditType type = 2;
|
2024-08-09 15:22:54 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
message ResolveSubredditNameResponse {
|
|
|
|
// resolved the actual subreddit name.
|
|
|
|
string resolved = 1;
|
|
|
|
}
|