As the titel says, all properties are optional. It seems like the code is missing a check for the xml property `minOccurs`.