From 7c0d47428a7de02d87eaff0a6cc467ddae6f562c Mon Sep 17 00:00:00 2001 From: a <a@a.a> Date: Mon, 3 Oct 2022 19:10:44 -0500 Subject: [PATCH] ommimit empty --- openrpc/types/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openrpc/types/types.go b/openrpc/types/types.go index b3228a6..24532f0 100644 --- a/openrpc/types/types.go +++ b/openrpc/types/types.go @@ -51,7 +51,7 @@ var _ json.Unmarshaler = (*Items)(nil) type Schema struct { Ref string `json:"$ref,omitempty"` Type string `json:"type,omitempty"` - Title string `json:"title"` + Title string `json:"title,omitempty"` Required []string `json:"required,omitempty"` Items Items `json:"items,omitempty"` Properties map[string]Schema `json:"properties,omitempty"` @@ -59,7 +59,7 @@ type Schema struct { AnyOf []Schema `json:"anyOf,omitempty"` AllOf []Schema `json:"allOf,omitempty"` Enum []string `json:"enum,omitempty"` - Pattern string `json:"pattern"` + Pattern string `json:"pattern,omitempty"` } type Param struct { -- GitLab