From 5720ead7e4245d49bbf3eead8df32c710a723126 Mon Sep 17 00:00:00 2001 From: Sasha Melentyev Date: Mon, 14 Feb 2022 15:01:58 +0300 Subject: [PATCH] feat(openapi): add support requestBody ref --- requestbody.go | 1 + 1 file changed, 1 insertion(+) diff --git a/requestbody.go b/requestbody.go index ec888cc..be9f61b 100644 --- a/requestbody.go +++ b/requestbody.go @@ -5,4 +5,5 @@ type RequestBody struct { Description string `json:"description,omitempty" yaml:"description,omitempty"` Required bool `json:"required,omitempty" yaml:"required,omitempty"` Content Content `json:"content,omitempty" yaml:"content,omitempty"` + Ref string `json:"$ref,omitempty" yaml:"$ref,omitempty"` }