diff --git a/contrib/openrpc/types/types.go b/contrib/openrpc/types/types.go index 325652cd54b6e74b5fe470d423302c10861c68d5..ae5a88d8908d42ae7f5afd54ad46e30108c945fe 100644 --- a/contrib/openrpc/types/types.go +++ b/contrib/openrpc/types/types.go @@ -26,10 +26,17 @@ type ServerVariable struct { } type Info struct { - Title string `json:"title"` - Description string `json:"description"` - Version string `json:"version"` - Contact Contact `json:"contact,omitempty"` + Title string `json:"title"` + Description string `json:"description"` + Version string `json:"version"` + Contact Contact `json:"contact,omitempty"` + Socials []*SocialInfo `json:"x-social,omitempty"` +} + +type SocialInfo struct { + Name string `json:"name"` + URL string `json:"url"` + Color string `json:"color"` } type Contact struct {