OPML head tag isn't required

This commit is contained in:
Shinokuni 2020-08-03 23:41:37 +02:00
parent ea9739a19a
commit f6cfa52bc0
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import org.simpleframework.xml.Root
@Order(elements = ["head", "body"])
@Root(name = "opml", strict = false)
data class OPML(@field:Attribute(required = true) var version: String?,
@field:Element(required = true) var head: Head?,
@field:Element(required = false) var head: Head?,
@field:Element(required = true) var body: Body?) {
/**