Fix writing to byte array the anyOf property
This commit is contained in:
parent
b912910ef1
commit
b9336e8da0
|
@ -303,7 +303,7 @@ func writeQuestionValue(b *[]byte, q Question) (notEmpty bool) {
|
|||
if q.OneOf != nil {
|
||||
notEmpty = writeItemProp(b, "oneOf", q.OneOf) || notEmpty
|
||||
} else if q.AnyOf != nil {
|
||||
notEmpty = writeItemProp(b, "oneOf", q.OneOf) || notEmpty
|
||||
notEmpty = writeItemProp(b, "anyOf", q.OneOf) || notEmpty
|
||||
}
|
||||
notEmpty = writeBoolProp(b, "closed", q.Closed) || notEmpty
|
||||
return notEmpty
|
||||
|
|
Reference in a new issue