Required Attribute for MinOccurs
Hi, I've started using this tool instead of xsd.exe and so far it has been a godsend. However, I notice that the "minOccurs", "maxOccurs" restrictions are not reflected on the generated classes (no [required] attribute or similar). Is this part of the functionallity?
Thank you.
This functionality is not present currently.
Possibly relevant is noting how xsd.exe implements this :
https://stackoverflow.com/a/16971203/1040437
It looks like RequiredAttribute is implemented as of now.
At least we have it generated on minOccurs="1" even if there's string tag.
Having [Required] messes up with mentioned earlier issue (https://stackoverflow.com/a/16971203/1040437) where you end up with error on empty string data like <SomeTag/>.
Is it somehow intentional?
@strigefleur What's the issue with the way it's currently implemented? How can it be fixed?