From fc42ade260d45a585731b22d4b27fe513e82424d Mon Sep 17 00:00:00 2001 From: jjohnstondev <jakester620@gmail.com> Date: Thu, 22 Dec 2022 19:36:01 -0800 Subject: [PATCH] external docs omit empty --- openrpc/types/types.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openrpc/types/types.go b/openrpc/types/types.go index 2cf5289..dff54d8 100644 --- a/openrpc/types/types.go +++ b/openrpc/types/types.go @@ -84,11 +84,11 @@ type Method struct { } type Tag struct { - Ref string `json:"$ref,omitempty"` - Name string `json:"name"` - Summary string `json:"summary,omitempty"` - Description string `json:"description,omitempty"` - ExternalDocs ExternalDocumentation `json:"externalDocs,omitempty"` + Ref string `json:"$ref,omitempty"` + Name string `json:"name"` + Summary string `json:"summary,omitempty"` + Description string `json:"description,omitempty"` + ExternalDocs *ExternalDocumentation `json:"externalDocs,omitempty"` } type ExternalDocumentation struct { -- GitLab