Generating required strings without (AllowEmptyStrings=true) #548
Replies: 2 comments 1 reply
-
I think you're right, if min length is > 0, AllowEmptyStrings should be omitted. Can you open an issue? |
Beta Was this translation helpful? Give feedback.
1 reply
-
See #549 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm trying to generate some classes with the tool but do not seem to be able to generate without the (AllowEmptyStrings=true). If I set the min length to 1 in the xsd I still get the RequiredAttribute(AllowEmptyStrings=true) and a MinLengthAttribute(1).
Is this correct behaviour from the generator or should the RequiredAttribute be generated without the (AllowEmptyStrings=true)?
Beta Was this translation helpful? Give feedback.
All reactions