From 51d094d91aba5098bdc2bb5484f2bbbeed76d72a Mon Sep 17 00:00:00 2001 From: Irakli Safareli Date: Fri, 19 Apr 2024 20:15:29 +0400 Subject: [PATCH] fix yaml marshaling of AdditionalProperties.Schema --- openapi3/schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi3/schema.go b/openapi3/schema.go index beac7ba4a..80befc7a0 100644 --- a/openapi3/schema.go +++ b/openapi3/schema.go @@ -222,7 +222,7 @@ func (addProps AdditionalProperties) MarshalYAML() (interface{}, error) { return false, nil } if x := addProps.Schema; x != nil { - return x.Value, nil + return x, nil } return nil, nil }