From 26125cc8819abdbb55e63f7c242b2a9f1c09b102 Mon Sep 17 00:00:00 2001 From: gohumble Date: Sun, 5 May 2024 18:00:11 +0200 Subject: [PATCH] gogo protobuf --- buf.yaml | 3 ++- mint.proto | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/buf.yaml b/buf.yaml index 5731f1a..3842c30 100644 --- a/buf.yaml +++ b/buf.yaml @@ -8,4 +8,5 @@ lint: - DEFAULT deps: - buf.build/googleapis/googleapis - - buf.build/srikrsna/protoc-gen-gotag \ No newline at end of file + - buf.build/srikrsna/protoc-gen-gotag + - buf.build/gogo/protobuf \ No newline at end of file diff --git a/mint.proto b/mint.proto index beafa5f..6b5a574 100644 --- a/mint.proto +++ b/mint.proto @@ -21,8 +21,8 @@ message PostMintQuoteBolt11Request { message PostMintQuoteBolt11Response { string quote = 1 [json_name = "quote"]; string request = 2 [json_name = "request"]; - bool paid = 3 [json_name = "paid"]; - int64 expiry = 4 [json_name = "expiry"]; + bool paid = 3 [json_name = "paid",(gogoproto.jsontag) = "paid"]; + int64 expiry = 4 [json_name = "expiry",(gogoproto.jsontag) = "expiry"]; }