From 233f777d0c7f3c6e0d4b203d54c1d8726054cf4a Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 25 Aug 2021 13:21:10 +0300 Subject: [PATCH] [#84] Fix string presentation object type enum Default string presentations of enums in protobuf are the same as definitions. In our case it is going to be UPPER_SNAKE_CASE string constants. Default presentation is easier to maintain. Signed-off-by: Alex Vanin --- object/types.proto | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/object/types.proto b/object/types.proto index 302019f..f3893bd 100644 --- a/object/types.proto +++ b/object/types.proto @@ -9,14 +9,13 @@ import "refs/types.proto"; import "session/types.proto"; // Type of the object payload content. Only `REGULAR` type objects can be split, -// hence `TOMBSTONE` and `STORAGEGROUP` payload is limited by maximal object +// hence `TOMBSTONE` and `STORAGE_GROUP` payload is limited by maximal object // size. // -// String presentation of object type is PascalCased `ObjectType` enumeration -// item name: -// * Regular -// * Tombstone -// * StorageGroup +// String presentation of object type is the same as definition: +// * REGULAR +// * TOMBSTONE +// * STORAGE_GROUP enum ObjectType { // Just a normal object REGULAR = 0;