Fix writing to byte array the anyOf property

This commit is contained in:
Marius Orcsik 2019-12-21 11:08:44 +01:00
parent b912910ef1
commit b9336e8da0
No known key found for this signature in database
GPG key ID: 77618B618F79EB72

View file

@ -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