From 1de0d29a74a2ca201e9d5bbbca194042fe0bab91 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 27 Apr 2020 18:44:13 +0300 Subject: [PATCH] service: remove gogoproto customname from embedded Token.Info field This commit: * removes gogoproto customname option from embedded Token.Info field; * renames Info field of Token message to TokenInfo. --- proto-docs/service.md | 2 +- service/verify.proto | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/proto-docs/service.md b/proto-docs/service.md index 6af3468..bf1bc1a 100644 --- a/proto-docs/service.md +++ b/proto-docs/service.md @@ -107,7 +107,7 @@ User token granting rights for object manipulation | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| info | [Token.Info](#service.Token.Info) | | Info is a grouped information about token | +| TokenInfo | [Token.Info](#service.Token.Info) | | Info is a grouped information about token | | Signature | [bytes](#bytes) | | Signature is a signature of session token information | diff --git a/service/verify.proto b/service/verify.proto index 97cc7fa..b25cd47 100644 --- a/service/verify.proto +++ b/service/verify.proto @@ -68,8 +68,8 @@ message Token { bytes SessionKey = 7; } - // Info is a grouped information about token - Info info = 1 [(gogoproto.embed) = true, (gogoproto.nullable) = false, (gogoproto.customname) = "Info"]; + // TokenInfo is a grouped information about token + Info TokenInfo = 1 [(gogoproto.embed) = true, (gogoproto.nullable) = false]; // Signature is a signature of session token information bytes Signature = 8;