From 677ff76962349de175c1d1b982db37d2cc70da26 Mon Sep 17 00:00:00 2001 From: George B <705427+georgeblahblah@users.noreply.github.com> Date: Thu, 11 Apr 2024 16:14:15 +0100 Subject: [PATCH] make fields required --- thrift/native.thrift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/thrift/native.thrift b/thrift/native.thrift index 9fc1ed4..ea16ac1 100644 --- a/thrift/native.thrift +++ b/thrift/native.thrift @@ -160,8 +160,8 @@ union GetUserProfileResponse { } struct ReportAbuseParameters { - 1: string commentId; - 2: string categoryId; + 1: required string commentId; + 2: required string categoryId; 3: optional string reason; 4: optional string email; } @@ -176,11 +176,11 @@ union DiscussionResponse { } struct AddUsernameError { - 1: string message; + 1: required string message; } struct AddUsernameApiResponse { - 1: string status; + 1: required string status; 2: optional list errors; }