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 }