-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Required fields lead to non required element in XSD #162
Comments
Please link the spot in question. I have provided it in the JIRA issue. |
This seems to be caused by Lines 245 to 247 in 8467ab8
|
The reason for this behaviour seems to be driven by pom.xml specifics, i.e. POMs are merged with their parents before they need to be valid. As this is definitely an edge case Modello should have a flag for enabling/disabling that behaviour. |
I fully agree with that. |
E.g. the required field
prefix
from https://github.com/apache/maven/blob/master/maven-repository-metadata/src/main/mdo/metadata.mdo#L354-L360 leads to this XSD:Obsviously the element with name
prefix
must leave out minOccurs="0" to be required in the XMLs.The text was updated successfully, but these errors were encountered: